From: Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
To: Fabio Estevam <festevam-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
Marcel Ziswiler <marcel-mitwqZ+T+m9Wk0Htik3J/w@public.gmane.org>
Cc: "alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org"
<alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org>,
Russell King <linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org>,
"devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org"
<linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>,
linux-kernel
<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
stefan-XLVq0VzYD2Y@public.gmane.org
Subject: Re: [PATCH 1/3] ASoC: tegra: add tegra sgtl5000 machine driver
Date: Wed, 10 Sep 2014 11:01:32 -0600 [thread overview]
Message-ID: <541083EC.7080803@wwwdotorg.org> (raw)
In-Reply-To: <CAOMZO5BYGwHGSeHeaQxEO=BUBGbno9P29et582SDzmwmfVioZA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On 09/09/2014 12:00 PM, Fabio Estevam wrote:
> On Tue, Sep 9, 2014 at 12:28 PM, Marcel Ziswiler <marcel-mitwqZ+T+m9Wk0Htik3J/w@public.gmane.org> wrote:
>> This binding and driver describe/support playback to headphones, and
>> capture from line-in and microphone.
>>
>> This driver is useful for the Toradex Apalis T30 and Colibri T30 modules.
>>
>> Signed-off-by: Marcel Ziswiler <marcel-mitwqZ+T+m9Wk0Htik3J/w@public.gmane.org>
>> ---
>> .../bindings/sound/nvidia,tegra-audio-sgtl5000.txt | 45 +++++
>> sound/soc/tegra/Kconfig | 10 +
>> sound/soc/tegra/Makefile | 2 +
>> sound/soc/tegra/tegra_sgtl5000.c | 216 +++++++++++++++++++++
>
> What about using the simple-audio-card binding instead of adding the
> tegra_sgtl5000 machine driver?
>
> An example of simple-audio-card used with sgtl5000 can be found here:
>
> http://www.spinics.net/lists/devicetree/msg44466.html
I don't think that will work; the Tegra audio complex requires some
clock management that doesn't immediately seem to fit into the
simple-audio-card concept.
I had intended to refactor and collapse all the Tegra DT audio bindings
(and driver code) into a single instance so we didn't need to keep
adding more and more. However, I unfortunately never got around to that
and probably won't in the future either. Basically, the binding and code
would end up essentially identical to any of the current Tegra drivers
(or the union of them), with a few tweaks such as only creating e.g. a
headphone jack if a property in DT said to, and moving the sampling
frequency -> CODEC MCLK table out of the driver into a table in DT. I
think with those things parameterized in DT, we could get away with a
single "nvidia,tegra-audio-simple" binding and driver. Such a new
binding could be based on simple-audio-card with extensions though.
next prev parent reply other threads:[~2014-09-10 17:01 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-09 15:28 [PATCH 0/3] ASoC/ARM: tegra: apalis/colibri t30: sgtl5000 audio Marcel Ziswiler
[not found] ` <cover.1410276224.git.marcel-mitwqZ+T+m9Wk0Htik3J/w@public.gmane.org>
2014-09-09 15:28 ` [PATCH 1/3] ASoC: tegra: add tegra sgtl5000 machine driver Marcel Ziswiler
2014-09-09 18:00 ` Fabio Estevam
[not found] ` <CAOMZO5BYGwHGSeHeaQxEO=BUBGbno9P29et582SDzmwmfVioZA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-09-10 17:01 ` Stephen Warren [this message]
2014-09-10 20:52 ` Marcel Ziswiler
2014-09-10 20:46 ` Marcel Ziswiler
[not found] ` <f90791ebb1799a4aa62dd6b527885ddadae3c058.1410276224.git.marcel-mitwqZ+T+m9Wk0Htik3J/w@public.gmane.org>
2014-09-10 17:05 ` Stephen Warren
2014-09-09 15:28 ` [PATCH 2/3] ARM: tegra: apalis/colibri t30: integrate audio support Marcel Ziswiler
2014-09-10 17:07 ` Stephen Warren
2014-09-09 15:28 ` [PATCH 3/3] ARM: tegra: enable sgtl5000 audio Marcel Ziswiler
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=541083EC.7080803@wwwdotorg.org \
--to=swarren-3lzwwm7+weoh9zmkesr00q@public.gmane.org \
--cc=alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=festevam-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org \
--cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=marcel-mitwqZ+T+m9Wk0Htik3J/w@public.gmane.org \
--cc=stefan-XLVq0VzYD2Y@public.gmane.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).