maestro3 & es1988: mic range too low
Hi,
I'm having mic problems with snd_maestro3 and es1988 allegro hw. The laptop is HP OmniBook Xe3. The mic is way too silent (unusable) even with 20db boost option on. I found this seems to have been really common problem, but only one came with a fix [1] to the problem, enabling one more bit to volume control. Could someone please help me apply that fix to current alsa?
I tried compiling 2.6.26.2 kernel and made the first change of the patch from mail [1] attachement [2]. No change. The second part of patch I did not find anymore from the code. There are similar parts in ac97_patch.c. Any hint what should be added there?
The original patched code is somewhat outdated compared to modern one... But the reasoning for the original patch sounds reasonable. The mic volume is tunable, only at the very low range. I recall the laptop came with Win98, and there was no problem then with the sound -> not a HW problem. I have never got this laptop mic working with linux, so this is not anything that broke recently. I see there is check_volume_resolution function which tries to guess some of the register ranges, but maybe it get's it wrong with this HW.
I tried with external headset, the behavior is just the same. The headset is working fine with IBM T41, so not due the mic itself.
Any help would be preciated, thanks,
ikke
[1] http://thread.gmane.org/gmane.linux.alsa.devel/2025
[2] http://cache.gmane.org//gmane/linux/alsa/devel/2025-001.bin
Other posts related, with no solutions:
http://article.gmane.org/gmane.linux.alsa.user/9802
http://article.gmane.org/gmane.linux.alsa.user/15260
http://article.gmane.org/gmane.linux.alsa.user/9663
http://article.gmane.org/gmane.linux.alsa.devel/27195
HW is HP Omnibook Xe3,
00:08.0 Multimedia audio controller: ESS Technology ES1988 Allegro-1 (rev 12) Ubuntu up to date hardy, with manually compiled linux-2.6.26.2.
the patch:
-----------------------------------
usr/src/linux/sound/pci/ac97/ac97_codec.c renamed from ac97_codec.c +1 -1
@@ -579,7 +579,7 @@static const snd_kcontrol_new_t snd_ac97_controls_mic[3 ] = {AC97_SINGLE ("Mic Playback Switch" ,AC97_MIC ,15 ,1 ,1 ), -AC97_SINGLE ("Mic Playback Volume" ,AC97_MIC ,0 ,15 ,1 ), +AC97_SINGLE ("Mic Playback Volume" ,AC97_MIC ,0 ,31 ,1 ),AC97_SINGLE ("Mic Boost (+20dB)" ,AC97_MIC ,6 ,1 ,0 ) };
@@ -1137,7 +1137,7 @@for (idx =0 ; idx <3 ; idx++) if ((err = snd_ctl_add(card,
snd_ac97_cnew(&snd_ac97_controls_mic[idx], ac97))) < 0)
return err;
- snd_ac97_write_cache(ac97, AC97_MIC, 0x801f);
+ snd_ac97_write_cache(ac97, AC97_MIC, 0x805f);
/* build Line controls */
for (idx = 0; idx < 2; idx++)
-----------------------------------
amixer settings:
-----------------------------------
$ amixer Simple mixer control 'Master',0 Capabilities: pvolume pswitch pswitch-joined Playback channels: Front Left - Front Right Limits: Playback 0 - 31 Mono: Front Left: Playback 21 [68%] [-15.00dB] [on] Front Right: Playback 21 [68%] [-15.00dB] [on] Simple mixer control 'Master Mono',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono Limits: Playback 0 - 31 Mono: Playback 31 [100%] [0.00dB] [on] Simple mixer control '3D Control - Center',0 Capabilities: volume volume-joined Playback channels: Mono Capture channels: Mono Limits: 0 - 15 Mono: 15 [100%] Simple mixer control '3D Control - Depth',0 Capabilities: volume volume-joined Playback channels: Mono Capture channels: Mono Limits: 0 - 15 Mono: 15 [100%] Simple mixer control 'PCM',0 Capabilities: pvolume pswitch pswitch-joined Playback channels: Front Left - Front Right Limits: Playback 0 - 31 Mono: Front Left: Playback 31 [100%] [12.00dB] [on] Front Right: Playback 31 [100%] [12.00dB] [on] Simple mixer control 'Line',0 Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-exclusive Capture exclusive group: 0 Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: Playback 0 - 31 Front Left: Playback 31 [100%] [12.00dB] [on] Capture [off] Front Right: Playback 31 [100%] [12.00dB] [on] Capture [off] Simple mixer control 'CD',0 Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-exclusive Capture exclusive group: 0 Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: Playback 0 - 31 Front Left: Playback 31 [100%] [12.00dB] [on] Capture [off] Front Right: Playback 31 [100%] [12.00dB] [on] Capture [off] Simple mixer control 'Mic',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined cswitch cswitch-exclusive Capture exclusive group: 0 Playback channels: Mono Capture channels: Front Left - Front Right Limits: Playback 0 - 31 Mono: Playback 31 [100%] [12.00dB] [on] Front Left: Capture [on] Front Right: Capture [on] Simple mixer control 'Mic Boost (+20dB)',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on] Simple mixer control 'Mic Select',0 Capabilities: enum Items: 'Mic1' 'Mic2' Item0: 'Mic1' Simple mixer control 'Video',0 Capabilities: cswitch cswitch-exclusive Capture exclusive group: 0 Capture channels: Front Left - Front Right Front Left: Capture [off] Front Right: Capture [off] Simple mixer control 'Phone',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined cswitch cswitch-exclusive Capture exclusive group: 0 Playback channels: Mono Capture channels: Front Left - Front Right Limits: Playback 0 - 31 Mono: Playback 31 [100%] [12.00dB] [on] Front Left: Capture [off] Front Right: Capture [off] Simple mixer control 'PC Speaker',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono Limits: Playback 0 - 15 Mono: Playback 15 [100%] [0.00dB] [on] Simple mixer control 'Aux',0 Capabilities: cswitch cswitch-exclusive Capture exclusive group: 0 Capture channels: Front Left - Front Right Front Left: Capture [off] Front Right: Capture [off] Simple mixer control 'Mono Output Select',0 Capabilities: enum Items: 'Mix' 'Mic' Item0: 'Mix' Simple mixer control 'Capture',0 Capabilities: cvolume cswitch cswitch-joined Capture channels: Front Left - Front Right Limits: Capture 0 - 15 Front Left: Capture 15 [100%] [22.50dB] [on] Front Right: Capture 15 [100%] [22.50dB] [on] Simple mixer control 'Mix',0 Capabilities: cswitch cswitch-exclusive Capture exclusive group: 0 Capture channels: Front Left - Front Right Front Left: Capture [off] Front Right: Capture [off] Simple mixer control 'Mix Mono',0 Capabilities: cswitch cswitch-exclusive Capture exclusive group: 0 Capture channels: Front Left - Front Right Front Left: Capture [off] Front Right: Capture [off] Simple mixer control 'External Amplifier',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [off] -----------------------------------
---> looking at the mic range it seems to be 0-31 already, capture is
only 0-15, I wonder if that's right...
At Sun, 17 Aug 2008 22:07:19 +0300,
Quoted 10 lines · ikke
Hi,
I'm having mic problems with
snd_maestro3and es1988 allegro hw. The laptop is HP OmniBook Xe3. The mic is way too silent (unusable) even with 20db boost option on. I found this seems to have been really common problem, but only one came with a fix [1] to the problem, enabling one more bit to volume control. Could someone please help me apply that fix to current alsa?
Quoted 4 lines
I tried compiling 2.6.26.2 kernel and made the first change of the patch from mail [1] attachement [2]. No change. The second part of patch I did not find anymore from the code. There are similar parts in
ac97_patch.c. Any hint what should be added there?
Note that "Mic Playback Volume" controls only the volume of analog playback. It doesn't change the recording level at all.
Quoted 8 lines
The original patched code is somewhat outdated compared to modern one... But the reasoning for the original patch sounds reasonable. The mic volume is tunable, only at the very low range. I recall the laptop came with Win98, and there was no problem then with the sound -> not a HW problem. I have never got this laptop mic working with linux, so this is not anything that broke recently. I see there is
check_volume_resolutionfunction which tries to guess some of the register ranges, but maybe it get's it wrong with this HW.
Maybe, maybe not. You should check rather ac97 registers in /proc/asound/card0/codec97#0/ac97#0-0+regs. If build with CONFIG_SND_DEBUG=y, you can write to the register directly, too. See Documentaiton[/sound/alsa]/Procfile.txt.
Takashi
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 4 lines · Takashi Iwai
At Sun, 17 Aug 2008 22:07:19 +0300,
Note that "Mic Playback Volume" controls only the volume of analog playback. It doesn't change the recording level at all.
thanks for reminding, sure.
Quoted 8 lines
Quoted 7 lines
the reasoning for the original patch sounds reasonable. The mic volume is tunable, only at the very low range. I recall the laptop came with Win98, and there was no problem then with the sound -> not a HW problem. I have never got this laptop mic working with linux, so this is not anything that broke recently. I see there is
check_volume_resolutionfunction which tries to guess some of the register ranges, but maybe it get's it wrong with this HW.
Quoted 5 lines
Maybe, maybe not. You should check rather ac97 registers in /proc/asound/card0/codec97#0/ac97#0-0+regs. If build with
CONFIG_SND_DEBUG=y, you can write to the register directly, too. See Documentaiton[/sound/alsa]/Procfile.txt.
I checked this file. It seems it gets the regs right for the mic (range 0x1f). The capture range is 0xf. I don't have the specs to compare it against, so I assume there is nothing to do more here.
It seems mic value decreases while going up to full, where as capture increases. Another difference is maybe stereo / mono related, the capture changes both bytes whereas mic only the other one. Also one thing, should the mic level be around 0x40 - 0x5f, not 0x0 - 0x1f. Here's the diff of the registers between mixing the capture and mic from min to max:
$ diff /tmp/ac97_regs_capt_{min,full}
15c15
< 0:1c = 0000
---Quoted 1 line
0:1c = 0f0f
$ diff /tmp/ac97_regs_mic_{min,full}
8c8
< 0:0e = 005f
---Quoted 1 line
0:0e = 0040
I'll recompile it with sound debug just to test it...
Thanks,
ikke
At Mon, 18 Aug 2008 15:28:00 +0300,
Quoted 15 lines · Ilkka Tengvall
Quoted 9 lines
Quoted 8 lines
the reasoning for the original patch sounds reasonable. The mic volume is tunable, only at the very low range. I recall the laptop came with Win98, and there was no problem then with the sound -> not a HW problem. I have never got this laptop mic working with linux, so this is not anything that broke recently. I see there is
check_volume_resolutionfunction which tries to guess some of the register ranges, but maybe it get's it wrong with this HW.Quoted 5 lines
Maybe, maybe not. You should check rather ac97 registers in /proc/asound/card0/codec97#0/ac97#0-0+regs. If build with
CONFIG_SND_DEBUG=y, you can write to the register directly, too. See Documentaiton[/sound/alsa]/Procfile.txt.
Quoted 3 lines
I checked this file. It seems it gets the regs right for the mic (range
0x1f). The capture range is0xf. I don't have the specs to compare it against, so I assume there is nothing to do more here.
Which registers, exactly?
Quoted 2 lines
It seems mic value decreases while going up to full, where as capture increases.
I guess the former one is the mic loopback volume (attenuation), so no wonder it behaves so.
Quoted 3 lines
Another difference is maybe stereo / mono related, the capture changes both bytes whereas mic only the other one. Also one thing, should the mic level be around
0x40-0x5f, not0x0-0x1f.
The bit 0x40 indicates the mic boost +20dB.
Takashi
Quoted 17 lines · Takashi Iwai
At Mon, 18 Aug 2008 15:28:00 +0300,
Quoted 15 lines · Ilkka Tengvall
Quoted 14 lines
Quoted 8 lines
the reasoning for the original patch sounds reasonable. The mic volume is tunable, only at the very low range. I recall the laptop came with Win98, and there was no problem then with the sound -> not a HW problem. I have never got this laptop mic working with linux, so this is not anything that broke recently. I see there is
check_volume_resolutionfunction which tries to guess some of the register ranges, but maybe it get's it wrong with this HW.Maybe, maybe not. You should check rather ac97 registers in /proc/asound/card0/codec97#0/ac97#0-0+regs. If build with
CONFIG_SND_DEBUG=y, you can write to the register directly, too. See Documentaiton[/sound/alsa]/Procfile.txt.
Quoted 5 lines
Quoted 3 lines
I checked this file. It seems it gets the regs right for the mic (range
0x1f). The capture range is0xf. I don't have the specs to compare it against, so I assume there is nothing to do more here.Which registers, exactly?
The ones affected by changing mic volume and capture in alsamixer, those I that I pasted the diffs of previously. In alsamixer it has slider for mic volume, and capture volume. And mic can be set as capture device. In code (which the patch touched) it speaks about "Mic Capture Volume", that made me think it would affect the volume used for capturing (recording?) mic.
ac97_codec.c:AC97_SINGLE("Mic Capture Switch", AC97_REC_GAIN_MIC, 15, 1, 1), AC97_SINGLE("Mic Capture Volume", AC97_REC_GAIN_MIC, 0, 15, 0)
That is 4 bits (15, f), not 5 bits (31, 1f). But if this is really only volume control for mic playback, not capture, then I assume it doesn't matter. Could you please still confirm this?
Quoted 12 lines
Quoted 2 lines
It seems mic value decreases while going up to full, where as capture increases.
I guess the former one is the mic loopback volume (attenuation), so no wonder it behaves so.
Quoted 3 lines
Another difference is maybe stereo / mono related, the capture changes both bytes whereas mic only the other one. Also one thing, should the mic level be around
0x40-0x5f, not0x0-0x1f.The bit
0x40indicates the mic boost +20dB.
Thanks for the explanation,
ikke
I still attach here the all ac97 regs dump, ac97info from same dir and amixer dump:
ac97#0-0+regs
---------------------
0:00 = 3e80
0:02 = 0606
0:04 = 0000
0:06 = 0000
0:08 = 0000
0:0a = 0000
0:0c = 8000
0:0e = 0040
0:10 = 0000
0:12 = 0000
0:14 = 0000
0:16 = 0000
0:18 = 0000
0:1a = 0000
0:1c = 0f0f
0:1e = 0000
0:20 = 0000
0:22 = 0000
0:24 = 0000
0:26 = 800f
0:28 = 0002
0:2a = 0000
0:2c = 0000
0:2e = 0000
0:30 = 0000
0:32 = 0000
0:34 = 0000
0:36 = 0000
0:38 = 0000
0:3a = 0000
0:3c = 0000
0:3e = 0000
0:40 = 0000
0:42 = 0000
0:44 = 0000
0:46 = 0000
0:48 = 0000
0:4a = 0000
0:4c = 0000
0:4e = 0000
0:50 = 0000
0:52 = 0000
0:54 = 0000
0:56 = 0000
0:58 = 0000
0:5a = 0000
0:5c = 0000
0:5e = 0000
0:60 = 0000
0:62 = 0000
0:64 = 0000
0:66 = 0000
0:68 = 0000
0:6a = 0000
0:6c = 0000
0:6e = 0000
0:70 = 0000
0:72 = 0000
0:74 = 0000
0:76 = 0000
0:78 = 0000
0:7a = 0000
0:7c = 4583
0:7e = 8308
---------------------
ac97#0-0
---------------------
0-0/0: ESS Technology ESS1988
PCI Subsys Vendor: 0x0000
PCI Subsys Device: 0x0000
Capabilities : DAC resolution : 20-bit ADC resolution : 20-bit 3D enhancement : ESS Technology Stereo Enhancement
Current setup
Mic gain : +20dB [+20dB]
POP path : pre 3D
Sim. stereo : off
3D enhancement : off Loudness : off Mono output : MIX Mic select : Mic1
ADC/DAC loopback : off
Double rate slots: 10/11
Extended ID : codec=0 rev=0 DSA=0 DRA
Extended status :
---------------------
amixer
---------------------
0-0/0: ESS Technology ESS1988
PCI Subsys Vendor: 0x0000
PCI Subsys Device: 0x0000
Capabilities : DAC resolution : 20-bit ADC resolution : 20-bit 3D enhancement : ESS Technology Stereo Enhancement
Current setup
Mic gain : +20dB [+20dB]
POP path : pre 3D
Sim. stereo : off
3D enhancement : off Loudness : off Mono output : MIX Mic select : Mic1
ADC/DAC loopback : off
Double rate slots: 10/11
Extended ID : codec=0 rev=0 DSA=0 DRA
Extended status :
kaarina@kannettava:~$ cat /tmp/amixer Simple mixer control 'Master',0 Capabilities: pvolume pswitch pswitch-joined Playback channels: Front Left - Front Right Limits: Playback 0 - 31 Mono: Front Left: Playback 25 [81%] [-9.00dB] [on] Front Right: Playback 25 [81%] [-9.00dB] [on] Simple mixer control 'Master Mono',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono Limits: Playback 0 - 31 Mono: Playback 31 [100%] [0.00dB] [on] Simple mixer control '3D Control - Center',0 Capabilities: volume volume-joined Playback channels: Mono Capture channels: Mono Limits: 0 - 15 Mono: 15 [100%] Simple mixer control '3D Control - Depth',0 Capabilities: volume volume-joined Playback channels: Mono Capture channels: Mono Limits: 0 - 15 Mono: 15 [100%] Simple mixer control 'PCM',0 Capabilities: pvolume pswitch pswitch-joined Playback channels: Front Left - Front Right Limits: Playback 0 - 31 Mono: Front Left: Playback 31 [100%] [12.00dB] [on] Front Right: Playback 31 [100%] [12.00dB] [on] Simple mixer control 'Line',0 Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-exclusive Capture exclusive group: 0 Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: Playback 0 - 31 Front Left: Playback 31 [100%] [12.00dB] [on] Capture [off] Front Right: Playback 31 [100%] [12.00dB] [on] Capture [off] Simple mixer control 'CD',0 Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-exclusive Capture exclusive group: 0 Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: Playback 0 - 31 Front Left: Playback 31 [100%] [12.00dB] [on] Capture [off] Front Right: Playback 31 [100%] [12.00dB] [on] Capture [off] Simple mixer control 'Mic',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined cswitch cswitch-exclusive Capture exclusive group: 0 Playback channels: Mono Capture channels: Front Left - Front Right Limits: Playback 0 - 31 Mono: Playback 31 [100%] [12.00dB] [on] Front Left: Capture [on] Front Right: Capture [on] Simple mixer control 'Mic Boost (+20dB)',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on] Simple mixer control 'Mic Select',0 Capabilities: enum Items: 'Mic1' 'Mic2' Item0: 'Mic1' Simple mixer control 'Video',0 Capabilities: cswitch cswitch-exclusive Capture exclusive group: 0 Capture channels: Front Left - Front Right Front Left: Capture [off] Front Right: Capture [off] Simple mixer control 'Phone',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined cswitch cswitch-exclusive Capture exclusive group: 0 Playback channels: Mono Capture channels: Front Left - Front Right Limits: Playback 0 - 31 Mono: Playback 31 [100%] [12.00dB] [off] Front Left: Capture [off] Front Right: Capture [off] Simple mixer control 'PC Speaker',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono Limits: Playback 0 - 15 Mono: Playback 15 [100%] [0.00dB] [on] Simple mixer control 'Aux',0 Capabilities: cswitch cswitch-exclusive Capture exclusive group: 0 Capture channels: Front Left - Front Right Front Left: Capture [off] Front Right: Capture [off] Simple mixer control 'Mono Output Select',0 Capabilities: enum Items: 'Mix' 'Mic' Item0: 'Mix' Simple mixer control 'Capture',0 Capabilities: cvolume cswitch cswitch-joined Capture channels: Front Left - Front Right Limits: Capture 0 - 15 Front Left: Capture 15 [100%] [22.50dB] [on] Front Right: Capture 15 [100%] [22.50dB] [on] Simple mixer control 'Mix',0 Capabilities: cswitch cswitch-exclusive Capture exclusive group: 0 Capture channels: Front Left - Front Right Front Left: Capture [off] Front Right: Capture [off] Simple mixer control 'Mix Mono',0 Capabilities: cswitch cswitch-exclusive Capture exclusive group: 0 Capture channels: Front Left - Front Right Front Left: Capture [off] Front Right: Capture [off] Simple mixer control 'External Amplifier',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [off] ---------------------
At Tue, 19 Aug 2008 08:03:14 +0300,
Quoted 32 lines · ikke
Quoted 17 lines · Takashi Iwai
At Mon, 18 Aug 2008 15:28:00 +0300,
Quoted 15 lines · Ilkka Tengvall
Quoted 14 lines
Quoted 8 lines
the reasoning for the original patch sounds reasonable. The mic volume is tunable, only at the very low range. I recall the laptop came with Win98, and there was no problem then with the sound -> not a HW problem. I have never got this laptop mic working with linux, so this is not anything that broke recently. I see there is
check_volume_resolutionfunction which tries to guess some of the register ranges, but maybe it get's it wrong with this HW.Maybe, maybe not. You should check rather ac97 registers in /proc/asound/card0/codec97#0/ac97#0-0+regs. If build with
CONFIG_SND_DEBUG=y, you can write to the register directly, too. See Documentaiton[/sound/alsa]/Procfile.txt.Quoted 5 lines
Quoted 3 lines
I checked this file. It seems it gets the regs right for the mic (range
0x1f). The capture range is0xf. I don't have the specs to compare it against, so I assume there is nothing to do more here.Which registers, exactly?
The ones affected by changing mic volume and capture in alsamixer, those I that I pasted the diffs of previously. In alsamixer it has slider for mic volume, and capture volume. And mic can be set as capture device. In code (which the patch touched) it speaks about "Mic Capture Volume", that made me think it would affect the volume used for capturing (recording?) mic.
Quoted 7 lines
ac97_codec.c:AC97_SINGLE("Mic Capture Switch", AC97_REC_GAIN_MIC, 15, 1, 1),AC97_SINGLE("Mic Capture Volume", AC97_REC_GAIN_MIC, 0, 15, 0)That is 4 bits (15, f), not 5 bits (31, 1f). But if this is really only volume control for mic playback, not capture, then I assume it doesn't matter. Could you please still confirm this?
Hm, I thought Allegro has no mic-capture volume (0x1e) but only the standard capture volume (0x1c). Are you sure that it's 0x1e?
Takashi
Quoted 263 lines
Quoted 12 lines
Quoted 2 lines
It seems mic value decreases while going up to full, where as capture increases.
I guess the former one is the mic loopback volume (attenuation), so no wonder it behaves so.
Quoted 3 lines
Another difference is maybe stereo / mono related, the capture changes both bytes whereas mic only the other one. Also one thing, should the mic level be around
0x40-0x5f, not0x0-0x1f.The bit
0x40indicates the mic boost +20dB.Thanks for the explanation,
ikke
I still attach here the all ac97 regs dump, ac97info from same dir and amixer dump:
ac97#0-0+regs
---------------------
0:00 = 3e80
0:02 = 0606
0:04 = 0000
0:06 = 0000
0:08 = 0000
0:0a = 0000
0:0c = 8000
0:0e = 0040
0:10 = 0000
0:12 = 0000
0:14 = 0000
0:16 = 0000
0:18 = 0000
0:1a = 0000
0:1c = 0f0f
0:1e = 0000
0:20 = 0000
0:22 = 0000
0:24 = 0000
0:26 = 800f
0:28 = 0002
0:2a = 0000
0:2c = 0000
0:2e = 0000
0:30 = 0000
0:32 = 0000
0:34 = 0000
0:36 = 0000
0:38 = 0000
0:3a = 0000
0:3c = 0000
0:3e = 0000
0:40 = 0000
0:42 = 0000
0:44 = 0000
0:46 = 0000
0:48 = 0000
0:4a = 0000
0:4c = 0000
0:4e = 0000
0:50 = 0000
0:52 = 0000
0:54 = 0000
0:56 = 0000
0:58 = 0000
0:5a = 0000
0:5c = 0000
0:5e = 0000
0:60 = 0000
0:62 = 0000
0:64 = 0000
0:66 = 0000
0:68 = 0000
0:6a = 0000
0:6c = 0000
0:6e = 0000
0:70 = 0000
0:72 = 0000
0:74 = 0000
0:76 = 0000
0:78 = 0000
0:7a = 0000
0:7c = 4583
0:7e = 8308
---------------------ac97#0-0
---------------------
0-0/0: ESS Technology ESS1988PCI Subsys Vendor:
0x0000
PCI Subsys Device:0x0000Capabilities : DAC resolution : 20-bit ADC resolution : 20-bit 3D enhancement : ESS Technology Stereo EnhancementCurrent setup
Mic gain : +20dB [+20dB]
POP path : pre 3D
Sim. stereo : off3D enhancement : off Loudness : off Mono output : MIX Mic select : Mic1ADC/DAC loopback : off
Double rate slots: 10/11
Extended ID : codec=0 rev=0 DSA=0 DRA
Extended status :
---------------------amixer
---------------------
0-0/0: ESS Technology ESS1988PCI Subsys Vendor:
0x0000
PCI Subsys Device:0x0000Capabilities : DAC resolution : 20-bit ADC resolution : 20-bit 3D enhancement : ESS Technology Stereo EnhancementCurrent setup
Mic gain : +20dB [+20dB]
POP path : pre 3D
Sim. stereo : off3D enhancement : off Loudness : off Mono output : MIX Mic select : Mic1ADC/DAC loopback : off
Double rate slots: 10/11
Extended ID : codec=0 rev=0 DSA=0 DRA
Extended status :kaarina@kannettava:~$ cat /tmp/amixer Simple mixer control 'Master',0 Capabilities: pvolume pswitch pswitch-joined Playback channels: Front Left - Front Right Limits: Playback 0 - 31 Mono: Front Left: Playback 25 [81%] [-9.00dB] [on] Front Right: Playback 25 [81%] [-9.00dB] [on] Simple mixer control 'Master Mono',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono Limits: Playback 0 - 31 Mono: Playback 31 [100%] [0.00dB] [on] Simple mixer control '3D Control - Center',0 Capabilities: volume volume-joined Playback channels: Mono Capture channels: Mono Limits: 0 - 15 Mono: 15 [100%] Simple mixer control '3D Control - Depth',0 Capabilities: volume volume-joined Playback channels: Mono Capture channels: Mono Limits: 0 - 15 Mono: 15 [100%] Simple mixer control 'PCM',0 Capabilities: pvolume pswitch pswitch-joined Playback channels: Front Left - Front Right Limits: Playback 0 - 31 Mono: Front Left: Playback 31 [100%] [12.00dB] [on] Front Right: Playback 31 [100%] [12.00dB] [on] Simple mixer control 'Line',0 Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-exclusive Capture exclusive group: 0 Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: Playback 0 - 31 Front Left: Playback 31 [100%] [12.00dB] [on] Capture [off] Front Right: Playback 31 [100%] [12.00dB] [on] Capture [off] Simple mixer control 'CD',0 Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-exclusive Capture exclusive group: 0 Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: Playback 0 - 31 Front Left: Playback 31 [100%] [12.00dB] [on] Capture [off] Front Right: Playback 31 [100%] [12.00dB] [on] Capture [off] Simple mixer control 'Mic',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined cswitch cswitch-exclusive Capture exclusive group: 0 Playback channels: Mono Capture channels: Front Left - Front Right Limits: Playback 0 - 31 Mono: Playback 31 [100%] [12.00dB] [on] Front Left: Capture [on] Front Right: Capture [on] Simple mixer control 'Mic Boost (+20dB)',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on] Simple mixer control 'Mic Select',0 Capabilities: enum Items: 'Mic1' 'Mic2' Item0: 'Mic1' Simple mixer control 'Video',0 Capabilities: cswitch cswitch-exclusive Capture exclusive group: 0 Capture channels: Front Left - Front Right Front Left: Capture [off] Front Right: Capture [off] Simple mixer control 'Phone',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined cswitch cswitch-exclusive Capture exclusive group: 0 Playback channels: Mono Capture channels: Front Left - Front Right Limits: Playback 0 - 31 Mono: Playback 31 [100%] [12.00dB] [off] Front Left: Capture [off] Front Right: Capture [off] Simple mixer control 'PC Speaker',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono Limits: Playback 0 - 15 Mono: Playback 15 [100%] [0.00dB] [on] Simple mixer control 'Aux',0 Capabilities: cswitch cswitch-exclusive Capture exclusive group: 0 Capture channels: Front Left - Front Right Front Left: Capture [off] Front Right: Capture [off] Simple mixer control 'Mono Output Select',0 Capabilities: enum Items: 'Mix' 'Mic' Item0: 'Mix' Simple mixer control 'Capture',0 Capabilities: cvolume cswitch cswitch-joined Capture channels: Front Left - Front Right Limits: Capture 0 - 15 Front Left: Capture 15 [100%] [22.50dB] [on] Front Right: Capture 15 [100%] [22.50dB] [on] Simple mixer control 'Mix',0 Capabilities: cswitch cswitch-exclusive Capture exclusive group: 0 Capture channels: Front Left - Front Right Front Left: Capture [off] Front Right: Capture [off] Simple mixer control 'Mix Mono',0 Capabilities: cswitch cswitch-exclusive Capture exclusive group: 0 Capture channels: Front Left - Front Right Front Left: Capture [off] Front Right: Capture [off] Simple mixer control 'External Amplifier',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [off] ---------------------
Quoted 7 lines · Takashi Iwai
At Tue, 19 Aug 2008 08:03:14 +0300,
Quoted 5 lines · ikke
ac97_codec.c:AC97_SINGLE("Mic Capture Switch", AC97_REC_GAIN_MIC, 15, 1, 1),AC97_SINGLE("Mic Capture Volume", AC97_REC_GAIN_MIC, 0, 15, 0)
Quoted 7 lines
Quoted 3 lines
That is 4 bits (15, f), not 5 bits (31, 1f). But if this is really only volume control for mic playback, not capture, then I assume it doesn't matter. Could you please still confirm this?
Hm, I thought Allegro has no mic-capture volume (
0x1e) but only the standard capture volume (0x1c). Are you sure that it's0x1e?
sorry, I was too hasty and got stuck to wrong lines while looking the code. The original patch was indeed patching the mic volume, not capture volume above. The original patch:
-AC97_SINGLE("Mic Playback Volume", AC97_MIC, 0, 15, 1), +AC97_SINGLE("Mic Playback Volume", AC97_MIC, 0, 31, 1),
You are right, it's 1c, like seen from the diffs I sent. Sorry for the confusion. Is there anything you would suggest for me to do anymore, other than buying better HW and to shut up ;) ? I compiled the kernel again with snd debug option, and was able to write the regs via proc...
-i