]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[ALSA] hda: Correct SPDIF out default config
authorMatthew Ranostay <mranostay@embeddedalley.com>
Mon, 14 Apr 2008 11:32:27 +0000 (13:32 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 24 Apr 2008 10:00:34 +0000 (12:00 +0200)
Several laptops have have the SPDIF out defined as 'Digital other out'
when it should be 'SPDIF out' in the default config.

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

index 69cd3b23f5a718aa574690f9c727cf9cc3619648..d79580c2986288b49899e947222c31ac91aec235 100644 (file)
@@ -3778,6 +3778,13 @@ static int patch_stac927x(struct hda_codec *codec)
                spec->mixer = stac927x_mixer;
                break;
        case STAC_DELL_BIOS:
+               switch (codec->subsystem_id) {
+               case 0x10280209:
+               case 0x1028022e:
+                       /* correct the device field to SPDIF out */
+                       stac92xx_set_config_reg(codec, 0x21, 0x01442070);
+                       break;
+               };
                /* configure the analog microphone on some laptops */
                stac92xx_set_config_reg(codec, 0x0c, 0x90a79130);
                /* correct the front output jack as a hp out */