summaryrefslogtreecommitdiffstats
path: root/sound/pci/cs5535audio/cs5535audio.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2005-11-17 14:56:21 +0100
committerJaroslav Kysela <perex@suse.cz>2006-01-03 12:19:04 +0100
commit66f8df6bdd388d209c38197785148c994c8a738d (patch)
treece3354130f1e18089066f82325c008ebc3d956af /sound/pci/cs5535audio/cs5535audio.h
parentd1fabd9cbc2f17b525a39adc16331443dddbb15b (diff)
downloadblackbird-op-linux-66f8df6bdd388d209c38197785148c994c8a738d.tar.gz
blackbird-op-linux-66f8df6bdd388d209c38197785148c994c8a738d.zip
[ALSA] Remove xxx_t typedefs: PCI CS5535
Modules: CS5535 driver Remove xxx_t typedefs from the PCI CS5535 driver. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/cs5535audio/cs5535audio.h')
-rw-r--r--sound/pci/cs5535audio/cs5535audio.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/sound/pci/cs5535audio/cs5535audio.h b/sound/pci/cs5535audio/cs5535audio.h
index 774185e026d4..5e55a1a1ed65 100644
--- a/sound/pci/cs5535audio/cs5535audio.h
+++ b/sound/pci/cs5535audio/cs5535audio.h
@@ -78,46 +78,46 @@
#define PRD_EOP 0x4000
#define PRD_EOT 0x8000
-typedef struct _snd_cs5535audio cs5535audio_t;
-typedef struct snd_cs5535audio_dma cs5535audio_dma_t;
-typedef struct snd_cs5535audio_dma_ops cs5535audio_dma_ops_t;
-
enum { CS5535AUDIO_DMA_PLAYBACK, CS5535AUDIO_DMA_CAPTURE, NUM_CS5535AUDIO_DMAS };
-struct snd_cs5535audio_dma_ops {
+
+struct cs5535audio;
+
+struct cs5535audio_dma_ops {
int type;
- void (*enable_dma)(cs5535audio_t *cs5535au);
- void (*disable_dma)(cs5535audio_t *cs5535au);
- void (*pause_dma)(cs5535audio_t *cs5535au);
- void (*setup_prd)(cs5535audio_t *cs5535au, u32 prd_addr);
- u32 (*read_dma_pntr)(cs5535audio_t *cs5535au);
+ void (*enable_dma)(struct cs5535audio *cs5535au);
+ void (*disable_dma)(struct cs5535audio *cs5535au);
+ void (*pause_dma)(struct cs5535audio *cs5535au);
+ void (*setup_prd)(struct cs5535audio *cs5535au, u32 prd_addr);
+ u32 (*read_dma_pntr)(struct cs5535audio *cs5535au);
};
-typedef struct cs5535audio_dma_desc {
+struct cs5535audio_dma_desc {
u32 addr;
u16 size;
u16 ctlreserved;
-} cs5535audio_dma_desc_t;
+};
-struct snd_cs5535audio_dma {
- const cs5535audio_dma_ops_t *ops;
+struct cs5535audio_dma {
+ const struct cs5535audio_dma_ops *ops;
struct snd_dma_buffer desc_buf;
- snd_pcm_substream_t *substream;
+ struct snd_pcm_substream *substream;
unsigned int buf_addr, buf_bytes;
unsigned int period_bytes, periods;
};
-struct _snd_cs5535audio {
- snd_card_t *card;
- ac97_t *ac97;
+struct cs5535audio {
+ struct snd_card *card;
+ struct snd_ac97 *ac97;
int irq;
struct pci_dev *pci;
unsigned long port;
spinlock_t reg_lock;
- snd_pcm_substream_t *playback_substream;
- snd_pcm_substream_t *capture_substream;
- cs5535audio_dma_t dmas[NUM_CS5535AUDIO_DMAS];
+ struct snd_pcm_substream *playback_substream;
+ struct snd_pcm_substream *capture_substream;
+ struct cs5535audio_dma dmas[NUM_CS5535AUDIO_DMAS];
};
-int __devinit snd_cs5535audio_pcm(cs5535audio_t *cs5535audio);
+int __devinit snd_cs5535audio_pcm(struct cs5535audio *cs5535audio);
+
#endif /* __SOUND_CS5535AUDIO_H */
OpenPOWER on IntegriCloud