ASoC: dt-bindings: ti,tas2781: Add TAS5832 support
Baojun Xu
maintainerPATCH 1/2 ASoC: dt-bindings: ti,tas2781: Add TAS5832 support
TAS5832 is in same family with TAS5827/28/30.
--- Documentation/devicetree/bindings/sound/ti,tas2781.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/sound/ti,tas2781.yaml +6 -1
@@ -1,5 +1,5 @@ # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -# Copyright (C) 2022 - 2025 Texas Instruments Incorporated +# Copyright (C) 2022 - 2026 Texas Instruments Incorporated %YAML 1.2 --- $id: http://devicetree.org/schemas/sound/ti,tas2781.yaml#
@@ -107,6 +107,9 @@ properties: ti,tas5830: 65-W Stereo, Digital Input, High Efficiency Closed-Loop Class-D Amplifier with Class-H Algorithm + + ti,tas5832: 81-W Stereo, Digital Input, High Efficiency Closed-Loop + Class-D Amplifier with Class-H Algorithm oneOf: - items: - enum:
@@ -128,6 +131,7 @@ properties: - ti,tas5827 - ti,tas5828 - ti,tas5830 + - ti,tas5832 - const: ti,tas2781 - enum: - ti,tas2781
@@ -264,6 +268,7 @@ allOf: - ti,tas5827 - ti,tas5828 - ti,tas5830 + - ti,tas5832 then: properties: reg:
Signature · 1 line
2.25.1
Baojun Xu
maintainerPATCH 2/2 ASoC: tas2781: Add tas5832 support
TAS5832 is in same family with TAS5827/28/30.
--- include/sound/tas2781.h | 1 + sound/soc/codecs/tas2781-i2c.c | 5 +++++ 2 files changed, 6 insertions(+)
include/sound/tas2781.h +1 -0
@@ -131,6 +131,7 @@ enum audio_device {TAS5827 ,TAS5828 ,TAS5830 , +TAS5832 , TAS_OTHERS, };
sound/soc/codecs/tas2781-i2c.c +5 -0
@@ -119,6 +119,7 @@ static const struct i2c_device_id tasdevice_id[] = { { "tas5827", TAS5827 }, { "tas5828", TAS5828 }, { "tas5830", TAS5830 }, + { "tas5832", TAS5832 }, {} };MODULE_DEVICE_TABLE (i2c, tasdevice_id);
@@ -144,6 +145,7 @@ static const struct of_device_id tasdevice_of_match[] = { { .compatible = "ti,tas5827" }, { .compatible = "ti,tas5828" }, { .compatible = "ti,tas5830" }, + { .compatible = "ti,tas5832" }, {}, };MODULE_DEVICE_TABLE (of, tasdevice_of_match);
@@ -1747,6 +1749,7 @@ static void tasdevice_fw_ready(const struct firmware *fmw,case TAS5827 :case TAS5828 :case TAS5830 : +case TAS5832 :/* If DSP FW fail, DSP kcontrol won't be created. */ tasdevice_dsp_remove (tas_priv); }
@@ -1918,6 +1921,7 @@ static int tasdevice_codec_probe(struct snd_soc_component *codec)case TAS5827 :case TAS5828 :case TAS5830 : +case TAS5832 : p = (struct snd_kcontrol_new *)tas5825_snd_controls; size =ARRAY_SIZE (tas5825_snd_controls);break ;
@@ -2105,6 +2109,7 @@ static const struct acpi_device_id tasdevice_acpi_match[] = { { "TXNW5827", TAS5827 }, { "TXNW5828", TAS5828 }, { "TXNW5830", TAS5830 }, + { "TXNW5832", TAS5832 }, {}, };
Signature · 1 line
2.25.1
Re: [PATCH v1 2/2] ASoC: tas2781: Add tas5832 support
Quoted 33 lines · Baojun Xu
TAS5832 is in same family with TAS5827/28/30.
Signed-off-by Baojun Xu <[email protected]>--- include/sound/tas2781.h | 1 + sound/soc/codecs/tas2781-i2c.c | 5 +++++ 2 files changed, 6 insertions(+)include/sound/tas2781.h +1
-0@@ -131,6 +131,7 @@ enum audio_device {TAS5827 ,TAS5828 ,TAS5830 , +TAS5832 , TAS_OTHERS, };sound/soc/codecs/tas2781-i2c.c +1
-0@@ -119,6 +119,7 @@ static const struct i2c_device_id tasdevice_id[] = { { "tas5827", TAS5827 }, { "tas5828", TAS5828 }, { "tas5830", TAS5830 }, + { "tas5832", TAS5832 }, {} };MODULE_DEVICE_TABLE (i2c, tasdevice_id);
sound/soc/codecs/tas2781-i2c.c static const struct of_device_id tasdevice_of_match[] = { · line 148
Quoted 4 lines
sound/soc/codecs/tas2781-i2c.c +1
-0@@ -144,6 +145,7 @@ static const struct of_device_id tasdevice_of_match[] = { { .compatible = "ti,tas5827" }, { .compatible = "ti,tas5828" }, { .compatible = "ti,tas5830" }, + { .compatible = "ti,tas5832" },
So it is fully compatible with tas5830 and most of the changes here are not needed?
Best regards,
Krzysztof
Xu, Baojun
maintainerRe: [EXTERNAL] Re: [PATCH v1 2/2] ASoC: tas2781: Add tas5832 support
________________________________________
Quoted 6 lines
From: Krzysztof Kozlowski <[email protected]>
Sent: 27 February 2026 18:34
To: Xu, Baojun
Cc: [email protected]; [email protected]; [email protected]; [email protected]; Ding, Shenghao; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Yi, Ken; Lo, Henry; Chen, Robin; Wang, Will; [email protected]; [email protected]; [email protected]
Subject: [EXTERNAL] Re: [PATCH v1 2/2] ASoC: tas2781: Add tas5832 support
Quoted 9 lines
sound/soc/codecs/tas2781-i2c.c static const struct of_device_id tasdevice_of_match[] = { · line 148
Quoted 6 lines
MODULE_DEVICE_TABLE(i2c, tasdevice_id);sound/soc/codecs/tas2781-i2c.c +1
-0@@ -144,6 +145,7 @@ static const struct of_device_id tasdevice_of_match[] = { { .compatible = "ti,tas5827" }, { .compatible = "ti,tas5828" }, { .compatible = "ti,tas5830" }, + { .compatible = "ti,tas5832" },So it is fully compatible with tas5830 and most of the changes here are not needed?
Yes, it's fully compatible with tas5827/28/30.
Quoted 3 lines
Best regards,
Krzysztof
Best Regards
Jim
Re: [EXTERNAL] Re: [PATCH v1 2/2] ASoC: tas2781: Add tas5832 support
Quoted 18 lines · Baojun
________________________________________
Quoted 6 lines
From: Krzysztof Kozlowski <[email protected]>
Sent: 27 February 2026 18:34
To: Xu, Baojun
Cc: [email protected]; [email protected]; [email protected]; [email protected]; Ding, Shenghao; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Yi, Ken; Lo, Henry; Chen, Robin; Wang, Will; [email protected]; [email protected]; [email protected]
Subject: [EXTERNAL] Re: [PATCH v1 2/2] ASoC: tas2781: Add tas5832 supportQuoted 9 lines
sound/soc/codecs/tas2781-i2c.c static const struct of_device_id tasdevice_of_match[] = { · line 148
Quoted 6 lines
MODULE_DEVICE_TABLE(i2c, tasdevice_id);sound/soc/codecs/tas2781-i2c.c +1
-0@@ -144,6 +145,7 @@ static const struct of_device_id tasdevice_of_match[] = { { .compatible = "ti,tas5827" }, { .compatible = "ti,tas5828" }, { .compatible = "ti,tas5830" }, + { .compatible = "ti,tas5832" },So it is fully compatible with tas5830 and most of the changes here are not needed?
Quoted 1 line
Yes, it's fully compatible with tas5827/28/30.
Then above hunk and many others are not needed.
Best regards,
Krzysztof
Xu, Baojun
maintainerRe: [EXTERNAL] Re: [PATCH v1 2/2] ASoC: tas2781: Add tas5832 support
Quoted 27 lines
________________________________________
From: Krzysztof Kozlowski <[email protected]>
Sent: 27 February 2026 18:46
To: Xu, Baojun
Cc: [email protected]; [email protected]; [email protected]; [email protected]; Ding, Shenghao; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Yi, Ken; Lo, Henry; Chen, Robin; Wang, Will; [email protected]; [email protected]; [email protected]
Subject: Re: [EXTERNAL] Re: [PATCH v1 2/2] ASoC: tas2781: Add tas5832 supportQuoted 18 lines · Baojun
________________________________________
Quoted 15 lines
From: Krzysztof Kozlowski <[email protected]>
Sent: 27 February 2026 18:34
To: Xu, Baojun
Cc: [email protected]; [email protected]; [email protected]; [email protected]; Ding, Shenghao; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Yi, Ken; Lo, Henry; Chen, Robin; Wang, Will; [email protected]; [email protected]; [email protected]
Subject: [EXTERNAL] Re: [PATCH v1 2/2] ASoC: tas2781: Add tas5832 supportsound/soc/codecs/tas2781-i2c.c static const struct of_device_id tasdevice_of_match[] = { · line 148
Quoted 6 lines
MODULE_DEVICE_TABLE(i2c, tasdevice_id);sound/soc/codecs/tas2781-i2c.c +1
-0@@ -144,6 +145,7 @@ static const struct of_device_id tasdevice_of_match[] = { { .compatible = "ti,tas5827" }, { .compatible = "ti,tas5828" }, { .compatible = "ti,tas5830" }, + { .compatible = "ti,tas5832" },So it is fully compatible with tas5830 and most of the changes here are not needed?
Quoted 3 lines
Quoted 1 line
Yes, it's fully compatible with tas5827/28/30.
Then above hunk and many others are not needed.
Hi, because those chips have different on the voltage, so the parameters is different, have to use different firmware binary, so we must identify every chip in the driver.
Quoted 5 lines
Best regards,
Krzysztof
Best Regards
Jim
Re: [EXTERNAL] Re: [PATCH v1 2/2] ASoC: tas2781: Add tas5832 support
Quoted 11 lines · Baojun
Quoted 11 lines
Quoted 11 lines
Quoted 10 lines
sound/soc/codecs/tas2781-i2c.c static const struct of_device_id tasdevice_of_match[] = { · line 148
Quoted 7 lines
MODULE_DEVICE_TABLE(i2c, tasdevice_id);sound/soc/codecs/tas2781-i2c.c +1
-0@@ -144,6 +145,7 @@ static const struct of_device_id tasdevice_of_match[] = { { .compatible = "ti,tas5827" }, { .compatible = "ti,tas5828" }, { .compatible = "ti,tas5830" }, + { .compatible = "ti,tas5832" },So it is fully compatible with tas5830 and most of the changes here are not needed?
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Yes, it's fully compatible with tas5827/28/30.
Then above hunk and many others are not needed.
Hi, because those chips have different on the voltage, so the parameters is different, have to use different firmware binary, so we must identify every chip in the driver.
That would explain other ID tables (and should be briefly mentioned in the commit msg), but not this one, because here you do not customize the binary at all.
Best regards,
Krzysztof
Xu, Baojun
maintainerRe: [EXTERNAL] Re: [PATCH v1 2/2] ASoC: tas2781: Add tas5832 support
Quoted 24 lines
________________________________________
From: Krzysztof Kozlowski <[email protected]>
Sent: 02 March 2026 16:58
To: Xu, Baojun
Cc: [email protected]; [email protected]; [email protected]; [email protected]; Ding, Shenghao; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Yi, Ken; Lo, Henry; Chen, Robin; Wang, Will; [email protected]; [email protected]; [email protected]
Subject: Re: [EXTERNAL] Re: [PATCH v1 2/2] ASoC: tas2781: Add tas5832 supportQuoted 15 lines · Baojun
Quoted 14 lines
Quoted 11 lines
Quoted 10 lines
sound/soc/codecs/tas2781-i2c.c static const struct of_device_id tasdevice_of_match[] = { · line 148
Quoted 7 lines
MODULE_DEVICE_TABLE(i2c, tasdevice_id);sound/soc/codecs/tas2781-i2c.c +1
-0@@ -144,6 +145,7 @@ static const struct of_device_id tasdevice_of_match[] = { { .compatible = "ti,tas5827" }, { .compatible = "ti,tas5828" }, { .compatible = "ti,tas5830" }, + { .compatible = "ti,tas5832" },So it is fully compatible with tas5830 and most of the changes here are not needed?
Quoted 1 line
Yes, it's fully compatible with tas5827/28/30.
Then above hunk and many others are not needed.
Quoted 8 lines
Quoted 3 lines
Hi, because those chips have different on the voltage, so the parameters is different, have to use different firmware binary, so we must identify every chip in the driver.
That would explain other ID tables (and should be briefly mentioned in the commit msg), but not this one, because here you do not customize the binary at all.
Hi, we save the chip_id in the dev_name:
strscpy(tas_priv->dev_name, tasdevice_id[tas_priv->chip_id].name,
sizeof(tas_priv->dev_name));
And get firmware binary from this dev_name:
scnprintf(tas_priv->rca_binaryname, 64, "%sRCA%d.bin",
tas_priv->dev_name, tas_priv->ndev);
Quoted 5 lines
Best regards,
Krzysztof
Best Regards
Jim
Re: [EXTERNAL] Re: [PATCH v1 2/2] ASoC: tas2781: Add tas5832 support
Quoted 28 lines · Baojun
Quoted 28 lines
________________________________________
From: Krzysztof Kozlowski <[email protected]>
Sent: 02 March 2026 16:58
To: Xu, Baojun
Cc: [email protected]; [email protected]; [email protected]; [email protected]; Ding, Shenghao; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Yi, Ken; Lo, Henry; Chen, Robin; Wang, Will; [email protected]; [email protected]; [email protected]
Subject: Re: [EXTERNAL] Re: [PATCH v1 2/2] ASoC: tas2781: Add tas5832 supportQuoted 18 lines · Baojun
Quoted 11 lines
Quoted 11 lines
Quoted 10 lines
Review static const struct of_device_id tasdevice_of_match[] = { · line 148
Quoted 7 lines
MODULE_DEVICE_TABLE(i2c, tasdevice_id);(quoted diff) +1
-0@@ -144,6 +145,7 @@ static const struct of_device_id tasdevice_of_match[] = { { .compatible = "ti,tas5827" }, { .compatible = "ti,tas5828" }, { .compatible = "ti,tas5830" }, + { .compatible = "ti,tas5832" },So it is fully compatible with tas5830 and most of the changes here are not needed?
Quoted 3 lines
Quoted 1 line
Yes, it's fully compatible with tas5827/28/30.
Then above hunk and many others are not needed.
Hi, because those chips have different on the voltage, so the parameters is different, have to use different firmware binary, so we must identify every chip in the driver.
Quoted 8 lines
Quoted 4 lines
That would explain other ID tables (and should be briefly mentioned in the commit msg), but not this one, because here you do not customize the binary at all.
Hi, we save the
chip_idin thedev_name:
strscpy(tas_priv->dev_name, tasdevice_id[tas_priv->chip_id].name,sizeof(tas_priv->dev_name));
And where do you see the name in above table?
Quoted 4 lines
And get firmware binary from this
dev_name:
scnprintf(tas_priv->rca_binaryname, 64, "%sRCA%d.bin",tas_priv->dev_name, tas_priv->ndev);
Or here?
Quoted 9 lines
Quoted 6 lines
Best regards,
KrzysztofBest Regards
Jim
Best regards,
Krzysztof
Xu, Baojun
maintainerRe: [EXTERNAL] Re: [PATCH v1 2/2] ASoC: tas2781: Add tas5832 support
Quoted 42 lines
________________________________________
From: Krzysztof Kozlowski <[email protected]>
Sent: 02 March 2026 17:27
To: Xu, Baojun
Cc: [email protected]; [email protected]; [email protected]; [email protected]; Ding, Shenghao; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Yi, Ken; Lo, Henry; Chen, Robin; Wang, Will; [email protected]; [email protected]; [email protected]
Subject: Re: [EXTERNAL] Re: [PATCH v1 2/2] ASoC: tas2781: Add tas5832 supportQuoted 33 lines · Baojun
Quoted 32 lines
________________________________________
From: Krzysztof Kozlowski <[email protected]>
Sent: 02 March 2026 16:58
To: Xu, Baojun
Cc: [email protected]; [email protected]; [email protected]; [email protected]; Ding, Shenghao; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Yi, Ken; Lo, Henry; Chen, Robin; Wang, Will; [email protected]; [email protected]; [email protected]
Subject: Re: [EXTERNAL] Re: [PATCH v1 2/2] ASoC: tas2781: Add tas5832 supportQuoted 11 lines · Baojun
Quoted 11 lines
Quoted 11 lines
Quoted 10 lines
Review static const struct of_device_id tasdevice_of_match[] = { · line 148
Quoted 7 lines
MODULE_DEVICE_TABLE(i2c, tasdevice_id);(quoted diff) +1
-0@@ -144,6 +145,7 @@ static const struct of_device_id tasdevice_of_match[] = { { .compatible = "ti,tas5827" }, { .compatible = "ti,tas5828" }, { .compatible = "ti,tas5830" }, + { .compatible = "ti,tas5832" },So it is fully compatible with tas5830 and most of the changes here are not needed?
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Yes, it's fully compatible with tas5827/28/30.
Then above hunk and many others are not needed.
Hi, because those chips have different on the voltage, so the parameters is different, have to use different firmware binary, so we must identify every chip in the driver.
That would explain other ID tables (and should be briefly mentioned in the commit msg), but not this one, because here you do not customize the binary at all.
Quoted 6 lines
Quoted 3 lines
Hi, we save the
chip_idin thedev_name:
strscpy(tas_priv->dev_name, tasdevice_id[tas_priv->chip_id].name,sizeof(tas_priv->dev_name));And where do you see the name in above table?
Hi, in the patch of first email, I has added "tas5832" in array tasdevice_id.
sound/soc/codecs/tas2781-i2c.c +1 -0
@@ -119,6 +119,7 @@ static const struct i2c_device_id tasdevice_id[] = { { "tas5827", TAS5827 }, { "tas5828", TAS5828 }, { "tas5830", TAS5830 }, + { "tas5832", TAS5832 }, {} };
Best Regards
Jim
Re: [EXTERNAL] Re: [PATCH v1 2/2] ASoC: tas2781: Add tas5832 support
Quoted 55 lines · Baojun
Quoted 42 lines
________________________________________
From: Krzysztof Kozlowski <[email protected]>
Sent: 02 March 2026 17:27
To: Xu, Baojun
Cc: [email protected]; [email protected]; [email protected]; [email protected]; Ding, Shenghao; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Yi, Ken; Lo, Henry; Chen, Robin; Wang, Will; [email protected]; [email protected]; [email protected]
Subject: Re: [EXTERNAL] Re: [PATCH v1 2/2] ASoC: tas2781: Add tas5832 supportQuoted 33 lines · Baojun
Quoted 32 lines
________________________________________
From: Krzysztof Kozlowski <[email protected]>
Sent: 02 March 2026 16:58
To: Xu, Baojun
Cc: [email protected]; [email protected]; [email protected]; [email protected]; Ding, Shenghao; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Yi, Ken; Lo, Henry; Chen, Robin; Wang, Will; [email protected]; [email protected]; [email protected]
Subject: Re: [EXTERNAL] Re: [PATCH v1 2/2] ASoC: tas2781: Add tas5832 supportQuoted 11 lines · Baojun
Quoted 11 lines
Quoted 11 lines
Quoted 10 lines
Review static const struct of_device_id tasdevice_of_match[] = { · line 148
Quoted 7 lines
MODULE_DEVICE_TABLE(i2c, tasdevice_id);(quoted diff) +1
-0@@ -144,6 +145,7 @@ static const struct of_device_id tasdevice_of_match[] = { { .compatible = "ti,tas5827" }, { .compatible = "ti,tas5828" }, { .compatible = "ti,tas5830" }, + { .compatible = "ti,tas5832" },So it is fully compatible with tas5830 and most of the changes here are not needed?
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Yes, it's fully compatible with tas5827/28/30.
Then above hunk and many others are not needed.
Hi, because those chips have different on the voltage, so the parameters is different, have to use different firmware binary, so we must identify every chip in the driver.
That would explain other ID tables (and should be briefly mentioned in the commit msg), but not this one, because here you do not customize the binary at all.
Quoted 6 lines
Quoted 3 lines
Hi, we save the
chip_idin thedev_name:
strscpy(tas_priv->dev_name, tasdevice_id[tas_priv->chip_id].name,sizeof(tas_priv->dev_name));And where do you see the name in above table?
Hi, in the patch of first email, I has added "tas5832" in array
tasdevice_id.sound/soc/codecs/tas2781-i2c.c +0
-0
sound/soc/codecs/tas2781-i2c.c static const struct i2c_device_id tasdevice_id[] = { · line 122
Quoted 4 lines
sound/soc/codecs/tas2781-i2c.c +1
-0@@ -119,6 +119,7 @@ static const struct i2c_device_id tasdevice_id[] = { { "tas5827", TAS5827 }, { "tas5828", TAS5828 }, { "tas5830", TAS5830 }, + { "tas5832", TAS5832 },
And was my comment next to this array? No.
You keep bouncing messages without replying to the actual problem. So let's rephrase it - provide arguments, e.g. logical code flow analysis coming from human not AI slop, that change I commented under is necessary.
Best regards,
Krzysztof
Re: [EXTERNAL] Re: [PATCH v1 2/2] ASoC: tas2781: Add tas5832 support
In reply to Krzysztof KozlowskiQuoted 4 lines · Krzysztof Kozlowski
Quoted 3 lines · Baojun
Quoted 3 lines
From: Krzysztof Kozlowski <[email protected]>
Sent: 02 March 2026 16:58
On 02/03/2026 09:24, Xu, Baojun wrote:
...
Quoted 22 lines
Quoted 22 lines
Quoted 21 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 9 lines
Quoted 6 lines
static const struct
of_device_idtasdevice_of_match[] = {{ .compatible = "ti,tas5827" }, { .compatible = "ti,tas5828" }, { .compatible = "ti,tas5830" },+ { .compatible = "ti,tas5832" },
So it is fully compatible with tas5830 and most of the changes here are not needed?
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Yes, it's fully compatible with tas5827/28/30.
Then above hunk and many others are not needed.
Hi, because those chips have different on the voltage, so the parameters is different, have to use different firmware binary, so we must identify every chip in the driver.
That would explain other ID tables (and should be briefly mentioned in the commit msg), but not this one, because here you do not customize the binary at all.
Quoted 5 lines
Quoted 3 lines
Hi, we save the
chip_idin thedev_name:
strscpy(tas_priv->dev_name, tasdevice_id[tas_priv->chip_id].name,sizeof(tas_priv->dev_name));And where do you see the name in above table?
I don't know what you are trying to get from them, but I²C enumeration on DT platforms works in a way that it takes two tables into account, hence, if there is no compatible (with given part number) there will be no matching name.
AFAIK it has to have a compatible to make it work in such a case. What did I miss?
The code in question is i2c_of_match_device_sysfs() call in i2c_of_match_device() which does this magic.
Quoted 5 lines
Quoted 3 lines
And get firmware binary from this
dev_name:
scnprintf(tas_priv->rca_binaryname, 64, "%sRCA%d.bin",tas_priv->dev_name, tas_priv->ndev);Or here?
Signature · 2 lines
With Best Regards, Andy Shevchenko
Re: [EXTERNAL] Re: [PATCH v1 2/2] ASoC: tas2781: Add tas5832 support
Quoted 36 lines · On 02/03/2026 10:44, [email protected] wrote:
Quoted 4 lines · Krzysztof Kozlowski
Quoted 3 lines · Baojun
Quoted 3 lines
From: Krzysztof Kozlowski <[email protected]>
Sent: 02 March 2026 16:58
On 02/03/2026 09:24, Xu, Baojun wrote:...
Quoted 22 lines
Quoted 22 lines
Quoted 21 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 9 lines
Quoted 6 lines
static const struct
of_device_idtasdevice_of_match[] = {{ .compatible = "ti,tas5827" }, { .compatible = "ti,tas5828" }, { .compatible = "ti,tas5830" },+ { .compatible = "ti,tas5832" },
So it is fully compatible with tas5830 and most of the changes here are not needed?
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Yes, it's fully compatible with tas5827/28/30.
Then above hunk and many others are not needed.
Hi, because those chips have different on the voltage, so the parameters is different, have to use different firmware binary, so we must identify every chip in the driver.
That would explain other ID tables (and should be briefly mentioned in the commit msg), but not this one, because here you do not customize the binary at all.
Quoted 5 lines
Quoted 3 lines
Hi, we save the
chip_idin thedev_name:
strscpy(tas_priv->dev_name, tasdevice_id[tas_priv->chip_id].name,sizeof(tas_priv->dev_name));And where do you see the name in above table?
Quoted 7 lines
I don't know what you are trying to get from them, but I²C enumeration on DT platforms works in a way that it takes two tables into account, hence, if there is no compatible (with given part number) there will be no matching name.
AFAIK it has to have a compatible to make it work in such a case. What did I miss?
Show me please then how the OF table is used here at all to get the name.
Quoted 3 lines
The code in question is
i2c_of_match_device_sysfs()call ini2c_of_match_device()which does this magic.
Added entry is not by i2c_of_match_device(), so if you use that as argument we can conclude - this is completely redundant, so remove it.
Best regards,
Krzysztof
Ding, Shenghao
maintainerRE: [EXTERNAL] Re: [PATCH v1 2/2] ASoC: tas2781: Add tas5832 support
Hi, Krzysztof & Andy,
Quoted 15 lines
-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Monday, March 2, 2026 6:09 PM
To: [email protected]
Cc: Xu, Baojun <[email protected]>; [email protected]; [email protected]; [email protected]; Ding, Shenghao <[email protected]>; linux- [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Yi, Ken <[email protected]>; Lo, Henry <[email protected]>; Chen, Robin <[email protected]>; Wang, Will <will- [email protected]>; [email protected]; [email protected]; [email protected]
Subject: Re: [EXTERNAL] Re: [PATCH v1 2/2] ASoC: tas2781: Add tas5832 support
...
Quoted 9 lines
Quoted 9 lines
...
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
static const struct
of_device_idtasdevice_of_match[] = {{ .compatible = "ti,tas5827" }, { .compatible = "ti,tas5828" }, { .compatible = "ti,tas5830" },+ { .compatible = "ti,tas5832" },
...
Quoted 10 lines
Quoted 8 lines
I don't know what you are trying to get from them, but I²C enumeration on DT platforms works in a way that it takes two tables into account, hence, if there is no compatible (with given part number) there will be no matching name.
AFAIK it has to have a compatible to make it work in such a case. What did I miss?
Show me please then how the OF table is used here at all to get the name.
This code will also be used for ACPI devices. To ensure consistent bin file naming between ACPI and DTS devices, the mapping table tasdevice_id[] has been introduced.
The code retrieves the corresponding name of the chip from tasdevice_id[] based on its order in tasdevice_of_match[] or tasdevice_acpi_match[]. This information is then concatenated to form the name of the bin file.
Quoted 5 lines
Quoted 4 lines
The code in question is
i2c_of_match_device_sysfs()call ini2c_of_match_device()which does this magic.
Quoted 7 lines
Added entry is not by
i2c_of_match_device(), so if you use that as argument we can conclude - this is completely redundant, so remove it.Best regards,
Krzysztof
BR
Shenghao
Re: [EXTERNAL] Re: [PATCH v1 2/2] ASoC: tas2781: Add tas5832 support
Quoted 34 lines · Shenghao
Hi, Krzysztof & Andy,
Quoted 15 lines
-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Monday, March 2, 2026 6:09 PM
To: [email protected]
Cc: Xu, Baojun <[email protected]>; [email protected]; [email protected]; [email protected]; Ding, Shenghao <[email protected]>; linux- [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Yi, Ken <[email protected]>; Lo, Henry <[email protected]>; Chen, Robin <[email protected]>; Wang, Will <will- [email protected]>; [email protected]; [email protected]; [email protected]
Subject: Re: [EXTERNAL] Re: [PATCH v1 2/2] ASoC: tas2781: Add tas5832 support...
Quoted 9 lines
Quoted 9 lines
...
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
static const struct
of_device_idtasdevice_of_match[] = {{ .compatible = "ti,tas5827" }, { .compatible = "ti,tas5828" }, { .compatible = "ti,tas5830" },+ { .compatible = "ti,tas5832" },
...
Quoted 6 lines
Quoted 6 lines
I don't know what you are trying to get from them, but I²C enumeration on DT platforms works in a way that it takes two tables into account, hence, if there is no compatible (with given part number) there will be no matching name.
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
AFAIK it has to have a compatible to make it work in such a case. What did I miss?
Show me please then how the OF table is used here at all to get the name.
This code will also be used for ACPI devices. To ensure consistent bin file naming between ACPI and DTS devices, the mapping table tasdevice_id[] has been introduced.
We need to stop discussing with irrelevant arguments, really.
I asked to show me how this is going to be used in DT. No answer to this part.
Now you claim this OF ID will be used for ACPI devices, but YOU HAVE already ACPI table there, so that's clearly invalid argument. Do you understand how patch/email review works? Where the comments appear and what is being discussed?
Quoted 2 lines
The code retrieves the corresponding name of the chip from tasdevice_id[] based on its order in tasdevice_of_match[] or tasdevice_acpi_match[].
Based on the order in table? No, that's crazy buggy solution to tie order of entries in both tables. And it makes no sense... and I am sure code does not do it, so again irrelevant argument.
NAK, because all the replies so far are off-topic.
Best regards,
Krzysztof
Ding, Shenghao
maintainerRE: [EXTERNAL] Re: [PATCH v1 2/2] ASoC: tas2781: Add tas5832 support
Quoted 33 lines
Quoted 15 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
static const struct
of_device_idtasdevice_of_match[] = {{ .compatible = "ti,tas5827" }, { .compatible = "ti,tas5828" }, { .compatible = "ti,tas5830" },+ { .compatible = "ti,tas5832" },
...
Quoted 6 lines
Quoted 6 lines
I don't know what you are trying to get from them, but I²C enumeration on DT platforms works in a way that it takes two tables into account, hence, if there is no compatible (with given part number) there will be no matching name.
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
AFAIK it has to have a compatible to make it work in such a case. What did I miss?
Show me please then how the OF table is used here at all to get the name.
This code will also be used for ACPI devices. To ensure consistent bin file naming between ACPI and DTS devices, the mapping table tasdevice_id[] has been introduced.
We need to stop discussing with irrelevant arguments, really.
I asked to show me how this is going to be used in DT. No answer to this part.
Now you claim this OF ID will be used for ACPI devices, but YOU HAVE already ACPI table there, so that's clearly invalid argument. Do you understand how patch/email review works? Where the comments appear and what is being discussed?
Quoted 7 lines
Quoted 2 lines
The code retrieves the corresponding name of the chip from tasdevice_id[] based on its order in tasdevice_of_match[] or
tasdevice_acpi_match[].
Based on the order in table? No, that's crazy buggy solution to tie order of entries in both tables. And it makes no sense... and I am sure code does not do it, so again irrelevant argument.
It should be noted that the current implementation relies on id_table (rather than OF_ID) to obtain the chip name and chip ID. The chip ID i s specifically reserved for handling exceptional cases, for example, the workaround for the TAS2781’s lower speaker impedance issue.
Since the 58xx family lacks a dedicated register to query the chip ID, both the supported chip ID and name are stored in id_table.
This approach allows compatibility with both DT-based (Device Tree)
and ACPI-based (Advanced Configuration and Power Interface) device.
if (ACPI_HANDLE(&i2c->dev)) {
acpi_id = acpi_match_device(i2c->dev.driver->acpi_match_table,
&i2c->dev);
if (!acpi_id) {
dev_err(&i2c->dev, "No driver data\n");
ret = -EINVAL;
goto err;
}
tas_priv->chip_id = acpi_id->driver_data;
tas_priv->isacpi = true;
} else {
tas_priv->chip_id = (uintptr_t)i2c_get_match_data(i2c);
tas_priv->isacpi = false;
}Quoted 5 lines
NAK, because all the replies so far are off-topic.
Best regards,
Krzysztof
Re: [EXTERNAL] Re: [PATCH v1 2/2] ASoC: tas2781: Add tas5832 support
Quoted 35 lines · Shenghao
Quoted 35 lines
Quoted 15 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
static const struct of_device_id tasdevice_of_match[] = {
{ .compatible = "ti,tas5827" },
{ .compatible = "ti,tas5828" },
{ .compatible = "ti,tas5830" },
+ { .compatible = "ti,tas5832" },...
Quoted 6 lines
Quoted 6 lines
I don't know what you are trying to get from them, but I²C enumeration on DT platforms works in a way that it takes two tables into account, hence, if there is no compatible (with given part number) there will be no matching name.
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
AFAIK it has to have a compatible to make it work in such a case. What did I miss?
Show me please then how the OF table is used here at all to get the name.
This code will also be used for ACPI devices. To ensure consistent bin file naming between ACPI and DTS devices, the mapping table tasdevice_id[] has been introduced.
We need to stop discussing with irrelevant arguments, really.
I asked to show me how this is going to be used in DT. No answer to this part.
Now you claim this OF ID will be used for ACPI devices, but YOU HAVE already ACPI table there, so that's clearly invalid argument. Do you understand how patch/email review works? Where the comments appear and what is being discussed?
Quoted 2 lines
The code retrieves the corresponding name of the chip from tasdevice_id[] based on its order in tasdevice_of_match[] or
Quoted 7 lines
Quoted 5 lines
tasdevice_acpi_match[].
Based on the order in table? No, that's crazy buggy solution to tie order of entries in both tables. And it makes no sense... and I am sure code does not do it, so again irrelevant argument.
It should be noted that the current implementation relies on
id_table
OF ID table is the ID table which we talk here about. Please read again where do the comments appear, which part is being discussed.
Quoted 9 lines
(rather than
OF_ID) to obtain the chip name and chip ID. The chip ID i s specifically reserved for handling exceptional cases, for example, the workaround for the TAS2781’s lower speaker impedance issue.Since the 58xx family lacks a dedicated register to query the chip ID, both the supported chip ID and name are stored in
id_table.
This approach allows compatibility with both DT-based (Device Tree)
and ACPI-based (Advanced Configuration and Power Interface) device.
Quoted 14 lines
if (ACPI_HANDLE(&i2c->dev)) {
acpi_id = acpi_match_device(i2c->dev.driver->acpi_match_table,
&i2c->dev);
if (!acpi_id) {
dev_err(&i2c->dev, "No driver data\n");
ret = -EINVAL;
goto err;
}
tas_priv->chip_id = acpi_id->driver_data;
tas_priv->isacpi = true;
} else {
tas_priv->chip_id = (uintptr_t)i2c_get_match_data(i2c);
tas_priv->isacpi = false;
}I do not see the point you are making. All last replies felt off topic to me, so just to be sure - do you understand how i2c_get_match_data() works? That it calls device_get_match_data() which will return what? What exactly?
Best regards,
Krzysztof
Ding, Shenghao
maintainerRE: [EXTERNAL] Re: [PATCH v1 2/2] ASoC: tas2781: Add tas5832 support
Hi Krzk,
Quoted 26 lines
Quoted 10 lines
(rather than
OF_ID) to obtain the chip name and chip ID. The chip ID i s specifically reserved for handling exceptional cases, for example, the workaround for the TAS2781’s lower speaker impedance issue.Since the 58xx family lacks a dedicated register to query the chip ID, both the supported chip ID and name are stored in
id_table.
This approach allows compatibility with both DT-based (Device Tree)
and ACPI-based (Advanced Configuration and Power Interface) device.Quoted 15 lines
if (ACPI_HANDLE(&i2c->dev)) { acpi_id = acpi_match_device(i2c->dev.driver- acpi_match_table, &i2c->dev); if (!acpi_id) { dev_err(&i2c->dev, "No driver data\n"); ret = -EINVAL; goto err; } tas_priv->chip_id = acpi_id->driver_data; tas_priv->isacpi = true; } else { tas_priv->chip_id = (uintptr_t)i2c_get_match_data(i2c); tas_priv->isacpi = false; }
Quoted 4 lines
I do not see the point you are making. All last replies felt off topic to me, so just to be sure - do you understand how
i2c_get_match_data()works? That it callsdevice_get_match_data()which will return what?
What exactly?
In my understanding, may I have following modification, and omit id_table assignment in the i2c_driver structure?
static const struct of_device_id tasdevice_of_match[] = {
{ .compatible = "ti,tas2020", .data = &tasdevice_id[TAS2020] },
{ .compatible = "ti,tas2118", .data = &tasdevice_id[TAS2118] },
{ .compatible = "ti,tas2120", .data = &tasdevice_id[TAS2120] },
{ .compatible = "ti,tas2320", .data = &tasdevice_id[TAS2320] },
{ .compatible = "ti,tas2563", .data = &tasdevice_id[TAS2563] },
{ .compatible = "ti,tas2568", .data = &tasdevice_id[TAS2568] },
{ .compatible = "ti,tas2570", .data = &tasdevice_id[TAS2570] },
{ .compatible = "ti,tas2572", .data = &tasdevice_id[TAS2572] },
{ .compatible = "ti,tas2574", .data = &tasdevice_id[TAS2574] },
{ .compatible = "ti,tas2781", .data = &tasdevice_id[TAS2781] },
{ .compatible = "ti,tas5802", .data = &tasdevice_id[TAS5802] },
{ .compatible = "ti,tas5806m", .data = &tasdevice_id[TAS5806M] },
{ .compatible = "ti,tas5806md", .data = &tasdevice_id[TAS5806MD] },
{ .compatible = "ti,tas5815", .data = &tasdevice_id[TAS5815] },
{ .compatible = "ti,tas5822", .data = &tasdevice_id[TAS5822] },
{ .compatible = "ti,tas5825", .data = &tasdevice_id[TAS5825] },
{ .compatible = "ti,tas5827", .data = &tasdevice_id[TAS5827] },
{ .compatible = "ti,tas5828", .data = &tasdevice_id[TAS5828] },
{ .compatible = "ti,tas5830", .data = &tasdevice_id[TAS5830] },
{},
};static const struct acpi_device_id tasdevice_acpi_match[] = {
{ "TXNW2020", &tasdevice_id[TAS2020] },
{ "TXNW2118", &tasdevice_id[TAS2118] },
{ "TXNW2120", &tasdevice_id[TAS2120] },
{ "TXNW2320", &tasdevice_id[TAS2320] },
{ "TXNW2563", &tasdevice_id[TAS2563] },
{ "TXNW2568", &tasdevice_id[TAS2568] },
{ "TXNW2570", &tasdevice_id[TAS2570] },
{ "TXNW2572", &tasdevice_id[TAS2572] },
{ "TXNW2574", &tasdevice_id[TAS2574] },
{ "TXNW2781", &tasdevice_id[TAS2781] },
{ "TXNW5802", &tasdevice_id[TAS5802] },
{ "TXNW806M", &tasdevice_id[TAS5806M] },
{ "TXNW806D", &tasdevice_id[TAS5806MD] },
{ "TXNW5815", &tasdevice_id[TAS5815] },
{ "TXNW5822", &tasdevice_id[TAS5822] },
{ "TXNW5825", &tasdevice_id[TAS5825] },
{ "TXNW5827", &tasdevice_id[TAS5827] },
{ "TXNW5828", &tasdevice_id[TAS5828] },
{ "TXNW5830", &tasdevice_id[TAS5830] },
{},
};Quoted 3 lines
Best regards,
Krzysztof
Quoted 6 lines · Baojun Xu
TAS5832 is in same family with TAS5827/28/30.
Signed-off-by Baojun Xu <[email protected]>--- Documentation/devicetree/bindings/sound/ti,tas2781.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
Best regards,
Krzysztof