FROMGIT: ASoC: rt1011: add mutex protection to set_fmt/set_tdm_slot The calibration process at booting will reset registers and bypass cache to make sure the calibration is done. We add mutex protection to avoid unexpected settings while the registration process and calibration are interleaved. Signed-off-by: Shuming Fan <shumingf@realtek.com> Link: https://lore.kernel.org/r/20190826090052.1875-1-shumingf@realtek.com Signed-off-by: Mark Brown <broonie@kernel.org> (cherry picked from commit e9e897d5fdba9bda3a8c80ea39761413725f198c https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.3) BUG=b:139106451 TEST=Verify playback on all 4 speakers. Change-Id: Ic6ec90d98c8ef7b70aa4d3bb3a483dfa4aee4944 Signed-off-by: Sathya Prakash M R <sathya.prakash.m.r@intel.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/1746931 Reviewed-by: Sean Paul <seanpaul@chromium.org> Reviewed-by: Cheng-Yi Chiang <cychiang@chromium.org> Commit-Queue: Cheng-Yi Chiang <cychiang@chromium.org> Tested-by: Cheng-Yi Chiang <cychiang@chromium.org>