mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
[ALSA] aoa: set device pointer in pcms
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>
This commit is contained in:
parent
c78085fcd2
commit
73e85fe845
2 changed files with 3 additions and 6 deletions
|
@ -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");
|
||||
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue