ALSA: hda - Cleanup setting of pin_configs in patch_stac927x

After commit "ALSA: hda - Fix restore of pin configs at resume for
STAC/IDT codecs", the introduced stac_save_pin_cfgs function checks
already for pins == NULL case, saving then default pin configs from
machine with stac92xx_save_bios_config_regs. So we can remove the
extra checks when stac927x_brd_tbl[spec->board_config] == NULL.

Signed-off-by: Herton Ronaldo Krzesinski <herton@mandriva.com.br>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Herton Ronaldo Krzesinski 2009-02-11 20:33:15 -02:00 коммит произвёл Takashi Iwai
Родитель a1152e3570
Коммит c98041f7d7
1 изменённых файлов: 3 добавлений и 4 удалений

Просмотреть файл

@ -5292,10 +5292,9 @@ static int patch_stac927x(struct hda_codec *codec)
stac927x_models, stac927x_models,
stac927x_cfg_tbl); stac927x_cfg_tbl);
again: again:
if (spec->board_config < 0 || !stac927x_brd_tbl[spec->board_config]) { if (spec->board_config < 0) {
if (spec->board_config < 0) snd_printdd(KERN_INFO "hda_codec: Unknown model for"
snd_printdd(KERN_INFO "hda_codec: Unknown model for" "STAC927x, using BIOS defaults\n");
"STAC927x, using BIOS defaults\n");
err = stac92xx_save_bios_config_regs(codec); err = stac92xx_save_bios_config_regs(codec);
} else } else
err = stac_save_pin_cfgs(codec, err = stac_save_pin_cfgs(codec,