[alsa-devel] No audio output via built-in speaker on a MacMini while headphone jack is plugged in

Takashi Iwai tiwai at suse.de
Tue Mar 15 16:49:08 CET 2016


On Tue, 15 Mar 2016 16:43:58 +0100,
moosotc at gmail.com wrote:
> 
> 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.

Good to hear.  I'll cook up the official patch and submit/merge soon
later.  Thanks for your quick test.


Takashi


More information about the Alsa-devel mailing list