Skip to content

Commit

Permalink
ALSA: sound/atmel/ac97c.c: Fix device index for pcm
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
AlexanderStein authored and tiwai committed Dec 5, 2014
1 parent 5395103 commit ca460cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/atmel/ac97c.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit ca460cc

Please sign in to comment.