From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rajeev kumar Subject: Re: [PATCH 1/8] sound:asoc: Add support for STA529 Audio Codec Date: Fri, 23 Mar 2012 14:45:48 +0530 Message-ID: <4F6C3F44.5070802@st.com> References: <4F68C4F2.5000805@metafoo.de> <4F6BF566.8070908@st.com> <4F6C399E.7090006@metafoo.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from eu1sys200aog102.obsmtp.com (eu1sys200aog102.obsmtp.com [207.126.144.113]) by alsa0.perex.cz (Postfix) with ESMTP id 6F62C103F30 for ; Fri, 23 Mar 2012 10:16:59 +0100 (CET) In-Reply-To: <4F6C399E.7090006@metafoo.de> 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: Lars-Peter Clausen Cc: "tiwai@suse.de" , "alsa-devel@alsa-project.org" , spear-devel , "lrg@slimlogic.co.uk" , "broonie@opensource.wolfsonmicro.com" List-Id: alsa-devel@alsa-project.org Hello Lars, On 3/23/2012 2:21 PM, Lars-Peter Clausen wrote: > On 03/23/2012 05:00 AM, Rajeev kumar wrote: >> Hello Lars, >> >> On 3/20/2012 11:27 PM, Lars-Peter Clausen wrote: >>> On 03/20/2012 12:33 PM, Rajeev Kumar wrote: >>>> +static const char *interface_mode_text[] = { "slave", "master"}; >>> >>> Master/slave mode should be configured using the set_dai_fmt callback. >>> >> You mean to say with the help of clock direction. I think you can do it >> in either way. >> By this, I am giving full control to user for the selection. > > Maybe I'm misunderstanding what this control does. But if it is about > putting the CODEC in master or slave mode, so whether it should generate the > frame- and bitclocks or if the other end of the DAI link should do it, then > this should be configured using set_dai_fmt. Making this runtime selectable > from userspace doesn't make much sense since both sides of the DAI link have > to agree on who is master and who is slave. If you just change one side the > link will just stop working. > Yes, This will put CODEC in master or slave mode. OK I will do it in set_dai_fmt. >>> [...] >>>> + >>>> +static int sta529_i2c_remove(struct i2c_client *client) >>> __devexit >>>> +{ >>>> + snd_soc_unregister_codec(&client->dev); >>>> + kfree(i2c_get_clientdata(client)); >>>> + return 0; >>>> +} >>> river"); >> >> This comment is not clear to me , please explain. > > Annotate the remove function with __devexit. Like this: > +static int __devexit sta529_i2c_remove(struct i2c_client *client) > Ok, Best Regards Rajeev > . >