mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-18 23:59:53 +00:00
[ALSA] hda-intel - Fix modem PCM creation
HDA Intel driver Fix a bug of modem PCM creation (due to a typo). Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
0dd119f703
commit
a28f1cda0d
@ -1252,7 +1252,7 @@ static int __devinit azx_pcm_create(azx_t *chip)
|
||||
for (c = 0; c < codec->num_pcms; c++) {
|
||||
if (! codec->pcm_info[c].is_modem)
|
||||
continue; /* already created */
|
||||
if (pcm_dev >= AZX_MAX_MODEM_PCMS) {
|
||||
if (pcm_dev >= AZX_MAX_PCMS) {
|
||||
snd_printk(KERN_ERR SFX "Too many modem PCMs\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user