diff mbox

[1/2] davinci-mcasp: use bclk_master flag to decide if the SOC is clock master

Message ID 54D487BF.2050602@bytesatwork.ch (mailing list archive)
State New, archived
Headers show

Commit Message

Urs Fässler Feb. 6, 2015, 9:22 a.m. UTC
Signed-off-by: Urs Fässler <urs.fassler@bytesatwork.ch>
---
 sound/soc/davinci/davinci-mcasp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/sound/soc/davinci/davinci-mcasp.c
b/sound/soc/davinci/davinci-mcasp.c
index 30b94d4..396cdec 100644
--- a/sound/soc/davinci/davinci-mcasp.c
+++ b/sound/soc/davinci/davinci-mcasp.c
@@ -541,7 +541,7 @@  static int davinci_mcasp_set_sysclk(struct
snd_soc_dai *dai, int clk_id,
 {
 	struct davinci_mcasp *mcasp = snd_soc_dai_get_drvdata(dai);
 -	if (dir == SND_SOC_CLOCK_OUT) {
+	if (mcasp->bclk_master) {
 		mcasp_set_bits(mcasp, DAVINCI_MCASP_AHCLKXCTL_REG, AHCLKXE);
 		mcasp_set_bits(mcasp, DAVINCI_MCASP_AHCLKRCTL_REG, AHCLKRE);
 		mcasp_set_bits(mcasp, DAVINCI_MCASP_PDIR_REG, AHCLKX);