[alsa-devel] PCM Volume on FSC V5505
Hi ! With the patches, the sound works - well done! But I need to make sure the PCM volume is max @ 50% . If its over 50% sound is clipped and ugly (overload?).
Here's cat /proc/asound/card0/codec#0 when in use (patched kernel with your patches for v5505)
Codec: Conexant CX20549 (Venice) Address: 0 Vendor Id: 0x14f15045 Subsystem Id: 0x1734110e Revision Id: 0x100100 No Modem Function Group found Default PCM: rates [0x140]: 48000 96000 bits [0xe]: 16 20 24 formats [0x1]: PCM Default Amp-In caps: N/A Default Amp-Out caps: N/A Node 0x10 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out Amp-Out caps: ofs=0x2b, nsteps=0x2b, stepsize=0x05, mute=1 Amp-Out vals: [0x28 0x28] Pincap 0x0810014: OUT EAPD Detect Pin Default 0x92170110: [Fixed] Speaker at Int Front Conn = Analog, Color = Unknown Pin-ctls: 0x40: OUT Power: 0x0 Connection: 2 0x19 0x17* Node 0x11 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out Amp-Out caps: ofs=0x2b, nsteps=0x2b, stepsize=0x05, mute=1 Amp-Out vals: [0x28 0x28] Pincap 0x08113c: IN OUT HP Detect Pin Default 0x0121401f: [Jack] HP Out at Ext Rear Conn = 1/8, Color = Green Pin-ctls: 0xc0: OUT HP Power: 0x0 Connection: 2 0x19 0x17* Node 0x12 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out Amp-Out caps: ofs=0x2b, nsteps=0x2b, stepsize=0x05, mute=1 Amp-Out vals: [0xab 0xab] Pincap 0x08113c: IN OUT HP Detect Pin Default 0x01a19020: [Jack] Mic at Ext Rear Conn = 1/8, Color = Pink Pin-ctls: 0x20: IN Power: 0x0 Connection: 2 0x19* 0x17 Node 0x13 [Pin Complex] wcaps 0x400301: Stereo Digital Pincap 0x0810: OUT Pin Default 0x214571f0: [Jack] SPDIF Out at Sep Rear Conn = Optical, Color = Yellow Pin-ctls: 0x00: Connection: 1 0x18 Node 0x14 [Pin Complex] wcaps 0x400081: Stereo Pincap 0x081124: IN Detect Pin Default 0x97a7012e: [Fixed] Mic at Int Riser Conn = Analog, Color = Unknown Pin-ctls: 0x24: IN Node 0x15 [Pin Complex] wcaps 0x400001: Stereo Pincap 0x0820: IN Pin Default 0x400001f0: [N/A] Line Out at Ext N/A Conn = Unknown, Color = Unknown Pin-ctls: 0x00: Node 0x16 [Beep Generator Widget] wcaps 0x70000c: Mono Amp-Out Amp-Out caps: ofs=0x07, nsteps=0x07, stepsize=0x0b, mute=1 Amp-Out vals: [0x06] Node 0x17 [Audio Mixer] wcaps 0x20050b: Stereo Amp-In Amp-In caps: ofs=0x14, nsteps=0x2b, stepsize=0x05, mute=1 Amp-In vals: [0x14 0x14] [0xab 0xab] [0xa0 0xa0] [0x80 0x80] [0x80 0x80] Power: 0x0 Connection: 5 0x19 0x14 0x12 0x11 0x15 Node 0x18 [Audio Output] wcaps 0x211: Stereo Digital PCM: rates [0x40]: 48000 bits [0x6]: 16 20 formats [0x5]: PCM AC3 Node 0x19 [Audio Output] wcaps 0xc11: Stereo PCM: rates [0x540]: 48000 96000 192000 bits [0xe]: 16 20 24 formats [0x1]: PCM Power: 0x0 Node 0x1a [Audio Input] wcaps 0x100d0b: Stereo Amp-In Amp-In caps: ofs=0x00, nsteps=0x17, stepsize=0x05, mute=1 Amp-In vals: [0x17 0x17] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Power: 0x0 Connection: 5 0x17 0x14 0x12* 0x11 0x15 Node 0x1b [Vendor Defined Widget] wcaps 0xf00000: Mono
Best regards Jan-Simon
At Fri, 23 Nov 2007 17:45:21 +0100, Jan-Simon Möller wrote:
Hi ! With the patches, the sound works - well done! But I need to make sure the PCM volume is max @ 50% . If its over 50% sound is clipped and ugly (overload?).
Looks like so. Mixer apps (e.g. alsamixer) can show its dB value instead of percent. Check the dB level shown there.
The patch below may fix this issue. Give it a try.
Takashi
diff -r 17223a4918b4 pci/hda/patch_conexant.c --- a/pci/hda/patch_conexant.c Tue Nov 27 15:27:17 2007 +0100 +++ b/pci/hda/patch_conexant.c Tue Nov 27 16:46:15 2007 +0100 @@ -826,6 +826,17 @@ static int patch_cxt5045(struct hda_code spec->init_verbs[0] = cxt5045_test_init_verbs; #endif } + + /* + * Fix max PCM level to 0 dB + * (originall it has 0x2b steps with 0dB offset 0x14) + */ + snd_hda_override_amp_caps(codec, 0x17, HDA_OUTPUT, + (0x14 << AC_AMPCAP_OFFSET_SHIFT) | + (0x14 << AC_AMPCAP_NUM_STEPS_SHIFT) | + (0x05 << AC_AMPCAP_STEP_SIZE_SHIFT) | + (1 << AC_AMPCAP_MUTE_SHIFT)); + return 0; }
At Tue, 27 Nov 2007 16:19:56 +0100, I wrote:
At Fri, 23 Nov 2007 17:45:21 +0100, Jan-Simon Möller wrote:
Hi ! With the patches, the sound works - well done! But I need to make sure the PCM volume is max @ 50% . If its over 50% sound is clipped and ugly (overload?).
Looks like so. Mixer apps (e.g. alsamixer) can show its dB value instead of percent. Check the dB level shown there.
The patch below may fix this issue. Give it a try.
Argh, the patch is wrong. Use the below instead.
Takashi
diff -r 17223a4918b4 pci/hda/patch_conexant.c --- a/pci/hda/patch_conexant.c Tue Nov 27 15:27:17 2007 +0100 +++ b/pci/hda/patch_conexant.c Tue Nov 27 16:50:37 2007 +0100 @@ -826,6 +826,17 @@ static int patch_cxt5045(struct hda_code spec->init_verbs[0] = cxt5045_test_init_verbs; #endif } + + /* + * Fix max PCM level to 0 dB + * (originall it has 0x2b steps with 0dB offset 0x14) + */ + snd_hda_override_amp_caps(codec, 0x17, HDA_INPUT, + (0x14 << AC_AMPCAP_OFFSET_SHIFT) | + (0x14 << AC_AMPCAP_NUM_STEPS_SHIFT) | + (0x05 << AC_AMPCAP_STEP_SIZE_SHIFT) | + (1 << AC_AMPCAP_MUTE_SHIFT)); + return 0; }
The levels were 0-43 on Master and PCM. When PCM was over 20 it sounded ugly. Your patch fixed it with PCM. Master now 0-43, PCM now 0-20 . What about the inputs are they affected before/after the patch ?
Many thanks !
Best regards Jan-Simon
Am Dienstag 27 November 2007 16:23:08 schrieb Takashi Iwai:
At Tue, 27 Nov 2007 16:19:56 +0100,
I wrote:
At Fri, 23 Nov 2007 17:45:21 +0100,
Jan-Simon Möller wrote:
Hi ! With the patches, the sound works - well done! But I need to make sure the PCM volume is max @ 50% . If its over 50% sound is clipped and ugly (overload?).
Looks like so. Mixer apps (e.g. alsamixer) can show its dB value instead of percent. Check the dB level shown there.
The patch below may fix this issue. Give it a try.
Argh, the patch is wrong. Use the below instead.
Takashi
diff -r 17223a4918b4 pci/hda/patch_conexant.c --- a/pci/hda/patch_conexant.c Tue Nov 27 15:27:17 2007 +0100 +++ b/pci/hda/patch_conexant.c Tue Nov 27 16:50:37 2007 +0100 @@ -826,6 +826,17 @@ static int patch_cxt5045(struct hda_code spec->init_verbs[0] = cxt5045_test_init_verbs; #endif }
- /*
* Fix max PCM level to 0 dB
* (originall it has 0x2b steps with 0dB offset 0x14)
*/
- snd_hda_override_amp_caps(codec, 0x17, HDA_INPUT,
(0x14 << AC_AMPCAP_OFFSET_SHIFT) |
(0x14 << AC_AMPCAP_NUM_STEPS_SHIFT) |
(0x05 << AC_AMPCAP_STEP_SIZE_SHIFT) |
(1 << AC_AMPCAP_MUTE_SHIFT));
- return 0;
}
Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
At Thu, 29 Nov 2007 16:02:09 +0100, Jan-Simon Möller wrote:
The levels were 0-43 on Master and PCM. When PCM was over 20 it sounded ugly.
In the recent version of alsamixer, you must be able to see the corresponding dB level. I guess it's 0dB.
Your patch fixed it with PCM. Master now 0-43, PCM now 0-20 . What about the inputs are they affected before/after the patch ?
Which inputs, more exactly?
Takashi
Many thanks !
Best regards Jan-Simon
Am Dienstag 27 November 2007 16:23:08 schrieb Takashi Iwai:
At Tue, 27 Nov 2007 16:19:56 +0100,
I wrote:
At Fri, 23 Nov 2007 17:45:21 +0100,
Jan-Simon Möller wrote:
Hi ! With the patches, the sound works - well done! But I need to make sure the PCM volume is max @ 50% . If its over 50% sound is clipped and ugly (overload?).
Looks like so. Mixer apps (e.g. alsamixer) can show its dB value instead of percent. Check the dB level shown there.
The patch below may fix this issue. Give it a try.
Argh, the patch is wrong. Use the below instead.
Takashi
diff -r 17223a4918b4 pci/hda/patch_conexant.c --- a/pci/hda/patch_conexant.c Tue Nov 27 15:27:17 2007 +0100 +++ b/pci/hda/patch_conexant.c Tue Nov 27 16:50:37 2007 +0100 @@ -826,6 +826,17 @@ static int patch_cxt5045(struct hda_code spec->init_verbs[0] = cxt5045_test_init_verbs; #endif }
- /*
* Fix max PCM level to 0 dB
* (originall it has 0x2b steps with 0dB offset 0x14)
*/
- snd_hda_override_amp_caps(codec, 0x17, HDA_INPUT,
(0x14 << AC_AMPCAP_OFFSET_SHIFT) |
(0x14 << AC_AMPCAP_NUM_STEPS_SHIFT) |
(0x05 << AC_AMPCAP_STEP_SIZE_SHIFT) |
(1 << AC_AMPCAP_MUTE_SHIFT));
- return 0;
}
Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
-- Jan-Simon Möller Schaumburgstraße 2 30419 Hannover
+49 511 2700750 +49 177 3017915
participants (2)
-
Jan-Simon Möller
-
Takashi Iwai