Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756076AbZJSMzH (ORCPT ); Mon, 19 Oct 2009 08:55:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755663AbZJSMzG (ORCPT ); Mon, 19 Oct 2009 08:55:06 -0400 Received: from opensource.wolfsonmicro.com ([80.75.67.52]:33354 "EHLO opensource2.wolfsonmicro.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751389AbZJSMzF (ORCPT ); Mon, 19 Oct 2009 08:55:05 -0400 Date: Mon, 19 Oct 2009 13:55:08 +0100 From: Mark Brown To: Peter Ujfalusi Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, sameo@linux.intel.com, tony@atomide.com Subject: Re: [PATCH 3/4] ASoC: TWL4030: Only update the needed bits in *set_dai_sysclk Message-ID: <20091019125507.GA1417@rakim.wolfsonmicro.main> References: <1255956140-4829-1-git-send-email-peter.ujfalusi@nokia.com> <1255956140-4829-2-git-send-email-peter.ujfalusi@nokia.com> <1255956140-4829-3-git-send-email-peter.ujfalusi@nokia.com> <1255956140-4829-4-git-send-email-peter.ujfalusi@nokia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1255956140-4829-4-git-send-email-peter.ujfalusi@nokia.com> X-Cookie: Space is limited. User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 595 Lines: 14 On Mon, Oct 19, 2009 at 03:42:19PM +0300, Peter Ujfalusi wrote: > + apll_ctrl = twl4030_read_reg_cache(codec, TWL4030_REG_APLL_CTL); > + apll_ctrl &= ~TWL4030_APLL_INFREQ; > switch (freq) { I'll apply this - it's idiomatic for the current driver - but you might want to look at snd_soc_update_bits() which does a read/modify/write cycle for you. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/