From mboxrd@z Thu Jan 1 00:00:00 1970 From: Liam Girdwood Subject: Re: Multiple asoc cards issue? Date: Fri, 19 Aug 2011 17:52:58 +0100 Message-ID: <4E4E94EA.9020003@ti.com> References: <7756B9A8AF32424A91D917E64BD63F68011D4F@IRSMSX101.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from devils.ext.ti.com (devils.ext.ti.com [198.47.26.153]) by alsa0.perex.cz (Postfix) with ESMTP id 91D76246CC for ; Fri, 19 Aug 2011 18:53:05 +0200 (CEST) In-Reply-To: <7756B9A8AF32424A91D917E64BD63F68011D4F@IRSMSX101.ger.corp.intel.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: "Le Gall, Louis" Cc: "Koul, Vinod" , "alsa-devel@alsa-project.org" , "Gaffie, FrancoisX" , "Bensaid, Selma" List-Id: alsa-devel@alsa-project.org On 19/08/11 17:34, Le Gall, Louis wrote: > Hello > > We are trying to add a new ASOC card in our build that already contains an ASOC card. > > We facing some issue when the second card is registered (calling snd_soc_register_card () ). > > We can see in the log when playing a sound on the first card that second card operations are called. > > In fact, the registration of second card overwrites the operations of the structure soc_pcm_ops of the first card (with the second card operations). > Looking at the soc-core.c code, this structure is static so that explains the overwrite. > > How can we register several ASOC cards on our platform in that case? Is it a bug or a limitation? What kernel version are you using here. This shouldn't be an issue with recent kernels. Liam > > Thanks, > Louis > > First card = First card registered during boot process > Second card = second card that is registred during the boot process. > > > --------------------------------------------------------------------- > Intel Corporation SAS (French simplified joint stock company) > Registered headquarters: "Les Montalets"- 2, rue de Paris, > 92196 Meudon Cedex, France > Registration Number: 302 456 199 R.C.S. NANTERRE > Capital: 4,572,000 Euros > > This e-mail and any attachments may contain confidential material for > the sole use of the intended recipient(s). Any review or distribution > by others is strictly prohibited. If you are not the intended > recipient, please contact the sender and delete all copies. > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@alsa-project.org > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel