ASoC: SOF: Intel: hda-stream: limit PROCEN workaround
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Tue, 7 Dec 2021 19:39:42 +0000 (13:39 -0600)
committerMark Brown <broonie@kernel.org>
Mon, 13 Dec 2021 19:32:45 +0000 (19:32 +0000)
commita792bfc1c2bc4b5e2311edc62e0efe5adec5d079
treeabaeeb79632870de17e6e67ca99b9ff3eaef3b0e
parentc697ef868f596aba7a5e90be8eb10bf4d4a98990
ASoC: SOF: Intel: hda-stream: limit PROCEN workaround

The work-around enabled in hda-stream.c is only required on earlier
versions of SOCs/PCH (Skylake, KabyLake, ApolloLake,
GeminiLake). Before setting the format on the host DMA, it is required
to couple the host and link DMA - which as a consequence shall use the
same format.

This patch introduces a quirk field in the platform descriptor and
makes the work-around conditional. Newer platforms have
no limitations on the use of host and link DMA, which can use
different formats.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Link: https://lore.kernel.org/r/20211207193947.71080-3-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/apl.c
sound/soc/sof/intel/hda-stream.c
sound/soc/sof/intel/shim.h