ASoC: rt1015p: move SDB control from trigger to DAPM
authorTzung-Bi Shih <tzungbi@google.com>
Fri, 11 Dec 2020 05:12:23 +0000 (13:12 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 11 Dec 2020 13:22:18 +0000 (13:22 +0000)
commit4ab9301710760b99b4229d608eb5599040b2e07e
treec7e777951f599ff32767096b106f2d6dbc02c92f
parent3759d5edc07598d55124d87bd292a95f79f47997
ASoC: rt1015p: move SDB control from trigger to DAPM

Moves SDB control from DAI ops trigger to DAPM.  As long as BCLK
and LRCLK are ready, SDB can be toggled earlier.

Changes from using gpiod_set_value() to gpiod_set_value_cansleep()
because it executes in non-atomic context.

Signed-off-by: Tzung-Bi Shih <tzungbi@google.com>
Link: https://lore.kernel.org/r/20201211051224.2307349-2-tzungbi@google.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt1015p.c