diff options
author | Alexander Stein | 2014-12-05 15:42:54 +0100 |
---|---|---|
committer | Takashi Iwai | 2014-12-05 17:40:37 +0100 |
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) 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; |