summaryrefslogtreecommitdiff
path: root/sound/atmel/ac97c.c
diff options
context:
space:
mode:
authorAlexander Stein <alexanders83@web.de>2014-12-05 17:42:54 +0300
committerTakashi Iwai <tiwai@suse.de>2014-12-05 19:40:37 +0300
commitca460cc250aa9d5255b3e2469ca0abad5d136233 (patch)
tree2c5dc967b5b1493064fc58a03a011d6c69f35f12 /sound/atmel/ac97c.c
parent5395103dcc709d87f08edaecb786fc37781f3b22 (diff)
downloadlinux-ca460cc250aa9d5255b3e2469ca0abad5d136233.tar.xz
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>
Diffstat (limited to 'sound/atmel/ac97c.c')
-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;