Re: [alsa-devel] [RFC] [PATCH 3/3] ASoC: add support for Amstrad E3 (Delta) machine

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

 



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

--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux