summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorShenghao Ding <shenghao-ding@ti.com>2024-09-07 02:15:36 +0200
committerMark Brown <broonie@kernel.org>2024-09-09 13:29:29 +0200
commitaf5e317175858603f950e51fe6377027fdd6eb79 (patch)
tree3f7019003dcec037cd3e7bb2fbb8d16072ec795e /sound
parentASoC: Intel: soc-acpi-intel-mtl-match: add missing empty item (diff)
downloadlinux-af5e317175858603f950e51fe6377027fdd6eb79.tar.xz
linux-af5e317175858603f950e51fe6377027fdd6eb79.zip
ASoC: tas2781: fix to save the dsp bin file name into the correct array in case name_prefix is not NULL
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. Signed-off-by: Shenghao Ding <shenghao-ding@ti.com> Link: https://patch.msgid.link/20240907001540.944-1-shenghao-ding@ti.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/tas2781-i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/tas2781-i2c.c b/sound/soc/codecs/tas2781-i2c.c
index e79d613745b4..cf8bc7ede6c7 100644
--- a/sound/soc/codecs/tas2781-i2c.c
+++ b/sound/soc/codecs/tas2781-i2c.c
@@ -502,7 +502,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",