Re: [PATCH 6/8] ASoC: soc-pcm: check DAI's activity more simply

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Pierre-Louis

> >>> -		if ((playback && playback_active == 1) ||
> >>> -		    (!playback && capture_active == 1))
> >>> +		if (codec_dai->active == 1)
> >> 
> >> nit-pick: we have two tests in soc-pcm.c
> >> 
> >> if (codec_dai->active)
> >> if (codec_dai->active == 1)
> >> 
> >> The two are functionality equivalent but it'd be good to choose one
> >> version - or possibly use 'active' as a boolean.
> > 
> > In my understanding, dai->active can be 0/1/2.
> 
> I see, I guess I missed this completely. Thanks Morimoto-san for the
> precision.

But, we want to use "if (codec_dai->active)" anyway.
Your review indicated my mistake.

Thank you for your help !!
Best regards
---
Kuninori Morimoto



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux