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)
commit536cfd2f375d36f4316c0b93bb9e0eaf78e0ef6c
tree2990c0ffb102ef23ac6316329c71ce9083d8d0ee
parentf499edf9fa90f184af9f457fd0912a788754af25
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