Skip to content

Commit

Permalink
[ALSA] aoa: set device pointer in pcms
Browse files Browse the repository at this point in the history
This patch makes a few whitespace cleanups and makes i2sbus assign the new
struct device pointer in struct snd_pcm so that the proper device symlink
shows up in sysfs.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
  • Loading branch information
Johannes Berg authored and Jaroslav Kysela committed Feb 9, 2007
1 parent c78085f commit 73e85fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion sound/aoa/core/snd-aoa-alsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ void aoa_alsa_cleanup(void)
}

int aoa_snd_device_new(snd_device_type_t type,
void * device_data, struct snd_device_ops * ops)
void * device_data, struct snd_device_ops * ops)
{
struct snd_card *card = aoa_get_card();
int err;
Expand Down
7 changes: 2 additions & 5 deletions sound/aoa/soundbus/i2sbus/i2sbus-pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -901,11 +901,7 @@ i2sbus_attach_codec(struct soundbus_dev *dev, struct snd_card *card,
}

if (!dev->pcm) {
err = snd_pcm_new(card,
dev->pcmname,
dev->pcmid,
0,
0,
err = snd_pcm_new(card, dev->pcmname, dev->pcmid, 0, 0,
&dev->pcm);
if (err) {
printk(KERN_DEBUG "i2sbus: failed to create pcm\n");
Expand All @@ -915,6 +911,7 @@ i2sbus_attach_codec(struct soundbus_dev *dev, struct snd_card *card,
module_put(THIS_MODULE);
return err;
}
dev->pcm->dev = &dev->ofdev.dev;
}

/* ALSA yet again sucks.
Expand Down

0 comments on commit 73e85fe

Please sign in to comment.