OSDN Git Service

ASoC: Intel: sof_sdw: add amp number in components string for ucm
authorranderwang <rander.wang@linux.intel.com>
Sun, 19 Apr 2020 18:35:09 +0000 (02:35 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 27 Apr 2020 13:08:40 +0000 (14:08 +0100)
commitb1ca2f63e20b471e8f86e35b4b5f9407f8cb3021
treec3d56c0897296d9edc38d532ca5c212e7dc4685e
parente782ddbb0873d4d96bda890b295130696e0739fc
ASoC: Intel: sof_sdw: add amp number in components string for ucm

The number of speaker amplifiers may vary between platforms. UCM
needs to check amp number to include different configuration files.
This patch keeps track of the number of speaker amplifiers and
stores it in components string of the card.

Tested on Comet Lake platforms.

Signed-off-by: randerwang <rander.wang@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Link: https://lore.kernel.org/r/20200419183509.4134-1-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/sof_sdw.c