Skip to content

Commit

Permalink
ASoC: Intel: sof_sdw: add a space before cfg-amp in components
Browse files Browse the repository at this point in the history
UCM parse amp with Regex " cfg-amp:([0-9]+)". The "ASoC: Intel: sof_sdw:
remove FOUR_SPEAKER quirks" patch removed "cfg-spk:%d " from components
which removed the necessary space as well and cause UCM can't parse the
amp number properly.

Fixes: 744866d ("ASoC: Intel: sof_sdw: remove FOUR_SPEAKER quirks")
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
  • Loading branch information
bardliao authored and plbossart committed Apr 22, 2024
1 parent 8054d7b commit 02721c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/intel/boards/sof_sdw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1993,7 +1993,7 @@ static int mc_probe(struct platform_device *pdev)
amp_num += codec_info_list[i].amp_num;

card->components = devm_kasprintf(card->dev, GFP_KERNEL,
"cfg-amp:%d", amp_num);
" cfg-amp:%d", amp_num);
if (!card->components)
return -ENOMEM;

Expand Down

0 comments on commit 02721c1

Please sign in to comment.