diff options
author | Takashi Iwai <tiwai@suse.de> | 2010-03-08 06:09:59 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-03-08 06:12:41 -0500 |
commit | 50ae0aa8f55813b2cc5e5b7f589f328b8fcd45ec (patch) | |
tree | 2fd925a96423a73487323f904e74e989fa0901e5 /sound/pci/hda/patch_realtek.c | |
parent | 2abbf4391fb56dfa97221ed6796782537d15196f (diff) |
ALSA: hda - Fix wrong model range check for ALC268
Fix a wrong value passed to snd_hda_check_board_codec_sid_config() as
the upper-limit in parse_alc268(), so that any wrong value can't be
passed.
So far, no bogus value was set in the quirk entries, so this won't give
any behavioral changes.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_realtek.c')
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 5d2fbb87b871..dcd8a2cadd99 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
@@ -13201,7 +13201,7 @@ static int patch_alc268(struct hda_codec *codec) | |||
13201 | 13201 | ||
13202 | if (board_config < 0 || board_config >= ALC268_MODEL_LAST) | 13202 | if (board_config < 0 || board_config >= ALC268_MODEL_LAST) |
13203 | board_config = snd_hda_check_board_codec_sid_config(codec, | 13203 | board_config = snd_hda_check_board_codec_sid_config(codec, |
13204 | ALC882_MODEL_LAST, alc268_models, alc268_ssid_cfg_tbl); | 13204 | ALC268_MODEL_LAST, alc268_models, alc268_ssid_cfg_tbl); |
13205 | 13205 | ||
13206 | if (board_config < 0 || board_config >= ALC268_MODEL_LAST) { | 13206 | if (board_config < 0 || board_config >= ALC268_MODEL_LAST) { |
13207 | printk(KERN_INFO "hda_codec: %s: BIOS auto-probing.\n", | 13207 | printk(KERN_INFO "hda_codec: %s: BIOS auto-probing.\n", |