CHROMIUM: ASoC: rockchip: i2s: only turns off BCLK when neither capture nor playback stream exists

Fixes: 6854dee278bf "Reland "CHROMIUM: ASoC: rockchip: i2s: switch BCLK
to GPIO"". BCLK should only be turned off when there is neither capture nor
playback stream ongoing

BUG=b:181795671
BUG=b:187142184

TEST=Check headset (with mic) has audio after insertion during playback.
Signed-off-by: Judy Hsiao <judyhsiao@chromium.org>

Change-Id: Ic3531a4ed0ab28e59a6b973d6a484c9736e005ee
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/2929409
Tested-by: Judy Hsiao <judyhsiao@chromium.org>
Auto-Submit: Judy Hsiao <judyhsiao@chromium.org>
Reviewed-by: Ben Zhang <benzh@chromium.org>
Commit-Queue: Judy Hsiao <judyhsiao@chromium.org>
(cherry picked from commit 1f1cfc9b33f8b74309efc507e80371cc92f13372)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/2931588
Reviewed-by: Judy Hsiao <judyhsiao@chromium.org>
1 file changed