From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugtrack@alsa-project.org Subject: [ALSA - driver 0001658]: Capture happens only on one channel Date: Fri, 13 Jan 2006 17:46:37 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from bugtrack.alsa-project.org (gate.perex.cz [85.132.177.35]) by alsa.jcu.cz (ALSA's E-mail Delivery System) with ESMTP id 0C88C11D for ; Fri, 13 Jan 2006 17:46:37 +0100 (MET) Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org A NOTE has been added to this issue. ====================================================================== ====================================================================== Reported By: phil_troin Assigned To: ====================================================================== Project: ALSA - driver Issue ID: 1658 Category: PCI - intel8x0 Reproducibility: always Severity: minor Priority: normal Status: new Distribution: Gentoo Kernel Version: 2.6.14-gentoo-r2 ====================================================================== Date Submitted: 12-18-2005 08:40 CET Last Modified: 01-13-2006 17:46 CET ====================================================================== Summary: Capture happens only on one channel Description: When I am playing a CD, if I capture the sound output via the capture channel OR the CD channel (amixer output attached), the captured sound is only one one channel (the right one) and is very distorted. The audio plays normally in stereo on the speakers. ====================================================================== ---------------------------------------------------------------------- legluondunet - 01-13-06 17:12 ---------------------------------------------------------------------- Alsa.conf is part of the libasound/alsalib librairie. Did you tried to install another version of this librairie? I think the problem come from this librairie. ---------------------------------------------------------------------- vsu - 01-13-06 17:46 ---------------------------------------------------------------------- Here I see what looks like the same problem with snd-via82xx and Realtek ALC200 (not really tested with input signals, but values of ac97 mixer registers are wrong). Kernel 2.6.14, alsa-driver, alsa-lib and alsa-utils 1.0.10. Initially the capture source is set to Mic: $ cat /proc/asound/card0/codec97#0/ac97#0-0+regs | grep 0:1a 0:1a = 0000 $ amixer cget iface=MIXER,name='Capture Source' numid=24,iface=MIXER,name='Capture Source' ; type=ENUMERATED,access=rw---,values=2,items=8 ; Item #0 'Mic' ; Item #1 'CD' ; Item #2 'Video' ; Item #3 'Aux' ; Item #4 'Line' ; Item #5 'Mix' ; Item #6 'Mix Mono' ; Item #7 'Phone' : values=0,0 Then I run alsamixer, press F4 to switch to capture view, move to "Line" and press Space - alsamixer shows that Line is now selected for capture. However, the contents of the ac97 register 0x1a is wrong: $ cat /proc/asound/card0/codec97#0/ac97#0-0+regs | grep 0:1a 0:1a = 0400 Only the left channel was switched to Line - the right channel remains set to Mic. And amixer shows this too: $ amixer cget iface=MIXER,name='Capture Source' numid=24,iface=MIXER,name='Capture Source' ; type=ENUMERATED,access=rw---,values=2,items=8 ; Item #0 'Mic' ; Item #1 'CD' ; Item #2 'Video' ; Item #3 'Aux' ; Item #4 'Line' ; Item #5 'Mix' ; Item #6 'Mix Mono' ; Item #7 'Phone' : values=4,0 But the simple mixer values do not agree with this: $ amixer sget 'Line' Simple mixer control 'Line',0 Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-joined 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 0 [0%] [off] Capture [on] Front Right: Playback 0 [0%] [off] Capture [on] $ amixer sget 'Mic' Simple mixer control 'Mic',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined cswitch cswitch-joined cswitch-exclusive Capture exclusive group: 0 Playback channels: Mono Capture channels: Front Left - Front Right Limits: Playback 0 - 31 Mono: Playback 0 [0%] [off] Front Left: Capture [off] Front Right: Capture [off] If I use "amixer cset", I can set the mixer properly: $ amixer cset iface=MIXER,name='Capture Source' 4,4 numid=24,iface=MIXER,name='Capture Source' ; type=ENUMERATED,access=rw---,values=2,items=8 ; Item #0 'Mic' ; Item #1 'CD' ; Item #2 'Video' ; Item #3 'Aux' ; Item #4 'Line' ; Item #5 'Mix' ; Item #6 'Mix Mono' ; Item #7 'Phone' : values=4,4 $ cat /proc/asound/card0/codec97#0/ac97#0-0+regs | grep 0:1a 0:1a = 0404 So it looks like the kernel driver and low-level mixer access in alsa-lib works correctly, but the simple mixer layer in alsa-lib is broken. Issue History Date Modified Username Field Change ====================================================================== 12-18-05 08:40 phil_troin New Issue 12-18-05 08:40 phil_troin File Added: amixout 12-18-05 08:40 phil_troin Distribution => Gentoo 12-18-05 08:40 phil_troin Kernel Version => 2.6.14-gentoo-r2 12-18-05 12:00 linuxbear Note Added: 0007071 12-18-05 12:02 linuxbear Note Edited: 0007071 12-27-05 10:34 linuxbear Issue Monitored: linuxbear 01-07-06 06:24 tgutwin Note Added: 0007508 01-07-06 06:25 tgutwin Issue Monitored: tgutwin 01-09-06 01:34 legluondunet Note Added: 0007529 01-09-06 01:35 legluondunet File Added: alsa.conf.record1channel 01-09-06 01:37 legluondunet File Added: alsa.conf.ubuntu 01-09-06 01:43 legluondunet Note Added: 0007530 01-13-06 02:17 rlrevell Note Added: 0007615 01-13-06 14:29 Matthias KoenigNote Added: 0007640 01-13-06 17:12 legluondunet Note Added: 0007644 01-13-06 17:46 vsu Note Added: 0007645 ====================================================================== ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click