]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ALSA: hda - Check model type instead of SSID in patch_92hd71bxx()
authorTakashi Iwai <tiwai@suse.de>
Sat, 15 Nov 2008 18:28:54 +0000 (19:28 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sat, 15 Nov 2008 18:28:54 +0000 (19:28 +0100)
Check board preset model instead of codec->subsystem_id in
patch_92hd71bxx() so that other hardwares configured via the model
option work like the given model.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_sigmatel.c

index f205570def1c3a194682cb9b7f1344b0fec95615..0df6f979f2a3fd614bd03557945f36c0d3371b07 100644 (file)
@@ -4488,8 +4488,8 @@ again:
                codec->slave_dig_outs = stac92hd71bxx_slave_dig_outs;
                break;
        case 0x111d7608: /* 5 Port with Analog Mixer */
-               switch (codec->subsystem_id) {
-               case 0x103c361a:
+               switch (spec->board_config) {
+               case STAC_HP_M4:
                        /* Enable VREF power saving on GPIO1 detect */
                        snd_hda_codec_write(codec, codec->afg, 0,
                                AC_VERB_SET_GPIO_UNSOLICITED_RSP_MASK, 0x02);