From: Patrick Lai <plai@codeaurora.org>
To: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Cc: 'alsa-devel' <alsa-devel@alsa-project.org>,
'Mark Brown' <broonie@opensource.wolfsonmicro.com>,
'Liam Girdwood' <lrg@ti.com>
Subject: Re: ASoC: Dynamic CODEC DAI
Date: Mon, 28 Nov 2011 22:14:31 -0800 [thread overview]
Message-ID: <4ED47847.7020206@codeaurora.org> (raw)
In-Reply-To: <000001ccae35$0122cf60$03686e20$@bossart@linux.intel.com>
On 11/28/2011 5:19 PM, Pierre-Louis Bossart wrote:
>> The CODEC which I am working on transports digital audio through
>> SLIMBUS instead of I2S. The concept of CODEC DAI does not apply too
>> well with SLIMBUS architecture as CODEC DAIs are typically defined base
>> on a set of I2S digital audio interface(bit clock, world select, sd
>> lines). On the CODEC, there are 10 digital capture ports. They can be
>> independently configured as mono channels or can be run-time grouped
>> together to function like multi-channel CODEC DAIs. On top of that,
>> only some ports out of 10 ports can accept all analog mic inputs or
>> digital mic inputs. Hence, even though the CODEC satisfies the
>> concurrent use cases it was designed for, software would have to be
>> articulate on grouping the ports in order to utilize all ports. So, I
>> cannot simply code up CODEC DAI definitions in the CODEC driver for a
>> particular machine. For now, I am looking for compile time grouping of
>> these ports as use cases are known at the time machine is designed.
>
> I may be reaching summits of cluelessness here, but isn't the logical
> grouping/shuffling of channels needed on the cpu/host side only, possibly at
> the machine-driver level?
This is exactly what I am planning to do. Have the machine driver
handles the grouping. However, DAI link is consisted of one CODEC dai,
one CPU DAI, and platform driver. Unlike I2s which number of channels
per DAI is fixed, I can divide 10 available ports to several groups.
Each group belongs to different DAI links so ports within same group
form x number of channels stream and feed into CPU. However, how many
ports per group and which ports to use is unknown to CODEC driver and
would have to be decided by machine driver. . That's why I need to
propose the design on ASoc framework.
At the codec level you should only need to worry
> about which channel/port goes to what output, and that would be similar to
> TDM/AC97. I don't understand why all this should be part of a codec driver.
Please excuse my lack of understanding about AC97. There is a codec
driver /sound/soc/codec/ac97.c. However, only one DAI is defined and
supports both playback/capture with 2 as max channels. I don't see how
static CODEC DAI definition is going to satisfy my requirements. I am
still bounded to DAI link structure definition which takes only one
CODEC DAI. In this case with ac97.c, I am still limited to work with
pre-defined CODEC DAI in ac97.c Is there an example for grouping ac97
channels?
> -Pierre
>
>
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
--
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
next prev parent reply other threads:[~2011-11-29 6:14 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-29 0:49 ASoC: Dynamic CODEC DAI Patrick Lai
2011-11-29 0:58 ` Patrick Lai
2011-11-29 1:19 ` Pierre-Louis Bossart
[not found] ` <000001ccae35$0122cf60$03686e20$@bossart@linux.intel.com>
2011-11-29 6:14 ` Patrick Lai [this message]
2011-11-29 21:20 ` Pierre-Louis Bossart
2011-11-29 13:49 ` Mark Brown
2011-12-02 2:56 ` Patrick Lai
2011-12-02 10:11 ` Liam Girdwood
2011-12-05 7:22 ` Patrick Lai
2011-12-05 11:49 ` Mark Brown
2011-12-02 11:45 ` Mark Brown
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=4ED47847.7020206@codeaurora.org \
--to=plai@codeaurora.org \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=lrg@ti.com \
--cc=pierre-louis.bossart@linux.intel.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.