OSDN Git Service

ASoC: SOF: Intel: hda: don't send DAI_CONFIG IPC for older firmware
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Tue, 18 May 2021 17:41:21 +0000 (10:41 -0700)
committerMark Brown <broonie@kernel.org>
Wed, 19 May 2021 13:18:00 +0000 (14:18 +0100)
commit8c08652614cb7468620a6328b37ca2965cd48283
tree03939c4f4d21d990842956e2359d9097ea4d9216
parentcdf112d4c65f83065793b73b49363123517fdb71
ASoC: SOF: Intel: hda: don't send DAI_CONFIG IPC for older firmware

BE hw_params op was recently added for SSP type DAIs.
But sending the DAI_CONFIG IPC during hw_params
is not supported with older firmware. So add an ABI check
to avoid sending the IPC if the firmware ABI is older than
3.18.

Fixes: e12be9fbfb91 ('ASoC: SOF: Intel: HDA: add hw params callback for SSP DAIs')
Tested-by: Yong Zhi <yong.zhi@intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20210518174121.151601-1-ranjani.sridharan@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda-dai.c