diff options
author | Alexander Stein <alexanders83@web.de> | 2014-12-05 09:42:54 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-12-05 11:40:37 -0500 |
commit | ca460cc250aa9d5255b3e2469ca0abad5d136233 (patch) | |
tree | 2c5dc967b5b1493064fc58a03a011d6c69f35f12 /sound/atmel | |
parent | 5395103dcc709d87f08edaecb786fc37781f3b22 (diff) |
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')
-rw-r--r-- | sound/atmel/ac97c.c | 2 |
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) | |||
773 | return err; | 773 | return err; |
774 | } | 774 | } |
775 | retval = snd_pcm_new(chip->card, chip->card->shortname, | 775 | retval = snd_pcm_new(chip->card, chip->card->shortname, |
776 | chip->pdev->id, playback, capture, &pcm); | 776 | 0, playback, capture, &pcm); |
777 | if (retval) | 777 | if (retval) |
778 | return retval; | 778 | return retval; |
779 | 779 | ||