2009/8/24 Takashi Iwai tiwai@suse.de
At Mon, 24 Aug 2009 17:10:10 +0400, Denis Kup wrote:
Sorry, I was very busy last two months. We don't finish with this theme. What about my patch?
Please check with the latest sound GIT tree (or alsa-driver snapshot) whether it still work and repost the patch. There have been lots of changes in HD-audio driver code, so an old patch might not work any more.
thanks,
Takashi
I tested patch with alsa-driver-1.0.20.40.g13311.579.gcf341. All works as it should.
It's diff between patched version( patch_realtek_new.c ) and unpatched:
dener@linux-wpg9:~/Documents/1> diff ./patch_realtek_new.c ./patch_realtek_old.c 223d222 < ALC888_ACER_ASPIRE_7730G, 8341,8366d8339 < static struct hda_verb alc888_acer_aspire_7730G_verbs[] = { < {0x15, AC_VERB_SET_CONNECT_SEL, 0x00}, < {0x17, AC_VERB_SET_CONNECT_SEL, 0x02}, < {0x15, AC_VERB_SET_UNSOLICITED_ENABLE, ALC880_HP_EVENT | AC_USRSP_EN}, < { } /* end */ < }; < < static void alc888_acer_aspire_7730G_front_automute(struct hda_codec *codec) < { < unsigned int present; < < present = snd_hda_codec_read(codec, 0x15, 0, < AC_VERB_GET_PIN_SENSE, 0) & 0x80000000; < snd_hda_codec_amp_stereo(codec, 0x14, HDA_OUTPUT, 0, < HDA_AMP_MUTE, present ? HDA_AMP_MUTE : 0); < snd_hda_codec_amp_stereo(codec, 0x17, HDA_OUTPUT, 0, < HDA_AMP_MUTE, present ? HDA_AMP_MUTE : 0); < } < < static void alc888_acer_aspire_7730G_unsol_event(struct hda_codec *codec, < unsigned int res) < { < if ((res >> 26) == ALC880_HP_EVENT) < alc888_acer_aspire_7730G_front_automute(codec); < } < 8558d8530 < [ALC888_ACER_ASPIRE_7730G] = "acer-aspire-7730g", 8605d8576 < SND_PCI_QUIRK(0x1025, 0x0142, "Acer Aspire 7730G", ALC888_ACER_ASPIRE_7730G), 9094,9107d9064 < }, < [ALC888_ACER_ASPIRE_7730G] = { < .mixers = { alc883_3ST_6ch_mixer, alc883_chmode_mixer }, < .init_verbs = { alc883_init_verbs, alc888_acer_aspire_7730G_verbs }, < .num_dacs = ARRAY_SIZE(alc883_dac_nids), < .dac_nids = alc883_dac_nids, < .dig_out_nid = ALC883_DIGOUT_NID, < .dig_in_nid = ALC883_DIGIN_NID, < .num_channel_mode = ARRAY_SIZE(alc883_3ST_6ch_modes), < .channel_mode = alc883_3ST_6ch_modes, < .need_dac_fix = 1, < .input_mux = &alc883_capture_source, < .unsol_event = alc888_acer_aspire_7730G_unsol_event, < .init_hook = alc888_acer_aspire_7730G_front_automute,