diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-11-05 02:56:20 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-11-05 02:56:20 -0500 |
commit | 7d5ab418702e17565b6cf6eacc31b6b0852f6dc8 (patch) | |
tree | 5e5086fabb48fd078dd9f1a041c2491a2ac6864e /sound/pci/hda/patch_realtek.c | |
parent | 23c4a8812a17f0af2b573a63fc991baa7d3570ed (diff) | |
parent | 798a8a15011e88cc63dbbb15728b42572c152093 (diff) |
Merge branch 'fix/hda' into topic/hda
Diffstat (limited to 'sound/pci/hda/patch_realtek.c')
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 4c8e5216506b..b592419b2083 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
@@ -275,7 +275,7 @@ struct alc_spec { | |||
275 | struct snd_kcontrol_new *cap_mixer; /* capture mixer */ | 275 | struct snd_kcontrol_new *cap_mixer; /* capture mixer */ |
276 | unsigned int beep_amp; /* beep amp value, set via set_beep_amp() */ | 276 | unsigned int beep_amp; /* beep amp value, set via set_beep_amp() */ |
277 | 277 | ||
278 | const struct hda_verb *init_verbs[5]; /* initialization verbs | 278 | const struct hda_verb *init_verbs[10]; /* initialization verbs |
279 | * don't forget NULL | 279 | * don't forget NULL |
280 | * termination! | 280 | * termination! |
281 | */ | 281 | */ |
@@ -965,6 +965,8 @@ static void alc_automute_pin(struct hda_codec *codec) | |||
965 | unsigned int nid = spec->autocfg.hp_pins[0]; | 965 | unsigned int nid = spec->autocfg.hp_pins[0]; |
966 | int i; | 966 | int i; |
967 | 967 | ||
968 | if (!nid) | ||
969 | return; | ||
968 | pincap = snd_hda_query_pin_caps(codec, nid); | 970 | pincap = snd_hda_query_pin_caps(codec, nid); |
969 | if (pincap & AC_PINCAP_TRIG_REQ) /* need trigger? */ | 971 | if (pincap & AC_PINCAP_TRIG_REQ) /* need trigger? */ |
970 | snd_hda_codec_read(codec, nid, 0, AC_VERB_SET_PIN_SENSE, 0); | 972 | snd_hda_codec_read(codec, nid, 0, AC_VERB_SET_PIN_SENSE, 0); |
@@ -12594,7 +12596,8 @@ static struct snd_pci_quirk alc268_cfg_tbl[] = { | |||
12594 | SND_PCI_QUIRK(0x1025, 0x015b, "Acer Aspire One", | 12596 | SND_PCI_QUIRK(0x1025, 0x015b, "Acer Aspire One", |
12595 | ALC268_ACER_ASPIRE_ONE), | 12597 | ALC268_ACER_ASPIRE_ONE), |
12596 | SND_PCI_QUIRK(0x1028, 0x0253, "Dell OEM", ALC268_DELL), | 12598 | SND_PCI_QUIRK(0x1028, 0x0253, "Dell OEM", ALC268_DELL), |
12597 | SND_PCI_QUIRK(0x1028, 0x02b0, "Dell Inspiron Mini9", ALC268_DELL), | 12599 | SND_PCI_QUIRK_MASK(0x1028, 0xfff0, 0x02b0, |
12600 | "Dell Inspiron Mini9/Vostro A90", ALC268_DELL), | ||
12598 | /* almost compatible with toshiba but with optional digital outs; | 12601 | /* almost compatible with toshiba but with optional digital outs; |
12599 | * auto-probing seems working fine | 12602 | * auto-probing seems working fine |
12600 | */ | 12603 | */ |
@@ -17351,7 +17354,7 @@ static int alc662_auto_create_extra_out(struct hda_codec *codec, hda_nid_t pin, | |||
17351 | 17354 | ||
17352 | /* create playback/capture controls for input pins */ | 17355 | /* create playback/capture controls for input pins */ |
17353 | #define alc662_auto_create_input_ctls \ | 17356 | #define alc662_auto_create_input_ctls \ |
17354 | alc880_auto_create_input_ctls | 17357 | alc882_auto_create_input_ctls |
17355 | 17358 | ||
17356 | static void alc662_auto_set_output_and_unmute(struct hda_codec *codec, | 17359 | static void alc662_auto_set_output_and_unmute(struct hda_codec *codec, |
17357 | hda_nid_t nid, int pin_type, | 17360 | hda_nid_t nid, int pin_type, |