11 May
2018
11 May
'18
12:47 p.m.
On 07.05.2018 14:37, Liam Girdwood wrote:
- if (direction != DAI_DIR_CAPTURE) {
trace_dmic_error("cap");
return -EINVAL;
- }
You need to do this here :-
ret = comp_set_state(dev, cmd); if (ret < 0) return ret;
This does all state checking/setting so no need to do it below.
I tried but I noticed it can't be done since struct comp_dev *dev and struct dmic_pdata *dmic are not the same.
Thanks, Seppo