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>
This commit is contained in:
Alexander Stein 2014-12-05 15:42:54 +01:00 committed by Takashi Iwai
parent 5395103dcc
commit ca460cc250

View File

@ -773,7 +773,7 @@ static int atmel_ac97c_pcm_new(struct atmel_ac97c *chip)
return err; return err;
} }
retval = snd_pcm_new(chip->card, chip->card->shortname, retval = snd_pcm_new(chip->card, chip->card->shortname,
chip->pdev->id, playback, capture, &pcm); 0, playback, capture, &pcm);
if (retval) if (retval)
return retval; return retval;