Re: [alsa-devel] WM9712 Not Giving output
Dne Friday 01 of August 2008 19:59:44 Nitin Mahajan napsal(a):
HI!
--- On Fri, 1/8/08, Marek Vasut marek.vasut@gmail.com wrote:
From: Marek Vasut marek.vasut@gmail.com Subject: Re: [alsa-devel] WM9712 Not Giving output To: alsa-devel@alsa-project.org, nitinm76@yahoo.com Date: Friday, 1 August, 2008, 11:10 PM Dne Friday 01 of August 2008 19:27:24 Nitin Mahajan
napsal(a):
HI!
--- On Fri, 1/8/08, Mark Brown
broonie@opensource.wolfsonmicro.com wrote:
From: Mark Brown
broonie@opensource.wolfsonmicro.com
Subject: Re: [alsa-devel] WM9712 Not Giving
output
To: "Nitin Mahajan"
Cc: alsa-devel@alsa-project.org,
"Manuel" mano@roarinelk.homelinux.net
Date: Friday, 1 August, 2008, 9:32 PM On Fri, Aug 01, 2008 at 08:31:03AM -0700, Nitin
Mahajan
wrote:
I am using a WM9712 codec chip with the AC97
controller on AMD AU1250.
Linux kernel version 2.6.24.2.
On AC97 controller's side, I can see the
DMA
happening on the host
processor, interrupts also coming.
This suggests a mixer configuration problem.
On the mixer front, I did unmute and set the
vol to
max for PCM and
Headphone. I did not find any Master control
with this
chip. Isn't
there any master control with this chip?
No.
If Master is not there, logically are the enough for
playback?
amixer set 'PCM' 255 unmute amixer set 'Headphone' 255 unmute
Can some one please throw more light on the
Mixer
part, specific to
this chip.
What Mixer controls do I need to set with
what values
for playback and
capture respectively with this chip?
Check the configuration of the Left HP Mixer and
Right HP
Mixer PCM Playback switches. These should be enabled in
order to
play back via the headphone output.
While writing the reply , the hardware is not with me. But I wil check these tommorow.
If you still can't get audio output with that
please
send a copy of your mixer configuration - run the command
alsactl store -f mixer-config
to write a file 'mixer-config' with this information in it. Please also check your kernel log from when the driver
is loaded
and when you configure the mixer.
There is documentation of the audio paths
supported by the
chip in the
I saw the figure in the datasheet, its quite
explainatory, as to which
registers are involved in which path.
datasheet, available from:
http://www.wolfsonmicro.com/products/WM9712/
and you may find the audio route mappings in the
WM9712
driver useful to refer to - the 'audio_map' table in the
driver
which shows how the parts of the device are connected. The format is {
destination,
control, source }.
Thanks and regards
-Nitin
Send instant messages to your online friends
Alsa-devel mailing list Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Hi, try searching the mailing list for "[PATCH] wm9712 mono mixer". That may help you.
Interesting, do you mean that "Right HP Mixer" and "Left HP Mixer" should be "Right Mixer" and "Left Mixer" ?
thanks and regards
-Nitin
yea, and you should see alsa warning about it in kernel log as well.
Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Send instant messages to your online friends http://uk.messenger.yahoo.com
This message wasnt CCed to alsa-devel, re-adding.
--- On Fri, 1/8/08, Marek Vasut marek.vasut@gmail.com wrote:
From: Marek Vasut marek.vasut@gmail.com Subject: Re: [alsa-devel] WM9712 Not Giving output To: nitinm76@yahoo.com Cc: alsa-devel@alsa-project.org Date: Friday, 1 August, 2008, 11:53 PM Dne Friday 01 of August 2008 19:59:44 Nitin Mahajan napsal(a):
HI!
--- On Fri, 1/8/08, Marek Vasut
marek.vasut@gmail.com wrote:
From: Marek Vasut marek.vasut@gmail.com Subject: Re: [alsa-devel] WM9712 Not Giving
output
To: alsa-devel@alsa-project.org,
nitinm76@yahoo.com
Date: Friday, 1 August, 2008, 11:10 PM Dne Friday 01 of August 2008 19:27:24 Nitin
Mahajan
napsal(a):
HI!
--- On Fri, 1/8/08, Mark Brown
wrote:
From: Mark Brown
broonie@opensource.wolfsonmicro.com
Subject: Re: [alsa-devel] WM9712 Not
Giving
output
To: "Nitin Mahajan"
Cc: alsa-devel@alsa-project.org,
"Manuel"
Date: Friday, 1 August, 2008, 9:32 PM On Fri, Aug 01, 2008 at 08:31:03AM
-0700, Nitin
Mahajan
wrote:
I am using a WM9712 codec chip
with the AC97
controller on AMD AU1250.
Linux kernel version 2.6.24.2.
On AC97 controller's side, I
can see the
DMA
happening on the host
processor, interrupts also coming.
This suggests a mixer configuration
problem.
On the mixer front, I did unmute
and set the
vol to
max for PCM and
Headphone. I did not find any
Master control
with this
chip. Isn't
there any master control with this
chip?
No.
If Master is not there, logically are the
enough for
playback?
amixer set 'PCM' 255 unmute amixer set 'Headphone' 255 unmute
Can some one please throw more
light on the
Mixer
part, specific to
this chip.
What Mixer controls do I need to
set with
what values
for playback and
capture respectively with this
chip?
Check the configuration of the Left HP
Mixer and
Right HP
Mixer PCM Playback switches. These should be
enabled in
order to
play back via the headphone output.
While writing the reply , the hardware is
not with me.
But I wil check these tommorow.
If you still can't get audio output
with that
please
send a copy of your mixer configuration - run the command
alsactl store -f mixer-config
to write a file 'mixer-config'
with this
information in it. Please also check your kernel log from when
the driver
is loaded
and when you configure the mixer.
There is documentation of the audio
paths
supported by the
chip in the
I saw the figure in the datasheet, its
quite
explainatory, as to which
registers are involved in which path.
datasheet, available from:
http://www.wolfsonmicro.com/products/WM9712/
and you may find the audio route
mappings in the
WM9712
driver useful to refer to - the 'audio_map'
table in the
driver
which shows how the parts of the device are connected. The
format is {
destination,
control, source }.
Thanks and regards
-Nitin
Send instant messages to your online friends
Alsa-devel mailing list Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Hi, try searching the mailing list for "[PATCH]
wm9712
mono mixer". That may help you.
Interesting, do you mean that "Right HP
Mixer" and "Left HP Mixer" should
be "Right Mixer" and "Left Mixer"
?
thanks and regards
-Nitin
yea, and you should see alsa warning about it in kernel log as well.
Do you mean in dmesg? Unfortunately I don't have hardware with me now to test. I shall do it tommorow morning.
Alsa-devel mailing list Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Send instant messages to your online friends
This message wasnt CCed to alsa-devel, re-adding. _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Send instant messages to your online friends http://uk.messenger.yahoo.com
On Fri, Aug 01, 2008 at 11:26:36AM -0700, Nitin Mahajan wrote:
yea, and you should see alsa warning about it in kernel log as well.
Do you mean in dmesg? Unfortunately I don't have hardware with me now to test. I shall do it tommorow morning.
Yes, but you won't see that log message with the older kernel you are using unless you have also backported ASoC from the current kernel (but if you've done that I'd have expected you'd have backported a current version with the patch in question already applied).
-- On Sat, 2/8/08, Mark Brown broonie@opensource.wolfsonmicro.com wrote:
From: Mark Brown broonie@opensource.wolfsonmicro.com Subject: Re: [alsa-devel] WM9712 Not Giving output To: "Nitin Mahajan" nitinm76@yahoo.com Cc: "Marek Vasut" marek.vasut@gmail.com, alsa-devel@alsa-project.org Date: Saturday, 2 August, 2008, 12:07 AM On Fri, Aug 01, 2008 at 11:26:36AM -0700, Nitin Mahajan wrote:
yea, and you should see alsa warning about it in
kernel log
as well.
Do you mean in dmesg? Unfortunately I don't have hardware with me now to
test. I shall do it tommorow morning.
Yes, but you won't see that log message with the older kernel you are using unless you have also backported ASoC from the current kernel (but if you've done that I'd have expected you'd have backported a current version with the patch in question already applied).
I checked the mixer configuration.The registers 0x18h and 0x04h were mute at the time of initiating DMA for playback.
I did set both registers with 0x7fff. From mixer point of view, If I am using an headphone, are these registers enough? I am still not able to hear anything.
Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Send instant messages to your online friends http://uk.messenger.yahoo.com
On Sat, Aug 02, 2008 at 02:46:17AM -0700, Nitin Mahajan wrote:
I checked the mixer configuration.The registers 0x18h and 0x04h were mute at the time of initiating DMA for playback.
I did set both registers with 0x7fff. From mixer point of view, If I am using an headphone, are these registers enough? I am still not able to hear anything.
Please provide alsactl output as requested - any configuration should be done via the ALSA mixer rather than register writes. In the case of register 0x18 setting 0x7fff will set a gain of -34.5dB on each channel which may be too low, depending on your input.
HI!
--- On Mon, 4/8/08, Mark Brown broonie@opensource.wolfsonmicro.com wrote:
From: Mark Brown broonie@opensource.wolfsonmicro.com Subject: Re: [alsa-devel] WM9712 Not Giving output To: "Nitin Mahajan" nitinm76@yahoo.com Cc: alsa-devel@alsa-project.org Date: Monday, 4 August, 2008, 5:42 PM On Sat, Aug 02, 2008 at 02:46:17AM -0700, Nitin Mahajan wrote:
I checked the mixer configuration.The registers 0x18h
and 0x04h were mute at the time of initiating DMA for playback.
I did set both registers with 0x7fff. From mixer point
of view, If I am using an headphone, are these registers enough? I am still not able to hear anything.
Please provide alsactl output as requested - any configuration should be done via the ALSA mixer rather than register writes. In the case of register 0x18 setting 0x7fff will set a gain of -34.5dB on each channel which may be too low, depending on your input.
Here is the mixer-config file got through 'alsactl'. Could you please guide me which controls to set with what values using amixer, for playback through Headphone and Recording?
regards
-Nitin
Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Send instant messages to your online friends http://uk.messenger.yahoo.com
On Tue, Aug 05, 2008 at 08:06:06PM -0700, Nitin Mahajan wrote:
Here is the mixer-config file got through 'alsactl'. Could you please guide me which controls to set with what values using amixer, for playback through Headphone and Recording?
For playback try these:
control.4 { comment.access 'read write' comment.type BOOLEAN comment.count 1 iface MIXER name 'Headphone Playback Switch' value false }
This should be enabled.
control.8 { comment.access 'read write' comment.type BOOLEAN comment.count 1 iface MIXER name 'Headphone Playback ZC Switch' value false }
It's better to enable this but not essential - it avoids audio artifacts while doing volume updates during playback.
control.64 { comment.access 'read write' comment.type BOOLEAN comment.count 1 iface MIXER name 'Right Mixer PCM Playback Switch' value false } control.65 { comment.access 'read write' comment.type BOOLEAN comment.count 1 iface MIXER name 'Left Mixer PCM Playback Switch' value false }
These should be enabled.
If this still gives you trouble then please build with DAPM_DEBUG enabled in soc-dapm.c (or #define DEBUG at very the top of the file prior to the includes if using a very current version). This will cause ASoC to produce debug output when it starts playback which should show anything that needs to be enabled but isn't.
Please also make sure that you are using a driver with the patch that Marek identified earlier in the thread.
HI!
--- On Wed, 6/8/08, Mark Brown broonie@opensource.wolfsonmicro.com wrote:
From: Mark Brown broonie@opensource.wolfsonmicro.com Subject: Re: [alsa-devel] WM9712 Not Giving output To: "Nitin Mahajan" nitinm76@yahoo.com Cc: alsa-devel@alsa-project.org Date: Wednesday, 6 August, 2008, 2:56 PM On Tue, Aug 05, 2008 at 08:06:06PM -0700, Nitin Mahajan wrote:
Here is the mixer-config file got through
'alsactl'. Could you please guide me which controls to set with what values using amixer, for playback through Headphone and Recording?
For playback try these:
control.4 { comment.access 'read write' comment.type BOOLEAN comment.count 1 iface MIXER name 'Headphone Playback Switch' value false }
This should be enabled.
control.8 { comment.access 'read write' comment.type BOOLEAN comment.count 1 iface MIXER name 'Headphone Playback ZC Switch' value false }
It's better to enable this but not essential - it avoids audio artifacts while doing volume updates during playback.
control.64 { comment.access 'read write' comment.type BOOLEAN comment.count 1 iface MIXER name 'Right Mixer PCM Playback Switch' value false } control.65 { comment.access 'read write' comment.type BOOLEAN comment.count 1 iface MIXER name 'Left Mixer PCM Playback Switch' value false }
These should be enabled.
If this still gives you trouble then please build with DAPM_DEBUG enabled in soc-dapm.c (or #define DEBUG at very the top of the file prior to the includes if using a very current version). This will cause ASoC to produce debug output when it starts playback which should show anything that needs to be enabled but isn't.
Please also make sure that you are using a driver with the patch that Marek identified earlier in the thread.
Thanks I will try setting these for playback. Just for the Hardware verification I tried setting registers myself for the Mixer. I understand that finally thats not the right way. AS u suggested in earlier the gain was problem. I was making it as negative gain, which is as good as mute. I kept it default and playback worked for me.
I am not able to make the Mic recording work now. Apart from the mixer controls, I identified these registers to be programmed with following values, which again to seperate out the problem area, H/w or S/w.I am using single ended mono microphone on Left i.e Mic 1.
Ox24h 0x0000 0x26h 0x0000 0x0Eh 0x6000 0x5Ch 0x0000 0x0Ah 0x7000 0x1Ch 0x0f00 0x20h 0x0000
Also , If I take the Linux-2.6.26 kernel from mips, can you tell me how to get the patch from wolfson ASOC git so that I have all the latest ASOC and WM related code? I am not familiar with git :(.
Thanks in advance
regards
-Nitin
Get your new Email address! Grab the Email name you've always wanted before someone else does! http://mail.promotions.yahoo.com/newdomains/aa/
On Wed, Aug 06, 2008 at 03:04:07AM -0700, Nitin Mahajan wrote:
I am not able to make the Mic recording work now. Apart from the mixer controls, I identified these registers to be programmed with following values, which again to seperate out the problem area, H/w or S/w.I am using single ended mono microphone on Left i.e Mic 1.
Please work in terms of the ALSA controls - it is much easier to provide support when working through the exposed interfaces and direct register writes may be overwritten by the driver, causing additional confusion.
Also , If I take the Linux-2.6.26 kernel from mips, can you tell me how to get the patch from wolfson ASOC git so that I have all the latest ASOC and WM related code? I am not familiar with git :(.
To get the latest development code:
git clone git://opensource.wolfsonmicro.com/linux-2.6-asoc cd linux-2.6-asoc
You can generate a diff from a tag to the latest development branch like this:
git diff v2.6.26..origin/dev
(Linux releases are tagged in that format - 'git tag' will list the known tags) specifying directories lets you filter what's included so:
git diff v2.6.26..origin/dev sound include/sound
will only give you ALSA related changes.
participants (3)
-
Marek Vasut
-
Mark Brown
-
Nitin Mahajan