lkml.org 
[lkml]   [2015]   [Oct]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/2] ASoC: rockchip: i2s: add 8 channels capture and lrck-mode support
On Wed, Oct 07, 2015 at 10:27:14AM +0100, Mark Brown wrote:
> On Wed, Oct 07, 2015 at 04:01:38PM +0800, sugar wrote:

> > if (dai->symmetric_rates)
> > regmap_update_bits(i2s->regmap, I2S_CKR,
> > I2S_CKR_TRCM_MASK,
> > I2S_CKR_TRCM(val));

> Yes, something like that. You'll need to check both links in the DAI
> and the DAI link itself rather than just your own DAI but we should have
> a helper function for that - I'll add one, look out for a patch shortly.

Actually no, now I look at the code you probably want to just clone the
check from soc_pcm_apply_symmetry() so have that be:

struct snd_soc_pcm_runtime *rtd = substream->private_data;

if (rtd->dai_link->symmetrict_rates) {
}

instead.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2015-10-07 12:01    [W:0.526 / U:0.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site