mirror of https://github.com/thesofproject/sof.git
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:
parent
46578cb103
commit
0a597d57a7
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue