From: moosotc@gmail.com
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: No audio output via built-in speaker on a MacMini while headphone jack is plugged in
Date: Tue, 15 Mar 2016 18:43:58 +0300 [thread overview]
Message-ID: <87twk77nlt.fsf@gmail.com> (raw)
In-Reply-To: <s5hy49jepbs.wl-tiwai@suse.de> (Takashi Iwai's message of "Tue, 15 Mar 2016 16:24:55 +0100")
Takashi Iwai <tiwai@suse.de> writes:
> On Mon, 14 Mar 2016 19:39:26 +0100,
> moosotc@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@gmail.com
If you need one.
--
mailto:moosotc@gmail.com
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
next prev parent reply other threads:[~2016-03-15 15:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-14 8:11 No audio output via built-in speaker on a MacMini while headphone jack is plugged in moosotc
2016-03-14 16:52 ` Takashi Iwai
2016-03-14 17:16 ` moosotc
2016-03-14 17:53 ` Takashi Iwai
2016-03-14 18:39 ` moosotc
2016-03-15 15:24 ` Takashi Iwai
2016-03-15 15:43 ` moosotc [this message]
2016-03-15 15:49 ` Takashi Iwai
2016-03-14 18:59 ` moosotc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87twk77nlt.fsf@gmail.com \
--to=moosotc@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).