Re: No audio output via built-in speaker on a MacMini while headphone jack is plugged in

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

 



Takashi Iwai <tiwai@xxxxxxx> writes:

> On Mon, 14 Mar 2016 19:39:26 +0100,
> moosotc@xxxxxxxxx wrote:
>> 

[..snip..]

>
> Thanks.  This seems to be the missing GPIO setup when the auto-mute is
> disabled.  Could you give the patch below?
>
>
> Takashi
>
> ---
> diff --git a/sound/pci/hda/patch_cirrus.c b/sound/pci/hda/patch_cirrus.c
> index c1c855a6c0af..a47e8ae0eb30 100644
> --- a/sound/pci/hda/patch_cirrus.c
> +++ b/sound/pci/hda/patch_cirrus.c
> @@ -174,8 +174,12 @@ static void cs_automute(struct hda_codec *codec)
>  	snd_hda_gen_update_outputs(codec);
>  
>  	if (spec->gpio_eapd_hp || spec->gpio_eapd_speaker) {
> -		spec->gpio_data = spec->gen.hp_jack_present ?
> -			spec->gpio_eapd_hp : spec->gpio_eapd_speaker;
> +		if (spec->gen.automute_speaker)
> +			spec->gpio_data = spec->gen.hp_jack_present ?
> +				spec->gpio_eapd_hp : spec->gpio_eapd_speaker;
> +		else
> +			spec->gpio_data =
> +				spec->gpio_eapd_hp | spec->gpio_eapd_speaker;
>  		snd_hda_codec_write(codec, 0x01, 0,
>  				    AC_VERB_SET_GPIO_DATA, spec->gpio_data);
>  	}

That works perfectly with "Auto-Mute Mode" set to "Disabled".

Danke schön.

Tested-by: moosotc@xxxxxxxxx

If you need one.

-- 
mailto:moosotc@xxxxxxxxx
_______________________________________________
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