MLK-20102 sound: asoc: fix VAD channel select
authorCosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Tue, 30 Oct 2018 11:54:11 +0000 (13:54 +0200)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commitd8d61973362ad2a1e824c8690c7ac2c95414e78f
tree753197af7aee14c4545aad51a0500481906af5cc
parent808a18aa870d0f98563c0b3076ac87cfdbcefd0e
MLK-20102 sound: asoc: fix VAD channel select

The documentation specifies that VADCHSEL is used to select
the channel number on which hwvad detector will work. However,
we have used this field wrong (similar to the recording where
you can enable, disable multiple channels at the time).
This patch fixes hwvad and you can enable it by writing 0 to 7
in /sys/devices/platform/30080000.micfil/hwvad/enable or any
other number to disable it.

Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
(cherry picked from commit 4fdc1ca670db2f93362e8abde2707d98a7e450ff)
sound/soc/fsl/fsl_micfil.c
sound/soc/fsl/fsl_micfil.h