[alsa-devel] [PATCH v2] ASoC: rt286: fix headphone click/crack noise on Dell XPS 9343 I2S mode
Mark Brown
broonie at kernel.org
Fri Mar 17 14:04:44 CET 2017
On Fri, Mar 17, 2017 at 02:41:04AM +0000, Kai-Heng Feng wrote:
> On Thu, Mar 16, 2017 at 10:09 PM Mark Brown <broonie at kernel.org> wrote:
> > > + rt286->is_dell_dino = dmi_check_system(dmi_dell_dino) ? true :
> > false;
> > Just directly assign the boolean value, the ternery operator is just
> > making thins harder to read here.
> Should I make the int implicitly convert to bool or use '!!' operator?
Use implicit conversion like you're already doing - the above already
evaluates the function as a boolean in order to use it in the ternery
operator.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20170317/40a151cf/attachment.sig>
More information about the Alsa-devel
mailing list