[alsa-devel] No audio output via built-in speaker on a MacMini while headphone jack is plugged in
moosotc at gmail.com
moosotc at gmail.com
Tue Mar 15 16:43:58 CET 2016
Takashi Iwai <tiwai at suse.de> writes:
> On Mon, 14 Mar 2016 19:39:26 +0100,
> moosotc at gmail.com 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 at gmail.com
If you need one.
--
mailto:moosotc at gmail.com
More information about the Alsa-devel
mailing list