Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 15978
b: refs/heads/master
c: cbdd0dd
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai authored and Jaroslav Kysela committed Jan 3, 2006
1 parent da01ad2 commit 92e1355
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 105 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4a4d2cfd8cbca3076742547157ea135d0be77928
refs/heads/master: cbdd0dd15f06a989c519089bb24023a5bfa66eaf
22 changes: 10 additions & 12 deletions trunk/include/sound/ad1816a.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,7 @@
#define AD1816A_CAPTURE_NOT_EQUAL 0x1000
#define AD1816A_WSS_ENABLE 0x8000

typedef struct _snd_ad1816a ad1816a_t;

struct _snd_ad1816a {
struct snd_ad1816a {
unsigned long port;
struct resource *res_port;
int irq;
Expand All @@ -140,15 +138,15 @@ struct _snd_ad1816a {
unsigned short mode;
unsigned int clock_freq;

snd_card_t *card;
snd_pcm_t *pcm;
struct snd_card *card;
struct snd_pcm *pcm;

snd_pcm_substream_t *playback_substream;
snd_pcm_substream_t *capture_substream;
struct snd_pcm_substream *playback_substream;
struct snd_pcm_substream *capture_substream;
unsigned int p_dma_size;
unsigned int c_dma_size;

snd_timer_t *timer;
struct snd_timer *timer;
};


Expand All @@ -165,11 +163,11 @@ struct _snd_ad1816a {
AD1816A_MODE_TIMER)


extern int snd_ad1816a_create(snd_card_t *card, unsigned long port,
extern int snd_ad1816a_create(struct snd_card *card, unsigned long port,
int irq, int dma1, int dma2,
ad1816a_t **chip);
struct snd_ad1816a **chip);

extern int snd_ad1816a_pcm(ad1816a_t *chip, int device, snd_pcm_t **rpcm);
extern int snd_ad1816a_mixer(ad1816a_t *chip);
extern int snd_ad1816a_pcm(struct snd_ad1816a *chip, int device, struct snd_pcm **rpcm);
extern int snd_ad1816a_mixer(struct snd_ad1816a *chip);

#endif /* __SOUND_AD1816A_H */
8 changes: 4 additions & 4 deletions trunk/sound/isa/ad1816a/ad1816a.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,10 @@ static int __devinit snd_card_ad1816a_probe(int dev, struct pnp_card_link *pcard
const struct pnp_card_device_id *pid)
{
int error;
snd_card_t *card;
struct snd_card *card;
struct snd_card_ad1816a *acard;
ad1816a_t *chip;
opl3_t *opl3;
struct snd_ad1816a *chip;
struct snd_opl3 *opl3;

if ((card = snd_card_new(index[dev], id[dev], THIS_MODULE,
sizeof(struct snd_card_ad1816a))) == NULL)
Expand Down Expand Up @@ -282,7 +282,7 @@ static int __devinit snd_ad1816a_pnp_detect(struct pnp_card_link *card,

static void __devexit snd_ad1816a_pnp_remove(struct pnp_card_link * pcard)
{
snd_card_t *card = (snd_card_t *) pnp_get_card_drvdata(pcard);
struct snd_card *card = (struct snd_card *) pnp_get_card_drvdata(pcard);

snd_card_disconnect(card);
snd_card_free_in_thread(card);
Expand Down
Loading

0 comments on commit 92e1355

Please sign in to comment.