]> asedeno.scripts.mit.edu Git - linux.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)
commit3814c204446822cd3c82ec4e8616600732c1f94e
tree40787c2f195684df7b6592296aab9406daf5bf75
parent201892268b8335ae8c9dc7cc9a0d4bf6e1336f0e
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