summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Stein <alexanders83@web.de>2014-12-05 15:42:54 +0100
committerTakashi Iwai <tiwai@suse.de>2014-12-05 17:40:37 +0100
commitca460cc250aa9d5255b3e2469ca0abad5d136233 (patch)
tree2c5dc967b5b1493064fc58a03a011d6c69f35f12
parent5395103dcc709d87f08edaecb786fc37781f3b22 (diff)
downloadlinux-ca460cc250aa9d5255b3e2469ca0abad5d136233.tar.gz
linux-ca460cc250aa9d5255b3e2469ca0abad5d136233.tar.bz2
linux-ca460cc250aa9d5255b3e2469ca0abad5d136233.zip
ALSA: sound/atmel/ac97c.c: Fix device index for pcm
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>
-rw-r--r--sound/atmel/ac97c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/atmel/ac97c.c b/sound/atmel/ac97c.c
index b59427d5a697..f1d119538397 100644
--- 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;