ASoC: mediatek: mt8183-da7219: set headset button maps
Subsystems (3)
PATCH 1/1 ASoC: mediatek: mt8183-da7219: set headset button maps
Sets headset button maps.
--- .../soc/mediatek/mt8183/mt8183-da7219-max98357.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-)
sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c +13 -3
@@ -6,11 +6,12 @@// Copyright (c) 2018 MediaTek Inc. // Author: Shunli Wang <[email protected]> +#include <linux/input.h> #include <linux/module.h> +#include <linux/pinctrl/consumer.h> +#include <sound/jack.h> #include <sound/pcm_params.h> #include <sound/soc.h> -#include <sound/jack.h> -#include <linux/pinctrl/consumer.h> #include "mt8183-afe-common.h" #include "../../codecs/da7219-aad.h"
@@ -471,9 +472,18 @@ mt8183_da7219_max98357_headset_init(struct snd_soc_component *component)if (ret)return ret; +snd_jack_set_key ( + priv->headset_jack.jack,SND_JACK_BTN_0 ,KEY_PLAYPAUSE ); +snd_jack_set_key ( + priv->headset_jack.jack,SND_JACK_BTN_1 ,KEY_VOLUMEUP ); +snd_jack_set_key ( + priv->headset_jack.jack,SND_JACK_BTN_2 ,KEY_VOLUMEDOWN ); +snd_jack_set_key ( + priv->headset_jack.jack,SND_JACK_BTN_3 ,KEY_VOICECOMMAND ); +da7219_aad_jack_det (component, &priv->headset_jack); -return ret; +return 0 ; }static int mt8183_da7219_max98357_dev_probe (struct platform_device *pdev)
Signature · 1 line
2.26.2.645.ge9eca65c58-goog
Mark Brown
maintainerQuoted 1 line · Tzung-Bi Shih
Sets headset button maps.
Applied to
local tree asoc/for-5.7
Thanks!
[1/1] ASoC: mediatek: mt8183-da7219: set headset button maps
(no commit info)
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark