ASoC: Intel: nau8825/rt5682: move speaker widget to common modules
authorBrent Lu <brent.lu@intel.com>
Fri, 26 Apr 2024 15:25:07 +0000 (10:25 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 29 Apr 2024 14:49:02 +0000 (23:49 +0900)
commitd2d377fc22d23fd38188ea90b051584069a299a2
treef6c16de0ad1402bcea4ab1e042443d2363a8ca2e
parent466c8c46b4ba763435b2a787b7824d9f0fd3e76e
ASoC: Intel: nau8825/rt5682: move speaker widget to common modules

Two machine drivers sof_rt5682 and sof_nau8825 always register two
speaker widgets 'Left Spk' and 'Right Spk' regardless the actual
number of speakers. Move the widget registration to speaker common
modules to avoid useless speaker widgets for 1 or 4 speaker boards.

Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Brent Lu <brent.lu@intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20240426152529.38345-2-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/sof_maxim_common.c
sound/soc/intel/boards/sof_nau8825.c
sound/soc/intel/boards/sof_realtek_common.c
sound/soc/intel/boards/sof_rt5682.c