]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - sound/pci/hda/patch_analog.c
ALSA: hda - Add Dell Latitude E6400 model quirk
[linux.git] / sound / pci / hda / patch_analog.c
index afbe314a5bf33d3e414749314dbb75255e11124d..10bbbaf6ebc3d2b0531ba2fb1ab7e3f2be1f8994 100644 (file)
@@ -3641,6 +3641,7 @@ static struct snd_pci_quirk ad1984_cfg_tbl[] = {
        /* Lenovo Thinkpad T61/X61 */
        SND_PCI_QUIRK_VENDOR(0x17aa, "Lenovo Thinkpad", AD1984_THINKPAD),
        SND_PCI_QUIRK(0x1028, 0x0214, "Dell T3400", AD1984_DELL_DESKTOP),
+       SND_PCI_QUIRK(0x1028, 0x0233, "Dell Latitude E6400", AD1984_DELL_DESKTOP),
        {}
 };
 
@@ -3662,7 +3663,12 @@ static int patch_ad1984(struct hda_codec *codec)
                codec->patch_ops.build_pcms = ad1984_build_pcms;
                break;
        case AD1984_THINKPAD:
-               spec->multiout.dig_out_nid = AD1884_SPDIF_OUT;
+               if (codec->subsystem_id == 0x17aa20fb) {
+                       /* Thinpad X300 does not have the ability to do SPDIF,
+                          or attach to docking station to use SPDIF */
+                       spec->multiout.dig_out_nid = 0;
+               } else
+                       spec->multiout.dig_out_nid = AD1884_SPDIF_OUT;
                spec->input_mux = &ad1984_thinkpad_capture_source;
                spec->mixers[0] = ad1984_thinkpad_mixers;
                spec->init_verbs[spec->num_init_verbs++] = ad1984_thinkpad_init_verbs;