ALSA

From Texas Instruments Embedded Processors Wiki

Jump to: navigation, search
Translate this page to   

Contents

About

ALSA - Advanced Linux Sound Architecture
ALSA utils contains the command line utilities for the ALSA project.

Visit alsa website for more information and to download source.


Utilities


Execution

The zip file- File:ALSA Scripts logs.zip contains script to test Audio using ALSA utils and logs of script run.

Using amixer

Sample output of the above command is as follows:

# amixer controls
numid=1,iface=MIXER,name='PCM Playback Volume'
numid=2,iface=MIXER,name='Line DAC Playback Volume'
numid=5,iface=MIXER,name='LineL DAC Playback Volume'
numid=6,iface=MIXER,name='LineL Left PGA Bypass Playback Volume'
numid=8,iface=MIXER,name='LineL Line2 Bypass Playback Volume'
numid=3,iface=MIXER,name='LineL Playback Switch'
numid=9,iface=MIXER,name='LineR Line2 Bypass Playback Volume'
numid=4,iface=MIXER,name='LineR Playback Switch'
numid=7,iface=MIXER,name='LineR Right PGA Bypass Playback Volume'
numid=11,iface=MIXER,name='Mono DAC Playback Switch'
numid=10,iface=MIXER,name='Mono DAC Playback Volume'
[. . . ]
[. . . ]
Example:

# amixer cget numid=1
numid=1,iface=MIXER,name='PCM Playback Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=127,step=0
  : values=96,96
  | dBscale-min=-63.50dB,step=0.50dB,mute=0
Example:

# amixer cset numid=1 110
numid=1,iface=MIXER,name='PCM Playback Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=127,step=0
  : values=110,110
  | dBscale-min=-63.50dB,step=0.50dB,mute=0

On DM644x and DM355 EVMs, use the interface No.1 (Name = "PCM Playback Volume") to control the Output Volume and interface No.26 (Name = "PGA Capture Volume") to control the Capture Volume.

# amixer cset numid=56 on   # Right Line1R ON
# amixer cset numid=57 off  # Right Line1L OFF
# amixer cset numid=64 on   # Left Line1L ON
# amixer cset numid=65 off  # Left Line1R OFF
# amixer cset numid=59 off  # Right Mic3L  OFF
# amixer cset numid=60 off  # Right Mic3R  OFF
# amixer cset numid=67 off  # Left Mic3L  OFF
# amixer cset numid=68 off  # Left Mic3R  OFF
# amixer cset numid=56 off  # Right Line1R OFF
# amixer cset numid=57 off  # Right Line1L OFF
# amixer cset numid=64 off  # Left Line1L OFF
# amixer cset numid=65 off  # Left Line1R OFF
# amixer cset numid=59 off  # Right Mic3L  OFF
# amixer cset numid=60 on   # Right Mic3R  ON
# amixer cset numid=67 on   # Left Mic3L  ON
# amixer cset numid=68 off  # Left Mic3R  OFF
Leave a Comment
Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox