All of lore.kernel.org
 help / color / mirror / Atom feed
* [v1 0/3] add es8326 dt-bindings and es8326 support
@ 2023-11-07  3:14 Rui Zhou
  2023-11-07  3:14 ` [v1 1/3] ASoC: dt-bindings: mt8188-mt6359: add " Rui Zhou
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Rui Zhou @ 2023-11-07  3:14 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt,
	angelogioacchino.delregno, perex, allen-kh.cheng,
	kuninori.morimoto.gx
  Cc: linux-sound, devicetree, linux-kernel, linux-mediatek, Rui Zhou

Add dt-bindings for es8326 and codec es8326 support. 
At the same time, it's necessary to add support for the driver 
to connect to the i2s dual-channel amp.

Rui Zhou (3):
  ASoC: dt-bindings: mt8188-mt6359: add es8326 support
  ASoC: mediatek: mt8188-mt6359: add es8326 support
  ASoC: mediatek: mt8188-mt6359: add two amps support

 .../sound/mediatek,mt8188-mt6359.yaml         |   1 +
 sound/soc/mediatek/Kconfig                    |   1 +
 sound/soc/mediatek/mt8188/mt8188-mt6359.c     | 102 +++++++++++++++++-
 3 files changed, 102 insertions(+), 2 deletions(-)

-- 
2.25.1



^ permalink raw reply	[flat|nested] 13+ messages in thread

* [v1 1/3] ASoC: dt-bindings: mt8188-mt6359: add es8326 support
  2023-11-07  3:14 [v1 0/3] add es8326 dt-bindings and es8326 support Rui Zhou
@ 2023-11-07  3:14 ` Rui Zhou
  2023-11-07  7:11   ` Krzysztof Kozlowski
                     ` (2 more replies)
  2023-11-07  3:14 ` [v1 2/3] ASoC: mediatek: " Rui Zhou
  2023-11-07  3:14 ` [v1 3/3] ASoC: mediatek: mt8188-mt6359: add two amps support Rui Zhou
  2 siblings, 3 replies; 13+ messages in thread
From: Rui Zhou @ 2023-11-07  3:14 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt,
	angelogioacchino.delregno, perex, allen-kh.cheng,
	kuninori.morimoto.gx
  Cc: linux-sound, devicetree, linux-kernel, linux-mediatek, Rui Zhou

Add compatible string "mediatek,mt8188-es8326" to support new board
with es8326 codec.

Signed-off-by: Rui Zhou <zhourui@huaqin.corp-partner.google.com>
---
 .../devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml        | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml b/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml
index 4c8c95057ef7..9df5e44176d0 100644
--- a/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml
+++ b/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml
@@ -18,6 +18,7 @@ properties:
       - mediatek,mt8188-mt6359-evb
       - mediatek,mt8188-nau8825
       - mediatek,mt8188-rt5682s
+      - mediatek,mt8188-es8326
 
   audio-routing:
     description:
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [v1 2/3] ASoC: mediatek: mt8188-mt6359: add es8326 support
  2023-11-07  3:14 [v1 0/3] add es8326 dt-bindings and es8326 support Rui Zhou
  2023-11-07  3:14 ` [v1 1/3] ASoC: dt-bindings: mt8188-mt6359: add " Rui Zhou
@ 2023-11-07  3:14 ` Rui Zhou
  2023-11-07  8:30   ` AngeloGioacchino Del Regno
  2023-11-07  3:14 ` [v1 3/3] ASoC: mediatek: mt8188-mt6359: add two amps support Rui Zhou
  2 siblings, 1 reply; 13+ messages in thread
From: Rui Zhou @ 2023-11-07  3:14 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt,
	angelogioacchino.delregno, perex, allen-kh.cheng,
	kuninori.morimoto.gx
  Cc: linux-sound, devicetree, linux-kernel, linux-mediatek, Rui Zhou

To use ES8326 as the codec, add a new sound card
named mt8186_es8326.

Signed-off-by: Rui Zhou <zhourui@huaqin.corp-partner.google.com>
---
 sound/soc/mediatek/Kconfig                |   1 +
 sound/soc/mediatek/mt8188/mt8188-mt6359.c | 100 +++++++++++++++++++++-
 2 files changed, 100 insertions(+), 1 deletion(-)

diff --git a/sound/soc/mediatek/Kconfig b/sound/soc/mediatek/Kconfig
index b93d455744ab..296b434caf81 100644
--- a/sound/soc/mediatek/Kconfig
+++ b/sound/soc/mediatek/Kconfig
@@ -252,6 +252,7 @@ config SND_SOC_MT8188_MT6359
 	select SND_SOC_NAU8315
 	select SND_SOC_NAU8825
 	select SND_SOC_RT5682S
+	select SND_SOC_ES8326
 	help
 	  This adds support for ASoC machine driver for MediaTek MT8188
 	  boards with the MT6359 and other I2S audio codecs.
diff --git a/sound/soc/mediatek/mt8188/mt8188-mt6359.c b/sound/soc/mediatek/mt8188/mt8188-mt6359.c
index 33d477cc2e54..e994faa3556b 100644
--- a/sound/soc/mediatek/mt8188/mt8188-mt6359.c
+++ b/sound/soc/mediatek/mt8188/mt8188-mt6359.c
@@ -34,6 +34,8 @@
 
 #define NAU8825_HS_PRESENT	BIT(0)
 #define RT5682S_HS_PRESENT	BIT(1)
+#define ES8326_HS_PRESENT	BIT(2)
+#define MAX98390_TWO_AMP	BIT(3)
 /*
  * Maxim MAX98390
  */
@@ -48,6 +50,11 @@
  */
 #define NAU8825_CODEC_DAI  "nau8825-hifi"
 
+/*
+ * ES8326
+ */
+#define ES8326_CODEC_DAI  "es8326-hifi"
+
 #define SOF_DMA_DL2 "SOF_DMA_DL2"
 #define SOF_DMA_DL3 "SOF_DMA_DL3"
 #define SOF_DMA_UL4 "SOF_DMA_UL4"
@@ -261,6 +268,17 @@ static struct snd_soc_jack_pin nau8825_jack_pins[] = {
 	},
 };
 
+static struct snd_soc_jack_pin es8326_jack_pins[] = {
+	{
+		.pin    = "Headphone",
+		.mask   = SND_JACK_HEADPHONE,
+	},
+	{
+		.pin    = "Headset Mic",
+		.mask   = SND_JACK_MICROPHONE,
+	},
+};
+
 struct mt8188_card_data {
 	const char *name;
 	unsigned long quirk;
@@ -943,6 +961,71 @@ static const struct snd_soc_ops mt8188_sof_be_ops = {
 	.hw_params = mt8188_sof_be_hw_params,
 };
 
+static int mt8188_es8326_codec_init(struct snd_soc_pcm_runtime *rtd)
+{
+	struct mtk_soc_card_data *soc_card_data = snd_soc_card_get_drvdata(rtd->card);
+	struct mt8188_mt6359_priv *priv = soc_card_data->mach_priv;
+	struct snd_soc_component *component = asoc_rtd_to_codec(rtd, 0)->component;
+	struct snd_soc_jack *jack = &priv->headset_jack;
+	int ret;
+
+	ret = snd_soc_card_jack_new_pins(rtd->card, "Headset Jack",
+					 SND_JACK_HEADSET | SND_JACK_BTN_0 |
+					 SND_JACK_BTN_1 | SND_JACK_BTN_2 |
+					 SND_JACK_BTN_3,
+					 jack,
+					 es8326_jack_pins,
+					 ARRAY_SIZE(es8326_jack_pins));
+	if (ret) {
+		dev_err(rtd->dev, "Headset Jack creation failed: %d\n", ret);
+		return ret;
+	}
+
+	snd_jack_set_key(jack->jack, SND_JACK_BTN_0, KEY_PLAYPAUSE);
+	snd_jack_set_key(jack->jack, SND_JACK_BTN_1, KEY_VOICECOMMAND);
+	snd_jack_set_key(jack->jack, SND_JACK_BTN_2, KEY_VOLUMEUP);
+	snd_jack_set_key(jack->jack, SND_JACK_BTN_3, KEY_VOLUMEDOWN);
+	ret = snd_soc_component_set_jack(component, jack, NULL);
+
+	if (ret) {
+		dev_err(rtd->dev, "Headset Jack call-back failed: %d\n", ret);
+		return ret;
+	}
+
+	return ret;
+};
+
+static void mt8188_es8326_codec_exit(struct snd_soc_pcm_runtime *rtd)
+{
+	struct snd_soc_component *component = asoc_rtd_to_codec(rtd, 0)->component;
+
+	snd_soc_component_set_jack(component, NULL, NULL);
+}
+
+static int mt8188_es8326_hw_params(struct snd_pcm_substream *substream,
+				 struct snd_pcm_hw_params *params)
+{
+	struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
+	struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0);
+	struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0);
+	unsigned int rate = params_rate(params);
+	int ret;
+
+	/* Configure MCLK for codec */
+	ret = snd_soc_dai_set_sysclk(codec_dai, 0, rate * 256, SND_SOC_CLOCK_IN);
+	if (ret < 0) {
+		dev_err(codec_dai->dev, "can't set MCLK %d\n", ret);
+		return ret;
+	}
+
+	/* Configure MCLK for cpu */
+	return snd_soc_dai_set_sysclk(cpu_dai, 0, rate * 256, SND_SOC_CLOCK_OUT);
+}
+
+static const struct snd_soc_ops mt8188_es8326_ops = {
+	.hw_params = mt8188_es8326_hw_params,
+};
+
 static struct snd_soc_dai_link mt8188_mt6359_dai_links[] = {
 	/* FE */
 	[DAI_LINK_DL2_FE] = {
@@ -1293,6 +1376,7 @@ static int mt8188_mt6359_dev_probe(struct platform_device *pdev)
 	struct mt8188_card_data *card_data;
 	struct snd_soc_dai_link *dai_link;
 	bool init_mt6359 = false;
+	bool init_es8326 = false;
 	bool init_nau8825 = false;
 	bool init_rt5682s = false;
 	bool init_max98390 = false;
@@ -1399,7 +1483,9 @@ static int mt8188_mt6359_dev_probe(struct platform_device *pdev)
 			   strcmp(dai_link->name, "ETDM1_IN_BE") == 0 ||
 			   strcmp(dai_link->name, "ETDM2_IN_BE") == 0) {
 			if (!strcmp(dai_link->codecs->dai_name, MAX98390_CODEC_DAI)) {
-				dai_link->ops = &mt8188_max98390_ops;
+				if (!(card_data->quirk & MAX98390_TWO_AMP)) {
+					dai_link->ops = &mt8188_max98390_ops;
+				}
 				if (!init_max98390) {
 					dai_link->init = mt8188_max98390_codec_init;
 					init_max98390 = true;
@@ -1417,6 +1503,12 @@ static int mt8188_mt6359_dev_probe(struct platform_device *pdev)
 					dai_link->init = mt8188_rt5682s_codec_init;
 					dai_link->exit = mt8188_rt5682s_codec_exit;
 					init_rt5682s = true;
+			} else if (!strcmp(dai_link->codecs->dai_name, ES8326_CODEC_DAI)) {
+				dai_link->ops = &mt8188_es8326_ops;
+				if (!init_es8326) {
+					dai_link->init = mt8188_es8326_codec_init;
+					dai_link->exit = mt8188_es8326_codec_exit;
+					init_es8326 = true;
 				}
 			} else {
 				if (strcmp(dai_link->codecs->dai_name, "snd-soc-dummy-dai")) {
@@ -1460,10 +1552,16 @@ static struct mt8188_card_data mt8188_rt5682s_card = {
 	.quirk = RT5682S_HS_PRESENT,
 };
 
+static struct mt8188_card_data mt8188_es8326_card = {
+	.name = "mt8188_es8326",
+	.quirk = ES8326_HS_PRESENT | MAX98390_TWO_AMP,
+};
+
 static const struct of_device_id mt8188_mt6359_dt_match[] = {
 	{ .compatible = "mediatek,mt8188-mt6359-evb", .data = &mt8188_evb_card, },
 	{ .compatible = "mediatek,mt8188-nau8825", .data = &mt8188_nau8825_card, },
 	{ .compatible = "mediatek,mt8188-rt5682s", .data = &mt8188_rt5682s_card, },
+	{ .compatible = "mediatek,mt8188-es8326", .data = &mt8188_es8326_card, },
 	{ /* sentinel */ },
 };
 MODULE_DEVICE_TABLE(of, mt8188_mt6359_dt_match);
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [v1 3/3] ASoC: mediatek: mt8188-mt6359: add two amps support
  2023-11-07  3:14 [v1 0/3] add es8326 dt-bindings and es8326 support Rui Zhou
  2023-11-07  3:14 ` [v1 1/3] ASoC: dt-bindings: mt8188-mt6359: add " Rui Zhou
  2023-11-07  3:14 ` [v1 2/3] ASoC: mediatek: " Rui Zhou
@ 2023-11-07  3:14 ` Rui Zhou
  2023-11-07  8:30   ` AngeloGioacchino Del Regno
  2 siblings, 1 reply; 13+ messages in thread
From: Rui Zhou @ 2023-11-07  3:14 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt,
	angelogioacchino.delregno, perex, allen-kh.cheng,
	kuninori.morimoto.gx
  Cc: linux-sound, devicetree, linux-kernel, linux-mediatek, Rui Zhou

Support codec rt5682 using two amps.

Signed-off-by: Rui Zhou <zhourui@huaqin.corp-partner.google.com>
---
 sound/soc/mediatek/mt8188/mt8188-mt6359.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/mediatek/mt8188/mt8188-mt6359.c b/sound/soc/mediatek/mt8188/mt8188-mt6359.c
index e994faa3556b..917640939621 100644
--- a/sound/soc/mediatek/mt8188/mt8188-mt6359.c
+++ b/sound/soc/mediatek/mt8188/mt8188-mt6359.c
@@ -1549,7 +1549,7 @@ static struct mt8188_card_data mt8188_nau8825_card = {
 
 static struct mt8188_card_data mt8188_rt5682s_card = {
 	.name = "mt8188_rt5682s",
-	.quirk = RT5682S_HS_PRESENT,
+	.quirk = RT5682S_HS_PRESENT | MAX98390_TWO_AMP,
 };
 
 static struct mt8188_card_data mt8188_es8326_card = {
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 13+ messages in thread

* Re: [v1 1/3] ASoC: dt-bindings: mt8188-mt6359: add es8326 support
  2023-11-07  3:14 ` [v1 1/3] ASoC: dt-bindings: mt8188-mt6359: add " Rui Zhou
@ 2023-11-07  7:11   ` Krzysztof Kozlowski
  2023-11-07  7:59     ` Rui Zhou
  2023-11-07  8:30   ` AngeloGioacchino Del Regno
  2023-11-07  8:33   ` AngeloGioacchino Del Regno
  2 siblings, 1 reply; 13+ messages in thread
From: Krzysztof Kozlowski @ 2023-11-07  7:11 UTC (permalink / raw)
  To: Rui Zhou, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	angelogioacchino.delregno, perex, allen-kh.cheng,
	kuninori.morimoto.gx
  Cc: linux-sound, devicetree, linux-kernel, linux-mediatek

On 07/11/2023 04:14, Rui Zhou wrote:
> Add compatible string "mediatek,mt8188-es8326" to support new board
> with es8326 codec.

Please use standard email subjects, so with the PATCH keyword in the
title. `git format-patch` helps here to create proper versioned patches.
Another useful tool is b4. Skipping the PATCH keyword makes filtering of
emails more difficult thus making the review process less convenient.

> 
> Signed-off-by: Rui Zhou <zhourui@huaqin.corp-partner.google.com>
> ---
>  .../devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml        | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml b/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml
> index 4c8c95057ef7..9df5e44176d0 100644
> --- a/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml
> +++ b/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml
> @@ -18,6 +18,7 @@ properties:
>        - mediatek,mt8188-mt6359-evb
>        - mediatek,mt8188-nau8825
>        - mediatek,mt8188-rt5682s
> +      - mediatek,mt8188-es8326

Entries should be sorted alphabetically.

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [v1 1/3] ASoC: dt-bindings: mt8188-mt6359: add es8326 support
  2023-11-07  7:11   ` Krzysztof Kozlowski
@ 2023-11-07  7:59     ` Rui Zhou
  2023-11-07  8:06       ` Krzysztof Kozlowski
  0 siblings, 1 reply; 13+ messages in thread
From: Rui Zhou @ 2023-11-07  7:59 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: robh+dt, krzysztof.kozlowski+dt, conor+dt,
	angelogioacchino.delregno, perex, allen-kh.cheng,
	kuninori.morimoto.gx, linux-sound, devicetree, linux-kernel,
	linux-mediatek

Thank you very much for your reminder, I will pay attention next time.


On Tue, Nov 7, 2023 at 3:11 PM Krzysztof Kozlowski
<krzysztof.kozlowski@linaro.org> wrote:
>
> On 07/11/2023 04:14, Rui Zhou wrote:
> > Add compatible string "mediatek,mt8188-es8326" to support new board
> > with es8326 codec.
>
> Please use standard email subjects, so with the PATCH keyword in the
> title. `git format-patch` helps here to create proper versioned patches.
> Another useful tool is b4. Skipping the PATCH keyword makes filtering of
> emails more difficult thus making the review process less convenient.
>
> >
> > Signed-off-by: Rui Zhou <zhourui@huaqin.corp-partner.google.com>
> > ---
> >  .../devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml        | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml b/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml
> > index 4c8c95057ef7..9df5e44176d0 100644
> > --- a/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml
> > +++ b/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml
> > @@ -18,6 +18,7 @@ properties:
> >        - mediatek,mt8188-mt6359-evb
> >        - mediatek,mt8188-nau8825
> >        - mediatek,mt8188-rt5682s
> > +      - mediatek,mt8188-es8326
>
> Entries should be sorted alphabetically.
>
> Best regards,
> Krzysztof
>

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [v1 1/3] ASoC: dt-bindings: mt8188-mt6359: add es8326 support
  2023-11-07  7:59     ` Rui Zhou
@ 2023-11-07  8:06       ` Krzysztof Kozlowski
  2023-11-07  8:19         ` Rui Zhou
  0 siblings, 1 reply; 13+ messages in thread
From: Krzysztof Kozlowski @ 2023-11-07  8:06 UTC (permalink / raw)
  To: Rui Zhou
  Cc: robh+dt, krzysztof.kozlowski+dt, conor+dt,
	angelogioacchino.delregno, perex, allen-kh.cheng,
	kuninori.morimoto.gx, linux-sound, devicetree, linux-kernel,
	linux-mediatek

On 07/11/2023 08:59, Rui Zhou wrote:
> Thank you very much for your reminder, I will pay attention next time.

Next time? Does it mean you are not going to fix the patch as I asked
about the order?

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [v1 1/3] ASoC: dt-bindings: mt8188-mt6359: add es8326 support
  2023-11-07  8:06       ` Krzysztof Kozlowski
@ 2023-11-07  8:19         ` Rui Zhou
  0 siblings, 0 replies; 13+ messages in thread
From: Rui Zhou @ 2023-11-07  8:19 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: robh+dt, krzysztof.kozlowski+dt, conor+dt,
	angelogioacchino.delregno, perex, allen-kh.cheng,
	kuninori.morimoto.gx, linux-sound, devicetree, linux-kernel,
	linux-mediatek

Sorry, I didn't express myself clearly. What I mean is that I will
modify everything according to your suggestions in the V2 version.

On Tue, Nov 7, 2023 at 4:06 PM Krzysztof Kozlowski
<krzysztof.kozlowski@linaro.org> wrote:
>
> On 07/11/2023 08:59, Rui Zhou wrote:
> > Thank you very much for your reminder, I will pay attention next time.
>
> Next time? Does it mean you are not going to fix the patch as I asked
> about the order?
>
> Best regards,
> Krzysztof
>

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [v1 1/3] ASoC: dt-bindings: mt8188-mt6359: add es8326 support
  2023-11-07  3:14 ` [v1 1/3] ASoC: dt-bindings: mt8188-mt6359: add " Rui Zhou
  2023-11-07  7:11   ` Krzysztof Kozlowski
@ 2023-11-07  8:30   ` AngeloGioacchino Del Regno
  2023-11-07  8:33   ` AngeloGioacchino Del Regno
  2 siblings, 0 replies; 13+ messages in thread
From: AngeloGioacchino Del Regno @ 2023-11-07  8:30 UTC (permalink / raw)
  To: Rui Zhou, robh+dt, krzysztof.kozlowski+dt, conor+dt, perex,
	allen-kh.cheng, kuninori.morimoto.gx
  Cc: linux-sound, devicetree, linux-kernel, linux-mediatek

Il 07/11/23 04:14, Rui Zhou ha scritto:
> Add compatible string "mediatek,mt8188-es8326" to support new board
> with es8326 codec.
> 
> Signed-off-by: Rui Zhou <zhourui@huaqin.corp-partner.google.com>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [v1 2/3] ASoC: mediatek: mt8188-mt6359: add es8326 support
  2023-11-07  3:14 ` [v1 2/3] ASoC: mediatek: " Rui Zhou
@ 2023-11-07  8:30   ` AngeloGioacchino Del Regno
  0 siblings, 0 replies; 13+ messages in thread
From: AngeloGioacchino Del Regno @ 2023-11-07  8:30 UTC (permalink / raw)
  To: Rui Zhou, robh+dt, krzysztof.kozlowski+dt, conor+dt, perex,
	allen-kh.cheng, kuninori.morimoto.gx
  Cc: linux-sound, devicetree, linux-kernel, linux-mediatek

Il 07/11/23 04:14, Rui Zhou ha scritto:
> To use ES8326 as the codec, add a new sound card
> named mt8186_es8326.
> 
> Signed-off-by: Rui Zhou <zhourui@huaqin.corp-partner.google.com>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [v1 3/3] ASoC: mediatek: mt8188-mt6359: add two amps support
  2023-11-07  3:14 ` [v1 3/3] ASoC: mediatek: mt8188-mt6359: add two amps support Rui Zhou
@ 2023-11-07  8:30   ` AngeloGioacchino Del Regno
  2023-11-07  8:41     ` Rui Zhou
  0 siblings, 1 reply; 13+ messages in thread
From: AngeloGioacchino Del Regno @ 2023-11-07  8:30 UTC (permalink / raw)
  To: Rui Zhou, robh+dt, krzysztof.kozlowski+dt, conor+dt, perex,
	allen-kh.cheng, kuninori.morimoto.gx
  Cc: linux-sound, devicetree, linux-kernel, linux-mediatek

Il 07/11/23 04:14, Rui Zhou ha scritto:
> Support codec rt5682 using two amps.
> 
> Signed-off-by: Rui Zhou <zhourui@huaqin.corp-partner.google.com>

Can you please change the commit description so that it's clear that you're adding
the two amps support to the RT5682s variant? As it is right now, it reads like you
are adding that globally.

ASoC: mediatek: mt8188-mt6359: Enable dual amp for mt8188_rt5682s

After which:

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>

> ---
>   sound/soc/mediatek/mt8188/mt8188-mt6359.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/sound/soc/mediatek/mt8188/mt8188-mt6359.c b/sound/soc/mediatek/mt8188/mt8188-mt6359.c
> index e994faa3556b..917640939621 100644
> --- a/sound/soc/mediatek/mt8188/mt8188-mt6359.c
> +++ b/sound/soc/mediatek/mt8188/mt8188-mt6359.c
> @@ -1549,7 +1549,7 @@ static struct mt8188_card_data mt8188_nau8825_card = {
>   
>   static struct mt8188_card_data mt8188_rt5682s_card = {
>   	.name = "mt8188_rt5682s",
> -	.quirk = RT5682S_HS_PRESENT,
> +	.quirk = RT5682S_HS_PRESENT | MAX98390_TWO_AMP,
>   };
>   
>   static struct mt8188_card_data mt8188_es8326_card = {



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [v1 1/3] ASoC: dt-bindings: mt8188-mt6359: add es8326 support
  2023-11-07  3:14 ` [v1 1/3] ASoC: dt-bindings: mt8188-mt6359: add " Rui Zhou
  2023-11-07  7:11   ` Krzysztof Kozlowski
  2023-11-07  8:30   ` AngeloGioacchino Del Regno
@ 2023-11-07  8:33   ` AngeloGioacchino Del Regno
  2 siblings, 0 replies; 13+ messages in thread
From: AngeloGioacchino Del Regno @ 2023-11-07  8:33 UTC (permalink / raw)
  To: Rui Zhou, robh+dt, krzysztof.kozlowski+dt, conor+dt, perex,
	allen-kh.cheng, kuninori.morimoto.gx
  Cc: linux-sound, devicetree, linux-kernel, linux-mediatek

Il 07/11/23 04:14, Rui Zhou ha scritto:
> Add compatible string "mediatek,mt8188-es8326" to support new board
> with es8326 codec.
> 
> Signed-off-by: Rui Zhou <zhourui@huaqin.corp-partner.google.com>
> ---
>   .../devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml        | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml b/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml
> index 4c8c95057ef7..9df5e44176d0 100644
> --- a/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml
> +++ b/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml
> @@ -18,6 +18,7 @@ properties:
>         - mediatek,mt8188-mt6359-evb
>         - mediatek,mt8188-nau8825
>         - mediatek,mt8188-rt5682s
> +      - mediatek,mt8188-es8326

Whoops, sorry, I just noticed that this is not alphabetically ordered.
Please move that before mediatek,mt8188-mt6359-evb.

Thanks,
Angelo

>   
>     audio-routing:
>       description:



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [v1 3/3] ASoC: mediatek: mt8188-mt6359: add two amps support
  2023-11-07  8:30   ` AngeloGioacchino Del Regno
@ 2023-11-07  8:41     ` Rui Zhou
  0 siblings, 0 replies; 13+ messages in thread
From: Rui Zhou @ 2023-11-07  8:41 UTC (permalink / raw)
  To: AngeloGioacchino Del Regno
  Cc: robh+dt, krzysztof.kozlowski+dt, conor+dt, perex, allen-kh.cheng,
	kuninori.morimoto.gx, linux-sound, devicetree, linux-kernel,
	linux-mediatek

OK, I'll revise it as soon as possible.

On Tue, Nov 7, 2023 at 4:31 PM AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com> wrote:
>
> Il 07/11/23 04:14, Rui Zhou ha scritto:
> > Support codec rt5682 using two amps.
> >
> > Signed-off-by: Rui Zhou <zhourui@huaqin.corp-partner.google.com>
>
> Can you please change the commit description so that it's clear that you're adding
> the two amps support to the RT5682s variant? As it is right now, it reads like you
> are adding that globally.
>
> ASoC: mediatek: mt8188-mt6359: Enable dual amp for mt8188_rt5682s
>
> After which:
>
> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
>
> > ---
> >   sound/soc/mediatek/mt8188/mt8188-mt6359.c | 2 +-
> >   1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/sound/soc/mediatek/mt8188/mt8188-mt6359.c b/sound/soc/mediatek/mt8188/mt8188-mt6359.c
> > index e994faa3556b..917640939621 100644
> > --- a/sound/soc/mediatek/mt8188/mt8188-mt6359.c
> > +++ b/sound/soc/mediatek/mt8188/mt8188-mt6359.c
> > @@ -1549,7 +1549,7 @@ static struct mt8188_card_data mt8188_nau8825_card = {
> >
> >   static struct mt8188_card_data mt8188_rt5682s_card = {
> >       .name = "mt8188_rt5682s",
> > -     .quirk = RT5682S_HS_PRESENT,
> > +     .quirk = RT5682S_HS_PRESENT | MAX98390_TWO_AMP,
> >   };
> >
> >   static struct mt8188_card_data mt8188_es8326_card = {
>
>

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-11-07  8:42 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-07  3:14 [v1 0/3] add es8326 dt-bindings and es8326 support Rui Zhou
2023-11-07  3:14 ` [v1 1/3] ASoC: dt-bindings: mt8188-mt6359: add " Rui Zhou
2023-11-07  7:11   ` Krzysztof Kozlowski
2023-11-07  7:59     ` Rui Zhou
2023-11-07  8:06       ` Krzysztof Kozlowski
2023-11-07  8:19         ` Rui Zhou
2023-11-07  8:30   ` AngeloGioacchino Del Regno
2023-11-07  8:33   ` AngeloGioacchino Del Regno
2023-11-07  3:14 ` [v1 2/3] ASoC: mediatek: " Rui Zhou
2023-11-07  8:30   ` AngeloGioacchino Del Regno
2023-11-07  3:14 ` [v1 3/3] ASoC: mediatek: mt8188-mt6359: add two amps support Rui Zhou
2023-11-07  8:30   ` AngeloGioacchino Del Regno
2023-11-07  8:41     ` Rui Zhou

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.