topology: Allow set parameters at runtime in smart_amplifier component

Kcontrol interface is needed to set the smart_amplifier algorithm
parameters at runtime for tuning purpose. This patch allows the
user to set parameters using byte kcontrol.

Signed-off-by: Dharageswari R <dharageswari.r@intel.com>
This commit is contained in:
Dharageswari R 2020-08-12 18:19:04 -07:00 committed by Liam Girdwood
parent 46578cb103
commit 0a597d57a7
1 changed files with 2 additions and 8 deletions

View File

@ -185,14 +185,8 @@ static int smart_amp_ctrl_set_bin_data(struct comp_dev *dev,
assert(sad);
if (dev->state != COMP_STATE_READY) {
/* It is a valid request but currently this is not
* supported during playback/capture. The driver will
* re-send data in next resume when idle and the new
* configuration will be used when playback/capture
* starts.
*/
comp_err(dev, "smart_amp_ctrl_set_bin_data(): driver is busy");
if (dev->state < COMP_STATE_READY) {
comp_err(dev, "smart_amp_ctrl_set_bin_data(): driver in init!");
return -EBUSY;
}