]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4faa1d775a7cf740be8d36e974fe44469d6a4b12
treec7e777951f599ff32767096b106f2d6dbc02c92f
parentcac642e49f3565a07f2f363318dc83641aa079a6
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