WM9712 Not Giving output
A message that is not in the archive (sent off-list or not yet received): [email protected]
Dne Friday 01 of August 2008 19:59:44 Nitin Mahajan napsal(a):
Quoted 178 lines
HI!
Quoted 168 lines · Marek Vasut
From: Marek Vasut <[email protected]>
Subject: Re: [alsa-devel] WM9712 Not Giving output
To: [email protected], [email protected]
Date: Friday, 1 August, 2008, 11:10 PM
Dne Friday 01 of August 2008 19:27:24 Nitin Mahajannapsal(a):
Quoted 3 lines
HI!
--- On Fri, 1/8/08, Mark Brown
Quoted 1 line · <[email protected]> wrote:
Quoted 1 line
From: Mark Brown
Quoted 1 line
Quoted 1 line
Subject: Re: [alsa-devel] WM9712 Not Giving
output
Quoted 1 line
Quoted 1 line
To: "Nitin Mahajan"
Quoted 1 line
Quoted 1 line
"Manuel" <[email protected]>
Quoted 2 lines
Quoted 2 lines
Date: Friday, 1 August, 2008, 9:32 PM
On Fri, Aug 01, 2008 at 08:31:03AM -0700, NitinMahajan
Quoted 8 lines
Quoted 8 lines
Quoted 1 line · wrote:
I am using a WM9712 codec chip with the AC97
controller on AMD AU1250.
Quoted 3 lines
Linux kernel version 2.6.24.2.
On AC97 controller's side, I can see the
DMA
Quoted 7 lines
Quoted 7 lines
happening on the host
Quoted 1 line
processor, interrupts also coming.
This suggests a mixer configuration problem.
Quoted 1 line
On the mixer front, I did unmute and set the
vol to
Quoted 3 lines
Quoted 3 lines
max for PCM and
Quoted 1 line
Headphone. I did not find any Master control
with this
Quoted 7 lines
Quoted 5 lines
chip. Isn't
Quoted 1 line
there any master control with this chip?
No.
If Master is not there, logically are the enough for
playback?
Quoted 4 lines
amixer set 'PCM' 255 unmute
amixer set 'Headphone' 255 unmuteQuoted 1 line
Quoted 1 line
Can some one please throw more light on the
Mixer
Quoted 5 lines
Quoted 5 lines
part, specific to
Quoted 3 lines
this chip.
What Mixer controls do I need to set with
what values
Quoted 5 lines
Quoted 5 lines
for playback and
Quoted 1 line
capture respectively with this chip?
Check the configuration of the Left HP Mixer and
Right HP
Quoted 2 lines
Quoted 2 lines
Mixer PCM
Playback switches. These should be enabled inorder to
Quoted 7 lines
Quoted 2 lines
play back via
the headphone output.While writing the reply , the hardware is not with me. But I wil check these tommorow.
Quoted 1 line
If you still can't get audio output with that
please
Quoted 8 lines
Quoted 8 lines
send a copy of your
mixer configuration - run the commandalsactl store -f mixer-config
to write a file 'mixer-config' with this
information in it. Please
also check your kernel log from when the driveris loaded
Quoted 4 lines
Quoted 4 lines
and when you
configure the mixer.There is documentation of the audio paths
supported by the
Quoted 3 lines
Quoted 1 line
chip in the
I saw the figure in the datasheet, its quite
explainatory, as to which
Quoted 8 lines
registers are involved in which path.
Quoted 6 lines
datasheet, available from:
http://www.wolfsonmicro.com/products/WM9712/and you may find the audio route mappings in the
WM9712
Quoted 2 lines
Quoted 2 lines
driver useful to
refer to - the 'audio_map' table in thedriver
Quoted 2 lines
Quoted 2 lines
which shows how the parts
of the device are connected. The format is {destination,
Quoted 8 lines
Quoted 2 lines
control,
source }.Thanks and regards
-Nitin
Send instant messages to your online friends
Quoted 3 lines
_______________________________________________
Alsa-devel mailing list
[email protected]Quoted 6 lines
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Hi,
try searching the mailing list for "[PATCH] wm9712 mono mixer". That may help
you.
Quoted 6 lines
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.
Quoted 7 lines
Quoted 5 lines
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-develSend instant messages to your online friends http://uk.messenger.yahoo.com
This message wasnt CCed to alsa-devel, re-adding.
Quoted 221 lines · Marek Vasut
From: Marek Vasut <[email protected]>
Subject: Re: [alsa-devel] WM9712 Not Giving output
To: [email protected]
Cc: [email protected]
Date: Friday, 1 August, 2008, 11:53 PM
Dne Friday 01 of August 2008 19:59:44 Nitin Mahajan napsal(a):Quoted 3 lines
HI!
--- On Fri, 1/8/08, Marek Vasut
Quoted 2 lines · <[email protected]> wrote:
Quoted 2 lines
From: Marek Vasut <[email protected]>
Subject: Re: [alsa-devel] WM9712 Not Givingoutput
Quoted 1 line
Quoted 1 line
To: [email protected],
Quoted 2 lines
Quoted 2 lines
Date: Friday, 1 August, 2008, 11:10 PM
Dne Friday 01 of August 2008 19:27:24 NitinMahajan
Quoted 7 lines
Quoted 7 lines
napsal(a):
Quoted 3 lines
HI!
--- On Fri, 1/8/08, Mark Brown
Quoted 5 lines · wrote:
Quoted 5 lines
Quoted 1 line
Quoted 1 line
From: Mark Brown
Quoted 1 line
Quoted 1 line
Subject: Re: [alsa-devel] WM9712 Not
Giving
Quoted 10 lines
Quoted 10 lines
output
Quoted 1 line
Quoted 1 line
To: "Nitin Mahajan"
Quoted 1 line
Quoted 1 line
"Manuel"
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Date: Friday, 1 August, 2008, 9:32 PM On Fri, Aug 01, 2008 at 08:31:03AM
-0700, Nitin
Quoted 5 lines
Quoted 5 lines
Mahajan
Quoted 2 lines
Quoted 2 lines
Quoted 1 line · wrote:
I am using a WM9712 codec chip
with the AC97
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
controller on AMD AU1250.
Quoted 3 lines
Linux kernel version 2.6.24.2.
On AC97 controller's side, I
can see the
Quoted 8 lines
Quoted 8 lines
DMA
Quoted 5 lines
Quoted 5 lines
happening on the host
Quoted 1 line
processor, interrupts also coming.
This suggests a mixer configuration
problem.
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
On the mixer front, I did unmute
and set the
Quoted 6 lines
Quoted 6 lines
vol to
Quoted 3 lines
Quoted 3 lines
max for PCM and
Quoted 1 line
Headphone. I did not find any
Master control
Quoted 6 lines
Quoted 6 lines
with this
Quoted 3 lines
Quoted 3 lines
chip. Isn't
Quoted 1 line
there any master control with this
chip?
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
No.
If Master is not there, logically are the
enough for
Quoted 7 lines
Quoted 7 lines
playback?
Quoted 4 lines
amixer set 'PCM' 255 unmute
amixer set 'Headphone' 255 unmuteQuoted 1 line
Quoted 1 line
Can some one please throw more
light on the
Quoted 8 lines
Quoted 8 lines
Mixer
Quoted 5 lines
Quoted 5 lines
part, specific to
Quoted 3 lines
this chip.
What Mixer controls do I need to
set with
Quoted 6 lines
Quoted 6 lines
what values
Quoted 3 lines
Quoted 3 lines
for playback and
Quoted 1 line
capture respectively with this
chip?
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Check the configuration of the Left HP
Mixer and
Quoted 5 lines
Quoted 5 lines
Right HP
Quoted 2 lines
Quoted 2 lines
Mixer PCM
Playback switches. These should beenabled in
Quoted 7 lines
Quoted 7 lines
order to
Quoted 4 lines
Quoted 2 lines
play back via
the headphone output.While writing the reply , the hardware is
not with me.
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
But I wil check these tommorow.
Quoted 1 line
If you still can't get audio output
with that
Quoted 9 lines
Quoted 9 lines
please
Quoted 6 lines
Quoted 6 lines
send a copy of your
mixer configuration - run the commandalsactl store -f mixer-config
to write a file 'mixer-config'
with this
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
information in it. Please
also check your kernel log from whenthe driver
Quoted 7 lines
Quoted 7 lines
is loaded
Quoted 4 lines
Quoted 4 lines
and when you
configure the mixer.There is documentation of the audio
paths
Quoted 6 lines
Quoted 6 lines
supported by the
Quoted 3 lines
Quoted 1 line
chip in the
I saw the figure in the datasheet, its
quite
Quoted 8 lines
Quoted 8 lines
explainatory, as to which
Quoted 5 lines
registers are involved in which path.
Quoted 3 lines
datasheet, available from:
http://www.wolfsonmicro.com/products/WM9712/Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
and you may find the audio route
mappings in the
Quoted 5 lines
Quoted 5 lines
WM9712
Quoted 2 lines
Quoted 2 lines
driver useful to
refer to - the 'audio_map'table in the
Quoted 5 lines
Quoted 5 lines
driver
Quoted 2 lines
Quoted 2 lines
which shows how the parts
of the device are connected. Theformat is {
Quoted 8 lines
Quoted 8 lines
destination,
Quoted 5 lines
Quoted 2 lines
control,
source }.Thanks and regards
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
-Nitin
Send instant messages to your online friends
Quoted 1 line
_______________________________________________
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
Alsa-devel mailing list
[email protected]http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Quoted 3 lines
Quoted 3 lines
Hi,
try searching the mailing list for "[PATCH]wm9712
Quoted 4 lines
Quoted 2 lines
mono mixer". That may help
you.Interesting, do you mean that "Right HP
Mixer" and "Left HP Mixer" should
Quoted 1 line
be "Right Mixer" and "Left Mixer"
Quoted 8 lines
?
Quoted 4 lines
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.
Quoted 7 lines
Quoted 5 lines
Quoted 5 lines
_______________________________________________
Alsa-devel mailing list
[email protected]http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Quoted 1 line
Quoted 8 lines
Quoted 1 line
Send instant messages to your online friends
This message wasnt CCed to alsa-devel, re-adding.
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Send instant messages to your online friends http://uk.messenger.yahoo.com
Quoted 5 lines · Nitin Mahajan
Quoted 2 lines
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).
Quoted 16 lines · Mark Brown
From: Mark Brown <[email protected]>
Subject: Re: [alsa-devel] WM9712 Not Giving output
To: "Nitin Mahajan" <[email protected]>
Cc: "Marek Vasut" <[email protected]>, [email protected]
Date: Saturday, 2 August, 2008, 12:07 AMQuoted 1 line · Nitin Mahajan
Quoted 1 line
yea, and you should see alsa warning about it in
kernel log
Quoted 4 lines
Quoted 1 line
as well.
Do you mean in dmesg?
Unfortunately I don't have hardware with me now totest. I shall do it tommorow morning.
Quoted 7 lines
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.
Quoted 4 lines
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Send instant messages to your online friends http://uk.messenger.yahoo.com
Quoted 3 lines · Nitin Mahajan
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!
Quoted 16 lines · Mark Brown
From: Mark Brown <[email protected]>
Subject: Re: [alsa-devel] WM9712 Not Giving output
To: "Nitin Mahajan" <[email protected]>
Cc: [email protected]
Date: Monday, 4 August, 2008, 5:42 PMQuoted 1 line · Nitin Mahajan
I checked the mixer configuration.The registers 0x18h
and 0x04h were mute at the time of initiating DMA for playback.
Quoted 1 line
I did set both registers with
0x7fff. From mixer pointof view, If I am using an headphone, are these registers enough? I am still not able to hear anything.
Quoted 7 lines
Please provide alsactl output as requested - any configuration should be
done via the ALSA mixer rather than register writes. In the case of
register0x18setting0x7fffwill 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
Quoted 4 lines
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Send instant messages to your online friends http://uk.messenger.yahoo.com
state.AC97 {
control.1 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 31'
iface MIXER
name 'Speaker Playback Volume'
value.0 31
value.1 31
}
control.2 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Speaker Playback Switch'
value false
}
control.3 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 31'
iface MIXER
name 'Headphone Playback Volume'
value.0 31
value.1 31
}
control.4 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Headphone Playback Switch'
value false
}
control.5 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 31'
iface MIXER
name 'PCM Playback Volume'
value.0 23
value.1 23
}
control.6 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Speaker Playback ZC Switch'
value false
}
control.7 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Speaker Playback Invert Switch'
value false
}
control.8 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Headphone Playback ZC Switch'
value false
}
control.9 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Mono Playback ZC Switch'
value false
}
control.10 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 31'
iface MIXER
name 'Mono Playback Volume'
value 0
}
control.11 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 15'
iface MIXER
name 'ALC Target Volume'
value 11
}
control.12 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 15'
iface MIXER
name 'ALC Hold Time'
value 0
}
control.13 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 15'
iface MIXER
name 'ALC Decay Time'
value 3
}
control.14 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 15'
iface MIXER
name 'ALC Attack Time'
value 2
}
control.15 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 1
comment.item.0 None
comment.item.1 Left
comment.item.2 Right
comment.item.3 Stereo
iface MIXER
name 'ALC Function'
value None
}
control.16 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 7'
iface MIXER
name 'ALC Max Volume'
value 7
}
control.17 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 3'
iface MIXER
name 'ALC ZC Timeout'
value 0
}
control.18 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'ALC ZC Switch'
value false
}
control.19 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'ALC NG Switch'
value false
}
control.20 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 1
comment.item.0 'Constant Gain'
comment.item.1 Mute
iface MIXER
name 'ALC NG Type'
value 'Constant Gain'
}
control.21 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 31'
iface MIXER
name 'ALC NG Threshold'
value 31
}
control.22 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 7'
iface MIXER
name 'Mic Headphone Volume'
value 4
}
control.23 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 7'
iface MIXER
name 'ALC Headphone Volume'
value 5
}
control.24 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Out3 Switch'
value false
}
control.25 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Out3 ZC Switch'
value true
}
control.26 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 31'
iface MIXER
name 'Out3 Volume'
value 31
}
control.27 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 7'
iface MIXER
name 'PCBeep Bypass Headphone Volume'
value 5
}
control.28 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 7'
iface MIXER
name 'PCBeep Bypass Speaker Volume'
value 5
}
control.29 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 7'
iface MIXER
name 'PCBeep Bypass Phone Volume'
value 5
}
control.30 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 7'
iface MIXER
name 'Aux Playback Headphone Volume'
value 5
}
control.31 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 7'
iface MIXER
name 'Aux Playback Speaker Volume'
value 5
}
control.32 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 7'
iface MIXER
name 'Aux Playback Phone Volume'
value 5
}
control.33 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 15'
iface MIXER
name 'Phone Volume'
value 8
}
control.34 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 31'
iface MIXER
name 'Line Capture Volume'
value.0 23
value.1 23
}
control.35 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Capture 20dB Boost Switch'
value false
}
control.36 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Capture to Phone 20dB Boost Switch'
value true
}
control.37 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name '3D Upper Cut-off Switch'
value true
}
control.38 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name '3D Lower Cut-off Switch'
value true
}
control.39 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 15'
iface MIXER
name '3D Playback Volume'
value 0
}
control.40 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 1
comment.item.0 'Linear Control'
comment.item.1 'Adaptive Boost'
iface MIXER
name 'Bass Control'
value 'Linear Control'
}
control.41 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Bass Cut-off Switch'
value true
}
control.42 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Tone Cut-off Switch'
value true
}
control.43 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Playback Attenuate (-6dB) Switch'
value false
}
control.44 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 15'
iface MIXER
name 'Bass Volume'
value 15
}
control.45 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 15'
iface MIXER
name 'Treble Volume'
value 15
}
control.46 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Capture ADC Switch'
value false
}
control.47 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 2
comment.item.0 '+1.5dB Steps'
comment.item.1 '+0.75dB Steps'
iface MIXER
name 'Capture Volume Steps'
value.0 '+1.5dB Steps'
value.1 '+1.5dB Steps'
}
control.48 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 63'
iface MIXER
name 'Capture Volume'
value.0 63
value.1 63
}
control.49 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Capture ZC Switch'
value false
}
control.50 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 31'
iface MIXER
name 'Mic 1 Volume'
value 23
}
control.51 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 31'
iface MIXER
name 'Mic 2 Volume'
value 23
}
control.52 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Mic 20dB Boost Switch'
value false
}
control.53 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Speaker Mixer PCBeep Bypass Swi'
value false
}
control.54 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Speaker Mixer Aux Playback Swit'
value false
}
control.55 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Speaker Mixer Phone Bypass Swit'
value false
}
control.56 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Speaker Mixer Line Bypass Switc'
value false
}
control.57 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Speaker Mixer PCM Playback Swit'
value false
}
control.58 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Phone Mixer PCBeep Bypass Switc'
value false
}
control.59 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Phone Mixer Aux Playback Switch'
value false
}
control.60 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Phone Mixer Line Bypass Switch'
value false
}
control.61 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Phone Mixer PCM Playback Switch'
value false
}
control.62 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Phone Mixer Mic 1 Sidetone Swit'
value false
}
control.63 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Phone Mixer Mic 2 Sidetone Swit'
value false
}
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
}
control.66 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 1
comment.item.0 Mic
comment.item.1 Line
iface MIXER
name 'Differential Source'
value Mic
}
control.67 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 1
comment.item.0 'Mic 1'
comment.item.1 Differential
comment.item.2 'Mic 2'
comment.item.3 Stereo
iface MIXER
name 'Mic Select Source'
value 'Mic 1'
}
control.68 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 1
comment.item.0 Mic
comment.item.1 NC
comment.item.2 NC
comment.item.3 'Speaker Mixer'
comment.item.4 Line
comment.item.5 'Headphone Mixer'
comment.item.6 'Phone Mixer'
comment.item.7 Phone
iface MIXER
name 'Right Capture Select'
value Mic
}
control.69 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 1
comment.item.0 Mic
comment.item.1 NC
comment.item.2 NC
comment.item.3 'Speaker Mixer'
comment.item.4 Line
comment.item.5 'Headphone Mixer'
comment.item.6 'Phone Mixer'
comment.item.7 Phone
iface MIXER
name 'Left Capture Select'
value Mic
}
control.70 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 1
comment.item.0 Stereo
comment.item.1 Left
comment.item.2 Right
comment.item.3 Mute
iface MIXER
name 'Capture Phone Mux'
value Mute
}
control.71 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 1
comment.item.0 'Speaker Mix'
comment.item.1 'Headphone Mix'
iface MIXER
name 'Speaker Mux'
value 'Speaker Mix'
}
control.72 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 1
comment.item.0 Left
comment.item.1 VREF
comment.item.2 'Left + Right'
comment.item.3 Mono
iface MIXER
name 'Out3 Mux'
value Left
}
control.73 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 1
comment.item.0 Stereo
comment.item.1 Left
comment.item.2 Right
comment.item.3 None
iface MIXER
name 'ALC Sidetone Mux'
value None
}
}_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Quoted 1 line · Nitin Mahajan
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:
Quoted 8 lines
control.4 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Headphone Playback Switch'
value false
}This should be enabled.
Quoted 8 lines
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.
Quoted 8 lines
control.64 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Right Mixer PCM Playback Switch'
value false
}Quoted 8 lines
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!
Quoted 68 lines · Mark Brown
From: Mark Brown <[email protected]>
Subject: Re: [alsa-devel] WM9712 Not Giving output
To: "Nitin Mahajan" <[email protected]>
Cc: [email protected]
Date: Wednesday, 6 August, 2008, 2:56 PMQuoted 1 line · Nitin Mahajan
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:
Quoted 8 lines
control.4 { comment.access 'read write' comment.type BOOLEAN comment.count 1 iface MIXER name 'Headphone Playback Switch' value false }This should be enabled.
Quoted 8 lines
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.Quoted 8 lines
control.64 { comment.access 'read write' comment.type BOOLEAN comment.count 1 iface MIXER name 'Right Mixer PCM Playback Switch' value false }Quoted 8 lines
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 insoc-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.
Quoted 3 lines
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/
Quoted 1 line · Nitin Mahajan
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.
Quoted 2 lines
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.