diff options
author | Nicolin Chen <nicoleotsuka@gmail.com> | 2014-10-24 19:48:11 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-10-28 12:05:04 -0400 |
commit | 41282920aa35033a4fcf2bc68aeba42a037e6c4d (patch) | |
tree | b77fd2c1913d32e5849ed71b13f99031c5b60737 /sound/soc/fsl | |
parent | f114040e3ea6e07372334ade75d1ee0775c355e1 (diff) |
ASoC: fsl-asoc-card: Don't bypass settings if cpu-dai is Master
When cpu-dai is the DAI Master (CBM_CFx), it may need some configurations,
set_sysclk() call for eample, for cpu-dai side in the hw_params(), even if
the set_bias_level() has already taken care of the codec-dai side.
So this patch just simply adds an additional condition.
Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/fsl')
-rw-r--r-- | sound/soc/fsl/fsl-asoc-card.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-card.c index 007c772f3cef..14572e62dd51 100644 --- a/sound/soc/fsl/fsl-asoc-card.c +++ b/sound/soc/fsl/fsl-asoc-card.c | |||
@@ -125,7 +125,12 @@ static int fsl_asoc_card_hw_params(struct snd_pcm_substream *substream, | |||
125 | priv->sample_rate = params_rate(params); | 125 | priv->sample_rate = params_rate(params); |
126 | priv->sample_format = params_format(params); | 126 | priv->sample_format = params_format(params); |
127 | 127 | ||
128 | if (priv->card.set_bias_level) | 128 | /* |
129 | * If codec-dai is DAI Master and all configurations are already in the | ||
130 | * set_bias_level(), bypass the remaining settings in hw_params(). | ||
131 | * Note: (dai_fmt & CBM_CFM) includes CBM_CFM and CBM_CFS. | ||
132 | */ | ||
133 | if (priv->card.set_bias_level && priv->dai_fmt & SND_SOC_DAIFMT_CBM_CFM) | ||
129 | return 0; | 134 | return 0; |
130 | 135 | ||
131 | /* Specific configurations of DAIs starts from here */ | 136 | /* Specific configurations of DAIs starts from here */ |