All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lars-Peter Clausen <lars@metafoo.de>
To: Petr Kulhavy <petr@barix.com>
Cc: alsa-devel@alsa-project.org, Benoit Cousson <bcousson@baylibre.com>
Subject: Re: ASoC: Two codecs on a single CPU DAI
Date: Tue, 20 May 2014 15:46:12 +0200	[thread overview]
Message-ID: <537B5CA4.8010607@metafoo.de> (raw)
In-Reply-To: <537B53C9.6000900@barix.com>

On 05/20/2014 03:08 PM, Petr Kulhavy wrote:
> Hi,
>
> I'm writing a driver for a custom DaVinci board, which has two codecs
> (Wolfson and STA323 amplifier) connected to the same CPU DAI. The intention
> is that both codecs always play the same audio, only the volume/mixer
> settings are controlled separately. In addition to that the design is
> atypical by the fact, that the Wolfson is the clock master. So in order to
> play audio on the amplifier the Wolfson must be initialized as well.
>
> My question is: how to reflect this architecture in a SOC platform driver?
>
> As the first approach I tried to create two DAI links, one for each codec.
> That worked if audio was first played on the Wolfson link (clock master was
> initialized) and then on the second link, using the same sampling rate.
>
> But in fact I would need only one DAI link to both. So then I tried to make
> just one link to Wolfson and put the amplifier as an "aux_dev". However
> there I need to set hw_params and format for the amplifier codec DAI and
> those functions were not called. In fact there was no codec DAI created for
> the amplifier. I've also seen that one can define rtd_aux runtimes, but have
> nowhere found how to use it.
>
> Could someone please help me?

Hi,

Benoit is currently working on adding support for this to the ASoC 
framework, see this patch series: 
http://comments.gmane.org/gmane.linux.alsa.devel/122160

- Lars

  reply	other threads:[~2014-05-20 13:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-20 13:08 ASoC: Two codecs on a single CPU DAI Petr Kulhavy
2014-05-20 13:46 ` Lars-Peter Clausen [this message]
2014-05-21 11:29   ` Benoit Cousson
2014-05-22 13:49     ` Petr Kulhavy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=537B5CA4.8010607@metafoo.de \
    --to=lars@metafoo.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=bcousson@baylibre.com \
    --cc=petr@barix.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.