projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5395103
)
ALSA: sound/atmel/ac97c.c: Fix device index for pcm
author
Alexander Stein
<alexanders83@web.de>
Fri, 5 Dec 2014 14:42:54 +0000
(15:42 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Fri, 5 Dec 2014 16:40:37 +0000
(17:40 +0100)
chip->pdev->id is -1 by default. This is an invalid index resulting in
device file names like /dev/snd/pcmC0D-1p.
Signed-off-by: Alexander Stein <alexanders83@web.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/atmel/ac97c.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/atmel/ac97c.c
b/sound/atmel/ac97c.c
index b59427d5a697b3b5ff2014b0598e639e7627c912..f1d1195383977c7c36c2673207f7db085bf28fb1 100644
(file)
--- a/
sound/atmel/ac97c.c
+++ b/
sound/atmel/ac97c.c
@@
-773,7
+773,7
@@
static int atmel_ac97c_pcm_new(struct atmel_ac97c *chip)
return err;
}
retval = snd_pcm_new(chip->card, chip->card->shortname,
-
chip->pdev->id
, playback, capture, &pcm);
+
0
, playback, capture, &pcm);
if (retval)
return retval;