MLK-21775-2: ASoC: fsl_micfil: fix error handling in enable_hwvad
authorViorel Suman <viorel.suman@nxp.com>
Fri, 12 Jul 2019 08:54:03 +0000 (11:54 +0300)
committerViorel Suman <viorel.suman@nxp.com>
Fri, 12 Jul 2019 10:13:11 +0000 (13:13 +0300)
commit259efe6c3e05b07bdcdf27cea269af4ea82c8abe
tree4434043f297fe070c0bf106a0232c0aa0eeb77b8
parentfa548658c50a19bf3417763d36a0022598c97c0b
MLK-21775-2: ASoC: fsl_micfil: fix error handling in enable_hwvad

The HWVAD_OFF state must be restored and device put back
in runtime_suspend in case if fsl_set_clock_params, fsl_micfil_reset
and init_hwvad calls return an error.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
sound/soc/fsl/fsl_micfil.c