6 Jul
2014
6 Jul
'14
4:18 p.m.
On 07/04/2014 06:07 PM, Benoit Cousson wrote: [...]
*/ bool snd_soc_runtime_ignore_pmdown_time(struct snd_soc_pcm_runtime *rtd) {
- int i;
- bool ignore = true;
- if (!rtd->pmdown_time || rtd->dai_link->ignore_pmdown_time) return true;
- return rtd->cpu_dai->component->ignore_pmdown_time &&
rtd->codec_dai->component->ignore_pmdown_time;
- for (i = 0; (i < rtd->num_codecs) && !ignore; i++)
As you said last time this should be '&& ignore'. Or maybe just drop the check altogether.
ignore &= rtd->codec_dais[i]->component->ignore_pmdown_time;
- return rtd->cpu_dai->component->ignore_pmdown_time && ignore; }