Skip to content

Commit af5e317

Browse files
Shenghao-Dingbroonie
authored andcommitted
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>
1 parent bf6d7a4 commit af5e317

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/codecs/tas2781-i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ static void tasdevice_fw_ready(const struct firmware *fmw,
502502
*/
503503
tas_priv->fw_state = TASDEVICE_RCA_FW_OK;
504504
if (tas_priv->name_prefix)
505-
scnprintf(tas_priv->rca_binaryname, 64, "%s-%s_coef.bin",
505+
scnprintf(tas_priv->coef_binaryname, 64, "%s-%s_coef.bin",
506506
tas_priv->name_prefix, tas_priv->dev_name);
507507
else
508508
scnprintf(tas_priv->coef_binaryname, 64, "%s_coef.bin",

0 commit comments

Comments
 (0)