OSDN Git Service

ASoC: Intel: cht*: simplify card names for SOF uses
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Wed, 17 Jun 2020 16:56:15 +0000 (11:56 -0500)
committerMark Brown <broonie@kernel.org>
Wed, 17 Jun 2020 19:58:31 +0000 (20:58 +0100)
commit7bfbddfc98414ab52803ffd26d0dc65328d373b1
treecb7087135c298898d4df981b465a0704e4538bf8
parentb4ecd58b01fbd9420bb3d8911c526dc877319df5
ASoC: Intel: cht*: simplify card names for SOF uses

Blindly adding an sof- prefix to the card name is not user friendly
and causes UCM issues with a driver name truncated to 16 characters.

Simplify to use "sof-bytcht <codec_name>" pattern for all cht* machine
drivers. The sof- prefix is added by the core. A generic "SOF" driver
name is used, and UCMv2 will detect the configuration for this driver
by testing the card name.

Legacy uses are unmodified.

Suggested-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20200617165616.18511-3-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/cht_bsw_max98090_ti.c
sound/soc/intel/boards/cht_bsw_nau8824.c
sound/soc/intel/boards/cht_bsw_rt5645.c
sound/soc/intel/boards/cht_bsw_rt5672.c