From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Mack Subject: Re: OMAP4 McBSP AC97 link Date: Thu, 27 Sep 2012 11:10:08 +0200 Message-ID: <506417F0.5060805@gmail.com> References: <50640768.7040204@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-bk0-f51.google.com (mail-bk0-f51.google.com [209.85.214.51]) by alsa0.perex.cz (Postfix) with ESMTP id 09EC026160C for ; Thu, 27 Sep 2012 11:10:24 +0200 (CEST) Received: by bkue19 with SMTP id e19so1089638bku.38 for ; Thu, 27 Sep 2012 02:10:23 -0700 (PDT) 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: Sebastian Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On 27.09.2012 10:58, Sebastian wrote: > Daniel Mack gmail.com> writes: > >> >> On 27.09.2012 09:44, Sebastian wrote: >>> Hi All, >>> >>> i have to support a 2nd Audio Codec with AC97 Interface on McBSP Port2. >>> Processor: OMAP4460 >>> >>> If any one have any idea on how to go about this. >>> Please let me know. >> >> If you need to support a second codec on a dedicated bus, all you have >> to do is set up a new snd_soc_dai_link. Read the documentation in >> Documentation/sound/alsa/soc/ and see many of the good example in the >> mainline kernel tree. >> >> If your goal is to support a second codec in parallel to another one, >> dynamix PCM (DPCM) is what you want to have a look at. It's there in the >> kernel since 3.5, but AFAIK there's currently no user of it that can >> serve as an example. >> >> HTH, >> Daniel >> >> > > Hi Daniel, > > my Board has 1x TWL6040(PDM/I2C) and 1x WM9715(AC97/MCBSP) so to independent > interfaces. I would like to use both Codecs simultaneously. So it might be > sufficient to create a new new snd_soc_dai_link? If the codecs are wired that way, you should have two dai links. The topology that you build with ASoC whould match the layout of the hardware. If you then want to use them simultaneously, you have to do that from userspace, feeding the stream to both PCM interfaces. But that's of course only possible if the Codec clocks are synced. Daniel