From: bugtrack@alsa-project.org Subject: [ALSA - driver 0001072]: 'Capture Source' and 'Mic Select' controls cannot be switched Date: Fri, 30 Dec 2005 20:10:16 +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 BE309185 for ; Fri, 30 Dec 2005 20:10:16 +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 The following issue has been RESOLVED. ====================================================================== ====================================================================== Reported By: vsu Assigned To: rlrevell ====================================================================== Project: ALSA - driver Issue ID: 1072 Category: PCI - via82xx Reproducibility: always Severity: major Priority: normal Status: resolved Distribution: ALT Linux Kernel Version: 2.6.11 Resolution: fixed Fixed in Version: ====================================================================== Date Submitted: 04-23-2005 21:41 CEST Last Modified: 12-30-2005 20:10 CET ====================================================================== Summary: 'Capture Source' and 'Mic Select' controls cannot be switched Description: With ALSA CVS snapshots from 2005-04-09 and 2005-04-23 it is not possible to select capture source. I have tried alsamixer, amixer, and even "alsactl restore" (by editing the state file directly), but no matter what is done, the 'Capture Source' control is still set to 'Mic': control.26 { comment.access 'read write' comment.type ENUMERATED comment.count 2 comment.item.0 Mic comment.item.1 CD comment.item.2 Video comment.item.3 Aux comment.item.4 Line comment.item.5 Mix comment.item.6 'Mix Mono' comment.item.7 Phone iface MIXER name 'Capture Source' value.0 Mic value.1 Mic } However, the AC'97 register 0x1a which should be controlled by this control has value which corresponds to 'Phone', not 'Mic': $ cat /proc/asound/card0/codec97\#0/ac97\#0-0+regs | grep 0:1a 0:1a = 0707 Changing the register value directly by writing into the proc file produces the desired result - the recording source changes, however, the mixer control stays nonfunctional. I also noticed that the 'Mic Select' control is fixed to 'Mic1' and cannot be changed. With alsa-driver-1.0.8 both controls work. Updating first alsa-lib, then alsa-utils from 1.0.8 to the 2005-04-23 CVS snapshot did not change this behavior. ====================================================================== ---------------------------------------------------------------------- vsu - 12-30-05 20:05 ---------------------------------------------------------------------- The patch was committed on 25 Apr 2005 by Jaroslav Kysela (Summary: fix behaviour of ac97_enum_mixer elements), with the reference to this bug report in the commit message; however, the bug was not closed for some reason. Currently the kernel driver works OK in this respect; however, I still see some breakage in alsamixer (alsa-lib and alsa-utils 1.0.10; alsa-driver was updated to 1.0.11rc1): $ amixer cget iface=MIXER,name='Capture Source' numid=26,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 $ alsamixer (now I press F4, move to "Phone" and press Space to select it, then press Esc to exit from alsamixer) $ amixer cget iface=MIXER,name='Capture Source' numid=26,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=7,0 Notice that just the first value was changed. However, amixer can change both values properly: $ amixer cset iface=MIXER,name='Capture Source' 5,5 numid=26,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=5,5 ---------------------------------------------------------------------- rlrevell - 12-30-05 20:10 ---------------------------------------------------------------------- Fixed. Please open a separate bug report for the alsamixer issue (if it's really a problem) Issue History Date Modified Username Field Change ====================================================================== 04-23-05 21:41 vsu New Issue 04-23-05 21:41 vsu Distribution => ALT Linux 04-23-05 21:41 vsu Kernel Version => 2.6.11 04-23-05 21:56 vsu Note Added: 0004564 04-24-05 13:21 vsu File Added: ac97-enum-fix.patch 04-24-05 13:21 vsu Note Added: 0004565 12-30-05 04:44 rlrevell Note Added: 0007221 12-30-05 20:05 vsu Note Added: 0007253 12-30-05 20:10 rlrevell Status new => resolved 12-30-05 20:10 rlrevell Resolution open => fixed 12-30-05 20:10 rlrevell Assigned To => rlrevell 12-30-05 20:10 rlrevell Note Added: 0007255 ====================================================================== ------------------------------------------------------- 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