From: Ryan Mallon <ryan@bluewatersys.com>
To: H Hartley Sweeten <hartleys@visionengravers.com>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
Mika Westerberg <mika.westerberg@iki.fi>,
"broonie@opensource.wolfsonmicro.com"
<broonie@opensource.wolfsonmicro.com>,
"martinwguy@gmail.com" <martinwguy@gmail.com>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"lrg@slimlogic.co.uk" <lrg@slimlogic.co.uk>
Subject: Re: [PATCH v3 2/3] ARM: ep93xx: add AC97 platform support
Date: Fri, 15 Oct 2010 10:57:47 +1300 [thread overview]
Message-ID: <4CB77CDB.6050908@bluewatersys.com> (raw)
In-Reply-To: <0D753D10438DA54287A00B02708426976450C42B0E@AUSP01VMBX24.collaborationhost.net>
On 10/15/2010 10:46 AM, H Hartley Sweeten wrote:
> On Thursday, October 14, 2010 7:49 AM, Mika Westerberg wrote:
>> +void __init ep93xx_register_ac97(void)
>> +{
>> + /*
>> + * Make sure that the AC97 pins are not used by I2S.
>> + */
>> + ep93xx_devcfg_clear_bits(EP93XX_SYSCON_DEVCFG_I2SONAC97);
>
> This is fine for now.
>
> Eventually some thought should go into a proper iomux to prevent
> loading drivers with conflicting pin requirements. Currently, depending
> on the configuration, this could break if a user should try to use the
> ac97 and i2s audio at the same time (I2SONAC97 mode). But, the same
> problem already exists if a user tries using spi and i2s audio (I2SONSSP
> mode).
I initially suggested this also, since we have acquire/release functions
for some other drivers, but I now think this is fine as is. It's highly
unlikely that a board is going to have both I2S and AC97 audio. We can
change this later if such a board shows up, no need to make the code
more complicated for hypothetical boards :-).
~Ryan
--
Bluewater Systems Ltd - ARM Technology Solution Centre
Ryan Mallon 5 Amuri Park, 404 Barbadoes St
ryan@bluewatersys.com PO Box 13 889, Christchurch 8013
http://www.bluewatersys.com New Zealand
Phone: +64 3 3779127 Freecall: Australia 1800 148 751
Fax: +64 3 3779135 USA 1800 261 2934
WARNING: multiple messages have this Message-ID (diff)
From: ryan@bluewatersys.com (Ryan Mallon)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 2/3] ARM: ep93xx: add AC97 platform support
Date: Fri, 15 Oct 2010 10:57:47 +1300 [thread overview]
Message-ID: <4CB77CDB.6050908@bluewatersys.com> (raw)
In-Reply-To: <0D753D10438DA54287A00B02708426976450C42B0E@AUSP01VMBX24.collaborationhost.net>
On 10/15/2010 10:46 AM, H Hartley Sweeten wrote:
> On Thursday, October 14, 2010 7:49 AM, Mika Westerberg wrote:
>> +void __init ep93xx_register_ac97(void)
>> +{
>> + /*
>> + * Make sure that the AC97 pins are not used by I2S.
>> + */
>> + ep93xx_devcfg_clear_bits(EP93XX_SYSCON_DEVCFG_I2SONAC97);
>
> This is fine for now.
>
> Eventually some thought should go into a proper iomux to prevent
> loading drivers with conflicting pin requirements. Currently, depending
> on the configuration, this could break if a user should try to use the
> ac97 and i2s audio at the same time (I2SONAC97 mode). But, the same
> problem already exists if a user tries using spi and i2s audio (I2SONSSP
> mode).
I initially suggested this also, since we have acquire/release functions
for some other drivers, but I now think this is fine as is. It's highly
unlikely that a board is going to have both I2S and AC97 audio. We can
change this later if such a board shows up, no need to make the code
more complicated for hypothetical boards :-).
~Ryan
--
Bluewater Systems Ltd - ARM Technology Solution Centre
Ryan Mallon 5 Amuri Park, 404 Barbadoes St
ryan at bluewatersys.com PO Box 13 889, Christchurch 8013
http://www.bluewatersys.com New Zealand
Phone: +64 3 3779127 Freecall: Australia 1800 148 751
Fax: +64 3 3779135 USA 1800 261 2934
next prev parent reply other threads:[~2010-10-14 21:57 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-14 14:49 [PATCH v3 0/3] ASoC AC97 audio support for ep93xx Mika Westerberg
2010-10-14 14:49 ` Mika Westerberg
2010-10-14 14:49 ` [PATCH v3 1/3] ASoC: add ep93xx AC97 audio driver Mika Westerberg
2010-10-14 14:49 ` Mika Westerberg
2010-10-14 14:49 ` [PATCH v3 2/3] ARM: ep93xx: add AC97 platform support Mika Westerberg
2010-10-14 14:49 ` Mika Westerberg
2010-10-14 19:56 ` Ryan Mallon
2010-10-14 19:56 ` Ryan Mallon
2010-10-14 21:46 ` H Hartley Sweeten
2010-10-14 21:46 ` H Hartley Sweeten
2010-10-14 21:57 ` Ryan Mallon [this message]
2010-10-14 21:57 ` Ryan Mallon
2010-10-14 22:07 ` H Hartley Sweeten
2010-10-14 22:07 ` H Hartley Sweeten
2010-10-14 14:49 ` [PATCH v3 3/3] ASoC: ep93xx: add Simplemachines Sim.One AC97 audio support Mika Westerberg
2010-10-14 14:49 ` Mika Westerberg
2010-10-15 9:57 ` [PATCH v3 0/3] ASoC AC97 audio support for ep93xx Liam Girdwood
2010-10-15 9:57 ` [alsa-devel] " Liam Girdwood
2010-10-15 10:39 ` Mark Brown
2010-10-15 10:39 ` 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=4CB77CDB.6050908@bluewatersys.com \
--to=ryan@bluewatersys.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=hartleys@visionengravers.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=lrg@slimlogic.co.uk \
--cc=martinwguy@gmail.com \
--cc=mika.westerberg@iki.fi \
/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.