Message ID | 1454940293.6265.1.camel@ingics.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
? ??2016-02-08 ? 22:04 +0800?Axel Lin ???
> The equation to calculate bclk_ms is wrong, fix it.
Oops, I mis-understand the code.
Please ignore this patch, sorry.
Axel
diff --git a/sound/soc/codecs/rt5514.c b/sound/soc/codecs/rt5514.c index 879bf60..5bfe720 100644 --- a/sound/soc/codecs/rt5514.c +++ b/sound/soc/codecs/rt5514.c @@ -574,7 +574,7 @@ static int rt5514_hw_params(struct snd_pcm_substream *substream, return -EINVAL; } - bclk_ms = frame_size > 32; + bclk_ms = frame_size >> 32; rt5514->bclk = rt5514->lrck * (32 << bclk_ms); dev_dbg(dai->dev, "bclk is %dHz and lrck is %dHz\n",
The equation to calculate bclk_ms is wrong, fix it. Signed-off-by: Axel Lin <axel.lin@ingics.com> --- sound/soc/codecs/rt5514.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)