From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lu Guanqun Subject: Re: [PATCH V3 1/5] sound: asoc: Adding support for STA529 Audio Codec Date: Mon, 11 Apr 2011 23:09:37 +0800 Message-ID: <20110411150937.GA12824@qtel.sh.intel.com> References: <1302499804-24386-1-git-send-email-rajeev-dlh.kumar@st.com> <1302499804-24386-2-git-send-email-rajeev-dlh.kumar@st.com> <20110411125318.GA11072@qtel.sh.intel.com> <20110411133500.GA24973@opensource.wolfsonmicro.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by alsa0.perex.cz (Postfix) with ESMTP id 8B8B8243FD for ; Mon, 11 Apr 2011 17:10:43 +0200 (CEST) Content-Disposition: inline In-Reply-To: <20110411133500.GA24973@opensource.wolfsonmicro.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Mark Brown Cc: "tiwai@suse.de" , "alsa-devel@alsa-project.org" , Rajeev Kumar , "lrg@slimlogic.co.uk" List-Id: alsa-devel@alsa-project.org On Mon, Apr 11, 2011 at 09:35:01PM +0800, Mark Brown wrote: > On Mon, Apr 11, 2011 at 08:53:18PM +0800, Lu Guanqun wrote: > > Please *always* delete irrelevant context from replies - it makes it > much easier to find the new text. Sure. > > > +static int __init sta529_modinit(void) > > > +{ > > > + int ret = 0; > > > + > > > + ret = i2c_add_driver(&sta529_i2c_driver); > > > > As an idiom, I often see the above code surrounded with an #ifdef, see > > below code snippet from sound/soc/codecs/wm8974.c > > This is only for devices that support more than one control interface. > If the device only supports one control interface there is no need to > make anything conditional. Well, but there are many codecs which support only one control interface while having this #ifdef condition... -- guanqun