From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
To: xiazhengqiao <xiazhengqiao@huaqin.corp-partner.google.com>,
lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org,
matthias.bgg@gmail.com, perex@perex.cz, trevor.wu@mediatek.com,
jiaxin.yu@mediatek.com
Cc: alsa-devel@alsa-project.org, devicetree@vger.kernel.org,
linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [v1 2/2] ASoC: mediatek: mt8186_mt6366_rt1019_rt5682s: add rt5650 support
Date: Thu, 19 Oct 2023 10:48:29 +0200 [thread overview]
Message-ID: <54ec6435-e69b-444a-a31a-c878a4b3564a@collabora.com> (raw)
In-Reply-To: <20231019021133.23855-3-xiazhengqiao@huaqin.corp-partner.google.com>
Il 19/10/23 04:11, xiazhengqiao ha scritto:
> To use RT5650 as the codec and the amp, add a new
> sound card named mt8186_rt5650.
>
> Signed-off-by: xiazhengqiao <xiazhengqiao@huaqin.corp-partner.google.com>
> ---
> sound/soc/mediatek/Kconfig | 1 +
> .../mt8186/mt8186-mt6366-rt1019-rt5682s.c | 45 ++++++++++++++++++-
> 2 files changed, 45 insertions(+), 1 deletion(-)
>
> diff --git a/sound/soc/mediatek/Kconfig b/sound/soc/mediatek/Kconfig
> index 43c8fea00439..b93d455744ab 100644
> --- a/sound/soc/mediatek/Kconfig
> +++ b/sound/soc/mediatek/Kconfig
> @@ -210,6 +210,7 @@ config SND_SOC_MT8186_MT6366_RT1019_RT5682S
> select SND_SOC_MAX98357A
> select SND_SOC_RT1015P
> select SND_SOC_RT5682S
> + select SND_SOC_RT5645
> select SND_SOC_BT_SCO
> select SND_SOC_DMIC
> select SND_SOC_HDMI_CODEC
> diff --git a/sound/soc/mediatek/mt8186/mt8186-mt6366-rt1019-rt5682s.c b/sound/soc/mediatek/mt8186/mt8186-mt6366-rt1019-rt5682s.c
> index 4684bfd89ecd..8c534c338f0e 100644
> --- a/sound/soc/mediatek/mt8186/mt8186-mt6366-rt1019-rt5682s.c
> +++ b/sound/soc/mediatek/mt8186/mt8186-mt6366-rt1019-rt5682s.c
> @@ -170,6 +170,7 @@ static int mt8186_rt5682s_init(struct snd_soc_pcm_runtime *rtd)
> struct snd_soc_component *cmpnt_codec =
> snd_soc_rtd_to_codec(rtd, 0)->component;
> int ret;
> + int type;
>
> ret = mt8186_dai_i2s_set_share(afe, "I2S1", "I2S0");
> if (ret) {
> @@ -193,7 +194,8 @@ static int mt8186_rt5682s_init(struct snd_soc_pcm_runtime *rtd)
> snd_jack_set_key(jack->jack, SND_JACK_BTN_2, KEY_VOLUMEUP);
> snd_jack_set_key(jack->jack, SND_JACK_BTN_3, KEY_VOLUMEDOWN);
>
> - return snd_soc_component_set_jack(cmpnt_codec, jack, NULL);
> + type = SND_JACK_HEADSET | SND_JACK_BTN_0 | SND_JACK_BTN_1 | SND_JACK_BTN_2 | SND_JACK_BTN_3;
> + return snd_soc_component_set_jack(cmpnt_codec, jack, (void *)&type);
> }
>
> static int mt8186_rt5682s_i2s_hw_params(struct snd_pcm_substream *substream,
> @@ -1058,6 +1060,28 @@ mt8186_mt6366_rt1019_rt5682s_routes[] = {
> {"DSP_DL2_VIRT", NULL, SOF_DMA_DL2},
> };
>
> +static const struct snd_soc_dapm_route
> +mt8186_mt6366_rt5650_routes[] = {
This fits in one line, please fix.
After which,
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
prev parent reply other threads:[~2023-10-19 8:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20231019021133.23855-1-xiazhengqiao@huaqin.corp-partner.google.com>
[not found] ` <20231019021133.23855-2-xiazhengqiao@huaqin.corp-partner.google.com>
2023-10-19 8:48 ` [v1 1/2] ASoC: dt-bindings: mt8186-mt6366-rt1019-rt5682s: add RT5650 support AngeloGioacchino Del Regno
[not found] ` <20231019021133.23855-3-xiazhengqiao@huaqin.corp-partner.google.com>
2023-10-19 8:48 ` AngeloGioacchino Del Regno [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=54ec6435-e69b-444a-a31a-c878a4b3564a@collabora.com \
--to=angelogioacchino.delregno@collabora.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jiaxin.yu@mediatek.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=perex@perex.cz \
--cc=robh+dt@kernel.org \
--cc=trevor.wu@mediatek.com \
--cc=xiazhengqiao@huaqin.corp-partner.google.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
all inboxes | Powered by JetHome®