]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: use common helpers to detect CPUs
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Thu, 30 May 2019 11:50:11 +0000 (06:50 -0500)
committerMark Brown <broonie@kernel.org>
Thu, 30 May 2019 15:33:26 +0000 (16:33 +0100)
commit761f3d57e5a8dacf9e2a7904bdb8dce7c4f38046
tree2990c0ffb102ef23ac6316329c71ce9083d8d0ee
parent68eda536439e7f0d72d46025e58c4e20d4be80cc
ASoC: Intel: use common helpers to detect CPUs

We have duplicated code in multiple locations (atom, machine drivers,
SOF) to detect Baytrail, Cherrytrail and other SOCs. This is not very
elegant, and introduces dependencies on CONFIG_X86 that prevent
COMPILE_TEST from working.

Add common helpers to provide same functionality in a cleaner
way. This will also help support the DMI-based quirks being introduced
to handle SOF/SST autodetection.

Reviewed-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/atom/sst/sst_acpi.c
sound/soc/intel/boards/bxt_da7219_max98357a.c
sound/soc/intel/boards/bytcht_es8316.c
sound/soc/intel/boards/bytcr_rt5640.c
sound/soc/intel/boards/bytcr_rt5651.c
sound/soc/intel/boards/cht_bsw_rt5645.c
sound/soc/intel/boards/sof_rt5682.c
sound/soc/intel/common/soc-intel-quirks.h [new file with mode: 0644]
sound/soc/sof/sof-acpi-dev.c