[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <154497b3-f5c7-45d6-edd5-729642b80be5@collabora.com>
Date: Wed, 17 May 2023 13:31:30 +0200
From: AngeloGioacchino Del Regno
<angelogioacchino.delregno@...labora.com>
To: Trevor Wu <trevor.wu@...iatek.com>, broonie@...nel.org,
lgirdwood@...il.com, tiwai@...e.com, perex@...ex.cz,
robh+dt@...nel.org, krzysztof.kozlowski+dt@...aro.org,
conor+dt@...nel.org, matthias.bgg@...il.com
Cc: alsa-devel@...a-project.org, linux-mediatek@...ts.infradead.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org
Subject: Re: [PATCH 2/5] ASoC: mediatek: mt8188-mt6359: register hdmi/dp jack
pins
Il 17/05/23 13:15, Trevor Wu ha scritto:
> Some userspace applications need jack control events, so register hdmi
> and dp jack pins to activate jack control events.
>
> Signed-off-by: Trevor Wu <trevor.wu@...iatek.com>
> ---
> sound/soc/mediatek/mt8188/mt8188-mt6359.c | 27 +++++++++++++++++++----
> 1 file changed, 23 insertions(+), 4 deletions(-)
>
> diff --git a/sound/soc/mediatek/mt8188/mt8188-mt6359.c b/sound/soc/mediatek/mt8188/mt8188-mt6359.c
> index 833bc362dad2..6c3f36e2fffd 100644
> --- a/sound/soc/mediatek/mt8188/mt8188-mt6359.c
> +++ b/sound/soc/mediatek/mt8188/mt8188-mt6359.c
> @@ -151,6 +151,20 @@ struct mt8188_mt6359_priv {
> struct snd_soc_jack hdmi_jack;
> };
>
> +static struct snd_soc_jack_pin mt8188_hdmi_jack_pins[] = {
> + {
> + .pin = "HDMI",
"HDMI Jack" is more consistent with the snd_soc_jack_new_pins() call performed
later.
> + .mask = SND_JACK_LINEOUT,
> + },
> +};
> +
> +static struct snd_soc_jack_pin mt8188_dp_jack_pins[] = {
> + {
> + .pin = "DP",
Same here: "DP Jack"
> + .mask = SND_JACK_LINEOUT,
> + },
> +};
> +
Regards,
Angelo
Powered by blists - more mailing lists