Re: [PATCH v2 04/13] soundwire: Add Master and Slave port programming

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

 



On Thu, Apr 05, 2018 at 06:14:58PM -0500, Pierre-Louis Bossart wrote:
> On 4/5/18 11:48 AM, Vinod Koul wrote:

> >+	/* Program DPN_SampleCtrl2 register */
> >+	wbuf = ((t_params->sample_interval - 1) &
> >+			SDW_DPN_SAMPLECTRL_HIGH) >>
> >+			SDW_REG_SHIFT(SDW_DPN_SAMPLECTRL_HIGH);
> 
> 	wbuf = t_params->sample_interval - 1;
> 	wbuf &= SDW_DPN_SAMPLECTRL_HIGH);
> 	wbuf >>= SDW_REG_SHIFT(SDW_DPN_SAMPLECTRL_HIGH);
> 
> same lines of code, simpler to read?

ok will fix both of these

-- 
~Vinod
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



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

  Powered by Linux