]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - sound/pcmcia/pdaudiocf/pdaudiocf.h
[ALSA] Remove xxx_t typedefs: PCMCIA PDaudioCF
[linux-2.6.git] / sound / pcmcia / pdaudiocf / pdaudiocf.h
index c7a9628256eed739e44f8a2d9fb326abe26ff553..ad8f32eedce58696263b2d8de328d9e113046075 100644 (file)
@@ -83,8 +83,8 @@
 #define PDAUDIOCF_STAT_IS_CONFIGURED (1<<1)
 #define PDAUDIOCF_STAT_IS_SUSPENDED (1<<2)
 
-typedef struct {
-       snd_card_t *card;
+struct snd_pdacf {
+       struct snd_card *card;
        int index;
 
        unsigned long port;
@@ -96,12 +96,12 @@ typedef struct {
        struct tasklet_struct tq;
 
        spinlock_t ak4117_lock;
-       ak4117_t *ak4117;
+       struct ak4117 *ak4117;
 
        unsigned int chip_status;
 
-       snd_pcm_t *pcm;
-       snd_pcm_substream_t *pcm_substream;
+       struct snd_pcm *pcm;
+       struct snd_pcm_substream *pcm_substream;
        unsigned int pcm_running: 1;
        unsigned int pcm_channels;
        unsigned int pcm_swab;
@@ -118,28 +118,28 @@ typedef struct {
        /* pcmcia stuff */
        dev_link_t link;
        dev_node_t node;
-} pdacf_t;
+};
 
-static inline void pdacf_reg_write(pdacf_t *chip, unsigned char reg, unsigned short val)
+static inline void pdacf_reg_write(struct snd_pdacf *chip, unsigned char reg, unsigned short val)
 {
        outw(chip->regmap[reg>>1] = val, chip->port + reg);
 }
 
-static inline unsigned short pdacf_reg_read(pdacf_t *chip, unsigned char reg)
+static inline unsigned short pdacf_reg_read(struct snd_pdacf *chip, unsigned char reg)
 {
        return inw(chip->port + reg);
 }
 
-pdacf_t *snd_pdacf_create(snd_card_t *card);
-int snd_pdacf_ak4117_create(pdacf_t *pdacf);
-void snd_pdacf_powerdown(pdacf_t *chip);
+struct snd_pdacf *snd_pdacf_create(struct snd_card *card);
+int snd_pdacf_ak4117_create(struct snd_pdacf *pdacf);
+void snd_pdacf_powerdown(struct snd_pdacf *chip);
 #ifdef CONFIG_PM
-int snd_pdacf_suspend(snd_card_t *card, pm_message_t state);
-int snd_pdacf_resume(snd_card_t *card);
+int snd_pdacf_suspend(struct snd_card *card, pm_message_t state);
+int snd_pdacf_resume(struct snd_card *card);
 #endif
-int snd_pdacf_pcm_new(pdacf_t *chip);
+int snd_pdacf_pcm_new(struct snd_pdacf *chip);
 irqreturn_t pdacf_interrupt(int irq, void *dev, struct pt_regs *regs);
 void pdacf_tasklet(unsigned long private_data);
-void pdacf_reinit(pdacf_t *chip, int resume);
+void pdacf_reinit(struct snd_pdacf *chip, int resume);
 
 #endif /* __PDAUDIOCF_H */