It sounds like the speakers and the headphones are being treated as two separate devices by linux.
Your sound card, must have more than one 'device' on it.
Try using the alsa tools.
1. first fire up alsamixer and have a look at the various devices that it reports. You can press F4, F5, F6 to choose input, output or all devices shown.
Make sure that everything has some volume associated with it.
2. try running
to get the names of the various devices associated with your card. note that
gives a different output.
I am somewhat hazy on how the various pieces of hardware get their names, but see below for the output I get on my system.
You will note that sometimes the name occurs twice once for DEV=0, and once for DEV=1. usually one is Analog, and the other is Digital.
3. Once you have names you can try commands like:
aplay -D<devicename> <soundfilename>
e.g. aplay -D default:0,0 saxaphone.wav
or possibly aplay -Ddefault:0,1 where 0,1 is the other (digital) ouput channel on card 0.
The :0 here is the card id. If you had more than one on your sysem you could say :1 :2 etc.
Some possible choices for device name are:
default, plughw, hw, surround40, ......
Work your way thru the various choices you got from the aplay -L cmd above. Let us know how it goes.
If aplay -l works, then the following cmd should also work:
Code: Select all
speaker-test -c2 -l3 -twav -D<devname>:0
where the -D stuff is the same as you got working with aplay.
the -c2, says two channels. the -l3 says loop 3 times. the -twav chooses the human voice (as opposed to -tsine).
If all of this works, your alsa is OK. Other sources of problems might be pulseaudio seizing control of things, or applications not connecting to the driver properly.
pgmer6809
+++++++++++++++++++++++++++++++++++++++++++++
I have highlighted the device names portion of the output in bold.
aplay -L #Note this is UPPER case L, not lower case l. Lower case l gives a different output.
arecord -L #gives the same output as aplay -L
default
Playback/recording through the PulseAudio sound server
sysdefault:CARD=PCH
HDA Intel PCH, ALC889 Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC889 Analog
Front speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, ALC889 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, ALC889 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, ALC889 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, ALC889 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, ALC889 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
HDA Intel PCH, ALC889 Digital
IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=PCH,DEV=0
HDA Intel PCH, ALC889 Analog
Direct sample mixing device
dmix:CARD=PCH,DEV=1
HDA Intel PCH, ALC889 Digital
Direct sample mixing device
dsnoop:CARD=PCH,DEV=0
HDA Intel PCH, ALC889 Analog
Direct sample snooping device
dsnoop:CARD=PCH,DEV=1
HDA Intel PCH, ALC889 Digital
Direct sample snooping device
hw:CARD=PCH,DEV=0
HDA Intel PCH, ALC889 Analog
Direct hardware device without any conversions
hw:CARD=PCH,DEV=1
HDA Intel PCH, ALC889 Digital
Direct hardware device without any conversions
plughw:CARD=PCH,DEV=0
HDA Intel PCH, ALC889 Analog
Hardware device with all software conversions
plughw:CARD=PCH,DEV=1
HDA Intel PCH, ALC889 Digital
Hardware device with all software conversions