aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2010-03-29 03:20:32 -0400
committerTakashi Iwai <tiwai@suse.de>2010-03-29 03:20:32 -0400
commit55440e4e37540305997b7e93d319ddce97a9cfb1 (patch)
treef1d08e5cbb8eb469bd54665d57bcbb2f7cf9f1ef /sound
parent5266874b09c8a9de744813dd0f7387f02e8191bf (diff)
parent5dbd5ec6e1cf2e49128025d80813a275744a7ac5 (diff)
Merge branch 'fix/hda' into topic/hda
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/hda/hda_intel.c1
-rw-r--r--sound/pci/hda/patch_realtek.c52
2 files changed, 27 insertions, 26 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index a33c1c50b310..b185afd581f1 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -2273,6 +2273,7 @@ static struct snd_pci_quirk position_fix_list[] __devinitdata = {
2273 SND_PCI_QUIRK(0x103c, 0x306d, "HP dv3", POS_FIX_LPIB), 2273 SND_PCI_QUIRK(0x103c, 0x306d, "HP dv3", POS_FIX_LPIB),
2274 SND_PCI_QUIRK(0x1106, 0x3288, "ASUS M2V-MX SE", POS_FIX_LPIB), 2274 SND_PCI_QUIRK(0x1106, 0x3288, "ASUS M2V-MX SE", POS_FIX_LPIB),
2275 SND_PCI_QUIRK(0x1043, 0x813d, "ASUS P5AD2", POS_FIX_LPIB), 2275 SND_PCI_QUIRK(0x1043, 0x813d, "ASUS P5AD2", POS_FIX_LPIB),
2276 SND_PCI_QUIRK(0x1458, 0xa022, "ga-ma770-ud3", POS_FIX_LPIB),
2276 SND_PCI_QUIRK(0x1462, 0x1002, "MSI Wind U115", POS_FIX_LPIB), 2277 SND_PCI_QUIRK(0x1462, 0x1002, "MSI Wind U115", POS_FIX_LPIB),
2277 SND_PCI_QUIRK(0x1565, 0x820f, "Biostar Microtech", POS_FIX_LPIB), 2278 SND_PCI_QUIRK(0x1565, 0x820f, "Biostar Microtech", POS_FIX_LPIB),
2278 SND_PCI_QUIRK(0x8086, 0xd601, "eMachines T5212", POS_FIX_LPIB), 2279 SND_PCI_QUIRK(0x8086, 0xd601, "eMachines T5212", POS_FIX_LPIB),
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 22b7c944f561..edd5071cf011 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -12544,11 +12544,11 @@ static void alc268_aspire_one_speaker_automute(struct hda_codec *codec)
12544 unsigned char bits; 12544 unsigned char bits;
12545 12545
12546 present = snd_hda_jack_detect(codec, 0x15); 12546 present = snd_hda_jack_detect(codec, 0x15);
12547 bits = present ? AMP_IN_MUTE(0) : 0; 12547 bits = present ? HDA_AMP_MUTE : 0;
12548 snd_hda_codec_amp_stereo(codec, 0x0f, HDA_INPUT, 0, 12548 snd_hda_codec_amp_stereo(codec, 0x0f, HDA_INPUT, 0,
12549 AMP_IN_MUTE(0), bits); 12549 HDA_AMP_MUTE, bits);
12550 snd_hda_codec_amp_stereo(codec, 0x0f, HDA_INPUT, 1, 12550 snd_hda_codec_amp_stereo(codec, 0x0f, HDA_INPUT, 1,
12551 AMP_IN_MUTE(0), bits); 12551 HDA_AMP_MUTE, bits);
12552} 12552}
12553 12553
12554static void alc268_acer_lc_unsol_event(struct hda_codec *codec, 12554static void alc268_acer_lc_unsol_event(struct hda_codec *codec,
@@ -13567,11 +13567,11 @@ static void alc269_quanta_fl1_speaker_automute(struct hda_codec *codec)
13567 unsigned char bits; 13567 unsigned char bits;
13568 13568
13569 present = snd_hda_jack_detect(codec, 0x15); 13569 present = snd_hda_jack_detect(codec, 0x15);
13570 bits = present ? AMP_IN_MUTE(0) : 0; 13570 bits = present ? HDA_AMP_MUTE : 0;
13571 snd_hda_codec_amp_stereo(codec, 0x0c, HDA_INPUT, 0, 13571 snd_hda_codec_amp_stereo(codec, 0x0c, HDA_INPUT, 0,
13572 AMP_IN_MUTE(0), bits); 13572 HDA_AMP_MUTE, bits);
13573 snd_hda_codec_amp_stereo(codec, 0x0c, HDA_INPUT, 1, 13573 snd_hda_codec_amp_stereo(codec, 0x0c, HDA_INPUT, 1,
13574 AMP_IN_MUTE(0), bits); 13574 HDA_AMP_MUTE, bits);
13575 13575
13576 snd_hda_codec_write(codec, 0x20, 0, 13576 snd_hda_codec_write(codec, 0x20, 0,
13577 AC_VERB_SET_COEF_INDEX, 0x0c); 13577 AC_VERB_SET_COEF_INDEX, 0x0c);
@@ -13596,11 +13596,11 @@ static void alc269_lifebook_speaker_automute(struct hda_codec *codec)
13596 /* Check port replicator headphone socket */ 13596 /* Check port replicator headphone socket */
13597 present |= snd_hda_jack_detect(codec, 0x1a); 13597 present |= snd_hda_jack_detect(codec, 0x1a);
13598 13598
13599 bits = present ? AMP_IN_MUTE(0) : 0; 13599 bits = present ? HDA_AMP_MUTE : 0;
13600 snd_hda_codec_amp_stereo(codec, 0x0c, HDA_INPUT, 0, 13600 snd_hda_codec_amp_stereo(codec, 0x0c, HDA_INPUT, 0,
13601 AMP_IN_MUTE(0), bits); 13601 HDA_AMP_MUTE, bits);
13602 snd_hda_codec_amp_stereo(codec, 0x0c, HDA_INPUT, 1, 13602 snd_hda_codec_amp_stereo(codec, 0x0c, HDA_INPUT, 1,
13603 AMP_IN_MUTE(0), bits); 13603 HDA_AMP_MUTE, bits);
13604 13604
13605 snd_hda_codec_write(codec, 0x20, 0, 13605 snd_hda_codec_write(codec, 0x20, 0,
13606 AC_VERB_SET_COEF_INDEX, 0x0c); 13606 AC_VERB_SET_COEF_INDEX, 0x0c);
@@ -13731,11 +13731,11 @@ static void alc269_speaker_automute(struct hda_codec *codec)
13731 unsigned char bits; 13731 unsigned char bits;
13732 13732
13733 present = snd_hda_jack_detect(codec, nid); 13733 present = snd_hda_jack_detect(codec, nid);
13734 bits = present ? AMP_IN_MUTE(0) : 0; 13734 bits = present ? HDA_AMP_MUTE : 0;
13735 snd_hda_codec_amp_stereo(codec, 0x0c, HDA_INPUT, 0, 13735 snd_hda_codec_amp_stereo(codec, 0x0c, HDA_INPUT, 0,
13736 AMP_IN_MUTE(0), bits); 13736 HDA_AMP_MUTE, bits);
13737 snd_hda_codec_amp_stereo(codec, 0x0c, HDA_INPUT, 1, 13737 snd_hda_codec_amp_stereo(codec, 0x0c, HDA_INPUT, 1,
13738 AMP_IN_MUTE(0), bits); 13738 HDA_AMP_MUTE, bits);
13739} 13739}
13740 13740
13741/* unsolicited event for HP jack sensing */ 13741/* unsolicited event for HP jack sensing */
@@ -17201,9 +17201,9 @@ static void alc663_m51va_speaker_automute(struct hda_codec *codec)
17201 present = snd_hda_jack_detect(codec, 0x21); 17201 present = snd_hda_jack_detect(codec, 0x21);
17202 bits = present ? HDA_AMP_MUTE : 0; 17202 bits = present ? HDA_AMP_MUTE : 0;
17203 snd_hda_codec_amp_stereo(codec, 0x0c, HDA_INPUT, 0, 17203 snd_hda_codec_amp_stereo(codec, 0x0c, HDA_INPUT, 0,
17204 AMP_IN_MUTE(0), bits); 17204 HDA_AMP_MUTE, bits);
17205 snd_hda_codec_amp_stereo(codec, 0x0c, HDA_INPUT, 1, 17205 snd_hda_codec_amp_stereo(codec, 0x0c, HDA_INPUT, 1,
17206 AMP_IN_MUTE(0), bits); 17206 HDA_AMP_MUTE, bits);
17207} 17207}
17208 17208
17209static void alc663_21jd_two_speaker_automute(struct hda_codec *codec) 17209static void alc663_21jd_two_speaker_automute(struct hda_codec *codec)
@@ -17214,13 +17214,13 @@ static void alc663_21jd_two_speaker_automute(struct hda_codec *codec)
17214 present = snd_hda_jack_detect(codec, 0x21); 17214 present = snd_hda_jack_detect(codec, 0x21);
17215 bits = present ? HDA_AMP_MUTE : 0; 17215 bits = present ? HDA_AMP_MUTE : 0;
17216 snd_hda_codec_amp_stereo(codec, 0x0c, HDA_INPUT, 0, 17216 snd_hda_codec_amp_stereo(codec, 0x0c, HDA_INPUT, 0,
17217 AMP_IN_MUTE(0), bits); 17217 HDA_AMP_MUTE, bits);
17218 snd_hda_codec_amp_stereo(codec, 0x0c, HDA_INPUT, 1, 17218 snd_hda_codec_amp_stereo(codec, 0x0c, HDA_INPUT, 1,
17219 AMP_IN_MUTE(0), bits); 17219 HDA_AMP_MUTE, bits);
17220 snd_hda_codec_amp_stereo(codec, 0x0e, HDA_INPUT, 0, 17220 snd_hda_codec_amp_stereo(codec, 0x0e, HDA_INPUT, 0,
17221 AMP_IN_MUTE(0), bits); 17221 HDA_AMP_MUTE, bits);
17222 snd_hda_codec_amp_stereo(codec, 0x0e, HDA_INPUT, 1, 17222 snd_hda_codec_amp_stereo(codec, 0x0e, HDA_INPUT, 1,
17223 AMP_IN_MUTE(0), bits); 17223 HDA_AMP_MUTE, bits);
17224} 17224}
17225 17225
17226static void alc663_15jd_two_speaker_automute(struct hda_codec *codec) 17226static void alc663_15jd_two_speaker_automute(struct hda_codec *codec)
@@ -17231,13 +17231,13 @@ static void alc663_15jd_two_speaker_automute(struct hda_codec *codec)
17231 present = snd_hda_jack_detect(codec, 0x15); 17231 present = snd_hda_jack_detect(codec, 0x15);
17232 bits = present ? HDA_AMP_MUTE : 0; 17232 bits = present ? HDA_AMP_MUTE : 0;
17233 snd_hda_codec_amp_stereo(codec, 0x0c, HDA_INPUT, 0, 17233 snd_hda_codec_amp_stereo(codec, 0x0c, HDA_INPUT, 0,
17234 AMP_IN_MUTE(0), bits); 17234 HDA_AMP_MUTE, bits);
17235 snd_hda_codec_amp_stereo(codec, 0x0c, HDA_INPUT, 1, 17235 snd_hda_codec_amp_stereo(codec, 0x0c, HDA_INPUT, 1,
17236 AMP_IN_MUTE(0), bits); 17236 HDA_AMP_MUTE, bits);
17237 snd_hda_codec_amp_stereo(codec, 0x0e, HDA_INPUT, 0, 17237 snd_hda_codec_amp_stereo(codec, 0x0e, HDA_INPUT, 0,
17238 AMP_IN_MUTE(0), bits); 17238 HDA_AMP_MUTE, bits);
17239 snd_hda_codec_amp_stereo(codec, 0x0e, HDA_INPUT, 1, 17239 snd_hda_codec_amp_stereo(codec, 0x0e, HDA_INPUT, 1,
17240 AMP_IN_MUTE(0), bits); 17240 HDA_AMP_MUTE, bits);
17241} 17241}
17242 17242
17243static void alc662_f5z_speaker_automute(struct hda_codec *codec) 17243static void alc662_f5z_speaker_automute(struct hda_codec *codec)
@@ -17276,14 +17276,14 @@ static void alc663_two_hp_m2_speaker_automute(struct hda_codec *codec)
17276 17276
17277 if (present1 || present2) { 17277 if (present1 || present2) {
17278 snd_hda_codec_amp_stereo(codec, 0x0c, HDA_INPUT, 0, 17278 snd_hda_codec_amp_stereo(codec, 0x0c, HDA_INPUT, 0,
17279 AMP_IN_MUTE(0), AMP_IN_MUTE(0)); 17279 HDA_AMP_MUTE, HDA_AMP_MUTE);
17280 snd_hda_codec_amp_stereo(codec, 0x0c, HDA_INPUT, 1, 17280 snd_hda_codec_amp_stereo(codec, 0x0c, HDA_INPUT, 1,
17281 AMP_IN_MUTE(0), AMP_IN_MUTE(0)); 17281 HDA_AMP_MUTE, HDA_AMP_MUTE);
17282 } else { 17282 } else {
17283 snd_hda_codec_amp_stereo(codec, 0x0c, HDA_INPUT, 0, 17283 snd_hda_codec_amp_stereo(codec, 0x0c, HDA_INPUT, 0,
17284 AMP_IN_MUTE(0), 0); 17284 HDA_AMP_MUTE, 0);
17285 snd_hda_codec_amp_stereo(codec, 0x0c, HDA_INPUT, 1, 17285 snd_hda_codec_amp_stereo(codec, 0x0c, HDA_INPUT, 1,
17286 AMP_IN_MUTE(0), 0); 17286 HDA_AMP_MUTE, 0);
17287 } 17287 }
17288} 17288}
17289 17289