lkml.org 
[lkml]   [2009]   [Jul]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [alsa-devel] [RFC] [PATCH 3/3] ASoC: add support for Amstrad E3 (Delta) machine
At Wed, 22 Jul 2009 12:03:28 +0100,
Mark Brown wrote:
>
> > + /* Setup pins after corresponding bits if changed */
> > + if ((bool)snd_soc_dapm_get_pin_status(codec, "Speaker") !=
> > + (bool)(function & (1 << AMS_DELTA_SPEAKER))) {
>
> Don't like these casts... why are they needed?

Because the right side is the bit operation?
The cast doesn't look nice, though...


Takashi



\
 
 \ /
  Last update: 2009-07-22 13:41    [W:0.083 / U:0.676 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site