Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: tas2781: fix to save the dsp bin file name into the correct array in case name_prefix is not NULL
@ 2024-09-07  0:15 Shenghao Ding
  2024-09-07  0:15 ` [PATCH] ASoc: tas2781: Remove unnecessary line feed and space Shenghao Ding
  2024-09-09 15:25 ` [PATCH] ASoC: tas2781: fix to save the dsp bin file name into the correct array in case name_prefix is not NULL Mark Brown
  0 siblings, 2 replies; 6+ messages in thread
From: Shenghao Ding @ 2024-09-07  0:15 UTC (permalink / raw)
  To: broonie
  Cc: andriy.shevchenko, lgirdwood, perex, pierre-louis.bossart,
	13916275206, zhourui, alsa-devel, i-salazar, liam.r.girdwood,
	jaden-yue, yung-chuan.liao, dipa, yuhsuan, henry.lo, tiwai,
	baojun.xu, Baojun.Xu, judyhsiao, navada, cujomalainey, aanya,
	nayeem.mahmud, savyasanchi.shukla, flaviopr, jesse-ji, darren.ye,
	antheas.dk, Jerry2.Huang, jim.shil, jeep.wang, will-wang,
	Shenghao Ding

fix to save the dsp bin file name into the correct array, coef_binaryname,
instead of rca_binaryname, in case name_prefix is not NULL.

Fixes: 55f0a1fa6ea4 ("ASoC: tas2781: Add name_prefix as the prefix name of DSP firmwares and calibrated data files")
Signed-off-by: Shenghao Ding <shenghao-ding@ti.com>
---
 sound/soc/codecs/tas2781-i2c.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/tas2781-i2c.c b/sound/soc/codecs/tas2781-i2c.c
index 59fcce7fef7b..3bc10d615fd3 100644
--- a/sound/soc/codecs/tas2781-i2c.c
+++ b/sound/soc/codecs/tas2781-i2c.c
@@ -498,7 +498,7 @@ static void tasdevice_fw_ready(const struct firmware *fmw,
 	 */
 	tas_priv->fw_state = TASDEVICE_RCA_FW_OK;
 	if (tas_priv->name_prefix)
-		scnprintf(tas_priv->rca_binaryname, 64, "%s-%s_coef.bin",
+		scnprintf(tas_priv->coef_binaryname, 64, "%s-%s_coef.bin",
 			tas_priv->name_prefix, tas_priv->dev_name);
 	else
 		scnprintf(tas_priv->coef_binaryname, 64, "%s_coef.bin",
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [PATCH] ASoc: tas2781: Remove unnecessary line feed and space
@ 2024-08-15  4:21 Shenghao Ding
  2024-08-15 17:18 ` Mark Brown
  0 siblings, 1 reply; 6+ messages in thread
From: Shenghao Ding @ 2024-08-15  4:21 UTC (permalink / raw)
  To: broonie
  Cc: andriy.shevchenko, lgirdwood, perex, pierre-louis.bossart,
	13916275206, zhourui, alsa-devel, i-salazar, liam.r.girdwood,
	jaden-yue, yung-chuan.liao, dipa, yuhsuan, henry.lo, tiwai,
	baojun.xu, Baojun.Xu, j-chadha, judyhsiao, navada, cujomalainey,
	aanya, nayeem.mahmud, savyasanchi.shukla, flaviopr, jesse-ji,
	darren.ye, antheas.dk, Jerry2.Huang, jim.shil, Shenghao Ding

Remove unnecessary line feed for tasdevice_dsp_create_ctrls,
and remove two unnecessary spaces in tas2563_digital_gain_get
and tas2563_digital_gain_put.

Signed-off-by: Shenghao Ding <shenghao-ding@ti.com>
---
 sound/soc/codecs/tas2781-i2c.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/sound/soc/codecs/tas2781-i2c.c b/sound/soc/codecs/tas2781-i2c.c
index 8c9efd9183ff..9a32e0504857 100644
--- a/sound/soc/codecs/tas2781-i2c.c
+++ b/sound/soc/codecs/tas2781-i2c.c
@@ -157,7 +157,7 @@ static int tas2563_digital_gain_get(
 
 	mutex_lock(&tas_dev->codec_lock);
 	/* Read the primary device */
-	ret =  tasdevice_dev_bulk_read(tas_dev, 0, reg, data, 4);
+	ret = tasdevice_dev_bulk_read(tas_dev, 0, reg, data, 4);
 	if (ret) {
 		dev_err(tas_dev->dev, "%s, get AMP vol error\n", __func__);
 		goto out;
@@ -203,7 +203,7 @@ static int tas2563_digital_gain_put(
 	vol = clamp(vol, 0, max);
 	mutex_lock(&tas_dev->codec_lock);
 	/* Read the primary device */
-	ret =  tasdevice_dev_bulk_read(tas_dev, 0, reg, data, 4);
+	ret = tasdevice_dev_bulk_read(tas_dev, 0, reg, data, 4);
 	if (ret) {
 		dev_err(tas_dev->dev, "%s, get AMP vol error\n", __func__);
 		rc = -1;
@@ -423,8 +423,7 @@ static int tasdevice_configuration_put(
 	return ret;
 }
 
-static int tasdevice_dsp_create_ctrls(
-	struct tasdevice_priv *tas_priv)
+static int tasdevice_dsp_create_ctrls(struct tasdevice_priv *tas_priv)
 {
 	struct snd_kcontrol_new *dsp_ctrls;
 	char *prog_name, *conf_name;
-- 
2.34.1


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

end of thread, other threads:[~2024-09-09 15:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-07  0:15 [PATCH] ASoC: tas2781: fix to save the dsp bin file name into the correct array in case name_prefix is not NULL Shenghao Ding
2024-09-07  0:15 ` [PATCH] ASoc: tas2781: Remove unnecessary line feed and space Shenghao Ding
2024-09-09 10:13   ` Andy Shevchenko
2024-09-09 15:25 ` [PATCH] ASoC: tas2781: fix to save the dsp bin file name into the correct array in case name_prefix is not NULL Mark Brown
  -- strict thread matches above, loose matches on Subject: below --
2024-08-15  4:21 [PATCH] ASoc: tas2781: Remove unnecessary line feed and space Shenghao Ding
2024-08-15 17:18 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox