]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: add kcontrol to set parameter to sound effect module waves
authorLu, Han <han.lu@intel.com>
Thu, 12 Mar 2015 05:53:02 +0000 (13:53 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 12 Mar 2015 19:18:14 +0000 (19:18 +0000)
commitbcad10d218400dd9ac64a5181999f4e493daa9eb
tree40787c2f195684df7b6592296aab9406daf5bf75
parent831779b445d778bda618dfc93fb9c211b1d796d9
ASoC: Intel: add kcontrol to set parameter to sound effect module waves

Each kcontrol command includes a line of parameters up to 128 bytes.
kcontrol command to set param:
    cset "name='Waves Set Param' <0x01,0xff,...>"
or
    cset-bin-file "name='Waves Set Param' <path/to/binary/config/file>"

The parameter lines are stored in a buffer array, so can be read back from
buffer rather than from DSP, and be relaunched to DSP when resume from RTD3.
The buffer size is 160 parameter lines.
kcontrol command to reset the buffer:
    cset "name='Waves Set Param' 0xff"

alsa-lib v1.0.29 or commit 6ea14c36 and f47480af are required to support the
kcontrol commands.

Signed-off-by: Lu, Han <han.lu@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/sst-haswell-ipc.c
sound/soc/intel/sst-haswell-ipc.h
sound/soc/intel/sst-haswell-pcm.c