From: Takashi Iwai <tiwai@suse.de>
To: Hui Wang <hui.wang@canonical.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: [PATCH v2] ALSA: hda - bind headset buttons to the headphone jack
Date: Fri, 05 Mar 2021 15:19:21 +0100 [thread overview]
Message-ID: <s5htupp7keu.wl-tiwai@suse.de> (raw)
In-Reply-To: <20210305092608.109599-1-hui.wang@canonical.com>
On Fri, 05 Mar 2021 10:26:08 +0100,
Hui Wang wrote:
>
> With the HDA driver, if the headset buttons are supported, an audio
> Jack will be created for them. This audio Jack is a bit confusing to
> users since it can't report headphone/mic insertion events but it
> claims to support these events.
>
> And in addition, the driver already builds a headphone Jack and a mic
> Jack, and most of those buttons are used for headphone playback, so
> do some change to bind those buttons to the headphone Jack. After this
> change, the key events are generated from NID 0x55, and are reported
> to the input layer via headphone jack (NID 0x21).
>
> If there is no headphone Jack, then build an audio jack to support
> those buttons same as previously.
>
> Signed-off-by: Hui Wang <hui.wang@canonical.com>
> ---
> In the v2, add a function snd_hda_jack_set_button_state(),
> the codec driver calls it to report the button state.
Thanks, applied now to for-next branch.
Takashi
prev parent reply other threads:[~2021-03-05 14:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-05 9:26 [PATCH v2] ALSA: hda - bind headset buttons to the headphone jack Hui Wang
2021-03-05 14:19 ` Takashi Iwai [this message]
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=s5htupp7keu.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=hui.wang@canonical.com \
/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