From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Chanwoo Choi <cw00.choi@samsung.com>
Cc: linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
linux-samsung-soc <linux-samsung-soc@vger.kernel.org>,
alsa-devel@alsa-project.org, Kukjin Kim <kgene.kim@samsung.com>,
Ben Dooks <ben@simtec.co.uk>, Liam Girdwood <lrg@slimlogic.co.uk>,
Kyungmin Park <kyungmin.park@samsung.com>,
Joonyoung Shim <jy0922.shim@samsung.com>,
Myungjoo Ham <myungjoo.ham@samsung.com>
Subject: Re: [PATCH 1/2] ARM: S5PV210: Add audio support to Aquila
Date: Tue, 3 Aug 2010 09:59:29 +0100 [thread overview]
Message-ID: <20100803085929.GC25306@rakim.wolfsonmicro.main> (raw)
In-Reply-To: <4C527C11.5090409@samsung.com>
On Fri, Jul 30, 2010 at 04:15:29PM +0900, Chanwoo Choi wrote:
> > All these fixed voltage regulators seem a bit suspicous for a mobile
> > phone - I'd have expected that the supplies would all be being provided
> > by your PMIC except for things taken directly from the battery supply
> > (like the speakers tend to be, for example)? There's no problem with
> > the code itself, it just looks a bit odd.
> All these consumer supply of WM8994 codec connected the below regulator(VCC_1.8V) on
> a circuit diagram. "VCC_1.8V" regualtor is always enabled, because it is used to many devices.
> Then I haven't connected all these consumer supply of WM8994 codec to "VCC_1.8V" regulator.
> I will modify that the consumer supply would be provided by PMIC.
OK, good - the fact that the connection wasn't being made with the PMIC
was my main point here.
> >> + /* CODEC_XTAL_EN */
> >> + gpio = S5PV210_GPH3(2); /* XEINT_26 */
> >> + gpio_request(gpio, "CODEC_XTAL_EN");
> > Might be as well to provide some or all this stuff in your audio machine
> > driver?
> The Aquila board have a oscillator which provide main clock to
> WM8994 audio codec. The oscillator provide 24MHz clock to WM8994 audio codec
> (MCLK1 pin). I set gpio setting of "CODEC_XTAL_EN" to enable a oscillator.
I understand what the code does. My point is that it looks like it's
in the wrong place - it'd seem nicer (and to open up more optimisation
opportunties to manage the clock in the audio driver).
> >> + /* ADC_EN */
> >> + gpio = S5PV210_GPJ3(2);
> >> + gpio_request(gpio, "ADC_EN");
> >> + s3c_gpio_cfgpin(gpio, S3C_GPIO_OUTPUT);
> >> + gpio_direction_output(gpio, 1);
> > I'm not sure what this does?
> I explained below description about "ADC_EN" :
> "ADC_EN : This gpio enable the ADC device which is used to detect
> the kind of jack. (SND_JACK_HEADPHONE/HEADSET/MECHANICAL/AVOUT)
> According to the kind of jack, an electric current is changed.
> (Only used on Aquila board) "
> When inserting the jack to Aquila board, I used ADC driver so that, detecting
> the kind of jack(SND_JACK_HEADPHONE/HEADSET/MECHANICAL/AVOUT).
> I will separately make the another function to initialize ADC driver.
So you're using an external ADC to measure the current draw on micbias
as part of your jack sense. Again, this feels like something that ought
to be managed along with the rest of the audio code.
WARNING: multiple messages have this Message-ID (diff)
From: broonie@opensource.wolfsonmicro.com (Mark Brown)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] ARM: S5PV210: Add audio support to Aquila
Date: Tue, 3 Aug 2010 09:59:29 +0100 [thread overview]
Message-ID: <20100803085929.GC25306@rakim.wolfsonmicro.main> (raw)
In-Reply-To: <4C527C11.5090409@samsung.com>
On Fri, Jul 30, 2010 at 04:15:29PM +0900, Chanwoo Choi wrote:
> > All these fixed voltage regulators seem a bit suspicous for a mobile
> > phone - I'd have expected that the supplies would all be being provided
> > by your PMIC except for things taken directly from the battery supply
> > (like the speakers tend to be, for example)? There's no problem with
> > the code itself, it just looks a bit odd.
> All these consumer supply of WM8994 codec connected the below regulator(VCC_1.8V) on
> a circuit diagram. "VCC_1.8V" regualtor is always enabled, because it is used to many devices.
> Then I haven't connected all these consumer supply of WM8994 codec to "VCC_1.8V" regulator.
> I will modify that the consumer supply would be provided by PMIC.
OK, good - the fact that the connection wasn't being made with the PMIC
was my main point here.
> >> + /* CODEC_XTAL_EN */
> >> + gpio = S5PV210_GPH3(2); /* XEINT_26 */
> >> + gpio_request(gpio, "CODEC_XTAL_EN");
> > Might be as well to provide some or all this stuff in your audio machine
> > driver?
> The Aquila board have a oscillator which provide main clock to
> WM8994 audio codec. The oscillator provide 24MHz clock to WM8994 audio codec
> (MCLK1 pin). I set gpio setting of "CODEC_XTAL_EN" to enable a oscillator.
I understand what the code does. My point is that it looks like it's
in the wrong place - it'd seem nicer (and to open up more optimisation
opportunties to manage the clock in the audio driver).
> >> + /* ADC_EN */
> >> + gpio = S5PV210_GPJ3(2);
> >> + gpio_request(gpio, "ADC_EN");
> >> + s3c_gpio_cfgpin(gpio, S3C_GPIO_OUTPUT);
> >> + gpio_direction_output(gpio, 1);
> > I'm not sure what this does?
> I explained below description about "ADC_EN" :
> "ADC_EN : This gpio enable the ADC device which is used to detect
> the kind of jack. (SND_JACK_HEADPHONE/HEADSET/MECHANICAL/AVOUT)
> According to the kind of jack, an electric current is changed.
> (Only used on Aquila board) "
> When inserting the jack to Aquila board, I used ADC driver so that, detecting
> the kind of jack(SND_JACK_HEADPHONE/HEADSET/MECHANICAL/AVOUT).
> I will separately make the another function to initialize ADC driver.
So you're using an external ADC to measure the current draw on micbias
as part of your jack sense. Again, this feels like something that ought
to be managed along with the rest of the audio code.
next prev parent reply other threads:[~2010-08-03 8:59 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-28 3:04 [PATCH 1/2] ARM: S5PV210: Add audio support to Aquila Chanwoo Choi
2010-07-28 3:04 ` Chanwoo Choi
2010-07-29 17:38 ` Mark Brown
2010-07-29 17:38 ` Mark Brown
2010-07-30 7:15 ` Chanwoo Choi
2010-07-30 7:15 ` Chanwoo Choi
2010-07-30 7:34 ` MyungJoo Ham
2010-07-30 7:34 ` MyungJoo Ham
2010-08-03 8:59 ` Mark Brown [this message]
2010-08-03 8:59 ` Mark Brown
2010-08-04 6:16 ` [alsa-devel] " Chanwoo Choi
2010-08-04 6:16 ` Chanwoo Choi
2010-08-04 8:19 ` Mark Brown
2010-08-04 8:19 ` Mark Brown
2010-09-29 12:16 ` Kukjin Kim
2010-09-29 12:16 ` Kukjin Kim
2010-09-30 1:23 ` Chanwoo Choi
2010-09-30 1:23 ` Chanwoo Choi
2010-09-30 1:50 ` Kukjin Kim
2010-09-30 1:50 ` Kukjin Kim
2010-09-30 4:55 ` Chanwoo Choi
2010-09-30 4:55 ` Chanwoo Choi
2010-07-29 22:48 ` Ben Dooks
2010-07-29 22:48 ` Ben Dooks
2010-07-30 0:14 ` Kyungmin Park
2010-07-30 0:14 ` Kyungmin Park
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=20100803085929.GC25306@rakim.wolfsonmicro.main \
--to=broonie@opensource.wolfsonmicro.com \
--cc=alsa-devel@alsa-project.org \
--cc=ben@simtec.co.uk \
--cc=cw00.choi@samsung.com \
--cc=jy0922.shim@samsung.com \
--cc=kgene.kim@samsung.com \
--cc=kyungmin.park@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=lrg@slimlogic.co.uk \
--cc=myungjoo.ham@samsung.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.