Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 30803 - Code Listing 3.5 for unmuting channels lists the wrong name for the Master Digital channel
Summary: Code Listing 3.5 for unmuting channels lists the wrong name for the Master Di...
Status: RESOLVED INVALID
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Alsa Configuration Guide (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Docs Team
URL: http://www.gentoo.org/doc/en/alsa-gui...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-09 20:14 UTC by Philip B Chase
Modified: 2003-11-15 00:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philip B Chase 2003-10-09 20:14:44 UTC
Under the section titled "Code Listing 3.5: Unmuting Channels", the example code
reads

# amixer set Master 100 unmute

In alsa-utils-0.9.2 that channel is actually named "Master Digital".  There is
no "Master".  The command need on my system was 

# amixer set "Digital Master" 100 unmute


Reproducible: Always
Steps to Reproduce:
1.  simple execute 

# amixer set Master 100 unmute

Actual Results:  
I receive the error

amixer: Unable to find simple control 'Master',0

Expected Results:  
The output should have read

Simple mixer control 'Master Digital',0
  Capabilities: volume pswitch cswitch
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 71
  Front Left: 71 [100%] Playback [on] Capture [off]
  Front Right: 71 [100%] Playback [on] Capture [off]


Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r6)
=================================================================
System uname: 2.4.20-gentoo-r6 i686 Intel(R) Celeron(TM) CPU                1300MHz
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium3 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb
/usr/kde/3.1/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://www.ibiblio.org/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt encode foomaticdb gif gpm jpeg libg++ libwww mad
mikmod mmx mpeg ncurses nls pdflib png quicktime slang spell truetype xml2 xmms
xv zlib directfb alsa gdbm berkdb readline arts bonobo svga java mysql postgres
X sdl tcpd pam ssl perl python esd imlib oggvorbis motif opengl mozilla ldap cdr
qt kde cups usb pda -gnome -gtk"
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2003-11-14 11:27:37 UTC
Is this card-specific? I have the same version of alsa-utils but don't have "Digital Master".
Comment 2 Philip B Chase 2003-11-14 19:36:49 UTC
I think you may be right about about this being hardware specific.  I am haviung this problem using a snd-cs4236 module.  I did a Google search for 'amixer set "Master Digital"' and most of the hist reference the cs4236 of cs4237.  Seems like a smoking gun to me.   

FYI, in my initial submission I transposed some words.  The command that works on my installation is 

  amixer set "Master Digital" 100 unmute

I guess you could close this bug.  I don't know if it's worth amending the docs for this board or not.  Incidentally, alsamixer shows the correct control name and circumvents the potential device dependency of the amxer command syntax.  Of course this does not have the simplicity of amixer.
Comment 3 Sven Vermeulen (RETIRED) gentoo-dev 2003-11-15 00:37:16 UTC
Okay :)