From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vinod Koul Subject: Re: [PATCH v2 04/13] soundwire: Add Master and Slave port programming Date: Fri, 6 Apr 2018 10:31:19 +0530 Message-ID: <20180406050118.GG6014@localhost> References: <1522946904-2089-1-git-send-email-vinod.koul@intel.com> <1522946904-2089-5-git-send-email-vinod.koul@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by alsa0.perex.cz (Postfix) with ESMTP id 8B12B266BBC for ; Fri, 6 Apr 2018 06:56:58 +0200 (CEST) Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Pierre-Louis Bossart Cc: ALSA , tiwai@suse.de, Greg KH , liam.r.girdwood@linux.intel.com, patches.audio@intel.com, broonie@kernel.org, Sanyog Kale List-Id: alsa-devel@alsa-project.org 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