linux/sound/soc/sof
Pierre-Louis Bossart 7aecf59770
ASoC: SOF: Intel: detect DMIC number in SoundWire mixed config
The pinmux allows for 2 SoundWire links to be enabled along with
DMICs. This was the default configuration on the TGL-RVP.

One issue with this configuration is that we don't have a means to
automatically detect how many DMICs are used, which in turn requires
the user to manually rename the topology file required on a platform.

This was borderline acceptable for Intel RVPs, but now that this
configuration is present in HP devices we need to automate the
process.

This patch makes use of the NHLT information and will pass the DMIC
number to the machine driver as a parameter. A follow-up patch will
expose the DMIC number to userspace/UCM with the configuration strings.

The Google devices do make use of DMICs instead of SoundWire link 2
and 3, but their topology is unique enough that they do not need any
NHTL support or topology renaming.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20210208233336.59449-10-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2021-02-10 17:22:52 +00:00
..
imx ASoC: SOF: imx: update kernel-doc description 2020-12-11 13:23:03 +00:00
intel ASoC: SOF: Intel: detect DMIC number in SoundWire mixed config 2021-02-10 17:22:52 +00:00
xtensa ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
compress.c ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
compress.h ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
control.c ASoC: SOF: control: override volume info callback 2020-11-20 13:49:05 +00:00
core.c ASoC: SOF: add snd_sof_device_shutdown() helper for shutdown 2021-01-13 16:33:42 +00:00
debug.c ASoC: SOF: modify the SOF_DBG flags 2020-12-11 13:22:57 +00:00
ipc.c ASoC: SOF: Add memory_info file to debugfs 2020-11-25 11:07:17 +00:00
Kconfig ASoC: SOF: Fix spelling mistake in Kconfig "ond" -> "and" 2020-12-16 13:53:51 +00:00
loader.c Merge branch 'asoc-5.11' into asoc-5.12 2021-02-05 15:01:21 +00:00
Makefile ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
nocodec.c ASoC: SOF: nocodec: modify DAI link definitions 2020-11-20 16:42:14 +00:00
ops.c ASoC: SOF: modify the SOF_DBG flags 2020-12-11 13:22:57 +00:00
ops.h ASoC: SOF: Filter out unneeded core power up/downs 2021-01-28 17:11:37 +00:00
pcm.c ASoC: SOF: add be_hw_params_fixup() for ALH 2021-02-02 13:42:43 +00:00
pm.c ASoC: SOF: update dsp core power status in common APIs 2021-01-28 17:11:36 +00:00
probe.c ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
probe.h ASoC: SOF: Replace zero-length array with flexible-array 2020-06-15 23:08:32 -05:00
sof-acpi-dev.c ASoC: SOF: SND_INTEL_DSP_CONFIG dependency 2021-01-25 12:53:42 +00:00
sof-audio.c ASoC: SOF: nocodec: modify DAI link definitions 2020-11-20 16:42:14 +00:00
sof-audio.h ASoC: SOF: control: fix cppcheck warning in snd_sof_volume_info() 2020-12-04 23:26:32 +00:00
sof-of-dev.c ASoC: SOF: Add .prepare/.complete callbacks 2020-09-25 18:53:12 +01:00
sof-pci-dev.c Merge branch 'asoc-5.11' into asoc-5.12 2021-02-05 15:01:21 +00:00
sof-priv.h ASoC: SOF: add .shutdown() callback to snd_sof_dsp_ops 2021-01-13 16:33:41 +00:00
topology.c Merge branch 'asoc-5.11' into asoc-5.12 2021-02-05 15:01:21 +00:00
trace.c ASoC: SOF: trace: Add runtime trace filtering mechanism 2020-12-07 14:22:05 +00:00
utils.c ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00