From: Alexander Stein Date: Fri, 5 Dec 2014 14:42:54 +0000 (+0100) Subject: ALSA: sound/atmel/ac97c.c: Fix device index for pcm X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ca460cc250aa9d5255b3e2469ca0abad5d136233;p=linux-beck.git 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 Signed-off-by: Takashi Iwai --- 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;