]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: Skylake: Add FE and BE hw_params handling
authorVinod Koul <vinod.koul@intel.com>
Wed, 7 Oct 2015 10:31:55 +0000 (11:31 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 7 Oct 2015 14:30:16 +0000 (15:30 +0100)
commita610eaf7a3d6f91331c623999fe2a923520c3879
treeea4023841c60b1e8b8a896c2c6a292dd2adf8404
parenta96aecd06c71baf48ea81b4931d2a8e943d86c00
ASoC: Intel: Skylake: Add FE and BE hw_params handling

For FE and BE, the PCM parameters come from FE and BE hw_params
values passed. For a FE we convert the FE params to DSP expected
module format and pass to DSP. For a BE we need to find the
gateway settings (i2s/PDM) to be applied. These are queried from
NHLT table and applied.

Further for BE based on direction the settings are applied as
either source or destination parameters.

These helpers here allow the format to be calculated and queried
as per firmware format.

Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl-topology.c
sound/soc/intel/skylake/skl-topology.h