Re: Regarding Sound on Acer Aspire 6935G

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At Tue, 23 Jun 2009 22:32:45 -0300,
Emilio López wrote:
> 
> Here is the patch, with jack sensing not working fully. Maybe you can
> spot my mistake faster than me

It might not be 0x17.  Check other pins and try to mute manually via
hda-verb, for example,

	# hda-verb /dev/snd/hwC0D0 0x18 SET_AMP 0xb080


Takashi


> 
> diff -wru alsa-driver/sound/pci/hda/patch_realtek.c
> alsa-driver-patched/sound/pci/hda/patch_realtek.c
> --- alsa-driver/sound/pci/hda/patch_realtek.c	2009-06-22
> 12:50:12.000000000 -0300
> +++ alsa-driver-patched/sound/pci/hda/patch_realtek.c	2009-06-23
> 22:28:22.653374751 -0300
> @@ -1471,6 +1471,10 @@
>  static struct hda_verb alc888_acer_aspire_6530g_verbs[] = {
>  /* Bias voltage on for external mic port */
>  	{0x18, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN | PIN_VREF80},
> +/* Front Mic: set to PIN_IN (empty by default) */
> +	{0x12, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN},
> +/* Unselect Front Mic by default in input mixer 3 */
> +	{0x22, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(0xb)},
>  /* Enable unsolicited event for HP jack */
>  	{0x15, AC_VERB_SET_UNSOLICITED_ENABLE, ALC880_HP_EVENT | AC_USRSP_EN},
>  /* Enable speaker output */
> @@ -1639,6 +1643,17 @@
>  	alc_automute_amp(codec);
>  }
> 
> +static void alc888_acer_aspire_6530g_init_hook(struct hda_codec *codec)
> +{
> +	struct alc_spec *spec = codec->spec;
> +
> +	spec->autocfg.hp_pins[0] = 0x15;
> +	spec->autocfg.speaker_pins[0] = 0x14;
> +	spec->autocfg.speaker_pins[1] = 0x16;
> +	spec->autocfg.speaker_pins[2] = 0x17;
> +	alc_automute_amp(codec);
> +}
> +
>  static void alc889_acer_aspire_8930g_init_hook(struct hda_codec *codec)
>  {
>  	struct alc_spec *spec = codec->spec;
> @@ -9317,7 +9332,7 @@
>  			ARRAY_SIZE(alc888_2_capture_sources),
>  		.input_mux = alc888_acer_aspire_6530_sources,
>  		.unsol_event = alc_automute_amp_unsol_event,
> -		.init_hook = alc888_acer_aspire_4930g_init_hook,
> +		.init_hook = alc888_acer_aspire_6530g_init_hook,
>  	},
>  	[ALC888_ACER_ASPIRE_8930G] = {
>  		.mixers = { alc888_base_mixer,
> 
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel


[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux