6 Jul
2014
6 Jul
'14
10:23 p.m.
On 06/07/2014 16:18, Lars-Peter Clausen wrote:
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.
Oops, I forgot to fix it before posting :-(
I guess I'll drop it, it is a little bit overkill.
Thanks, Benoit
--
BenoƮt Cousson
BayLibre
Embedded Linux Technology Lab
www.baylibre.com