Can play sound, but not record.

Erik Christiansen erik at dd.nec.com.au
Tue May 15 05:51:54 UTC 2007


This works fine:

aplay -c 1 -t wav /usr/share/sounds/gaim/redalert.wav

with "Front" unmuted in alsamixer.

If Mic is simultaneously unmuted, there is acoustic feedback, so we know
the microphone, mixer, etc, are working. But the following attempts just
reproduce white noise with a couple of faint plink sounds, instead of
the sound of me thumping the microphone on the desk:

$ arecord  -D hw:0 -t raw -c 2 -f S16_LE -r48000 S16_LE.1
Recording raw data 'S16_LE.1' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
Aborted by signal Interrupt...

$ aplay -c 2 -t raw -r 48000 S16_LE.1
Playing raw data 'S16_LE.1' : Unsigned 8 bit, Rate 48000 Hz, Stereo

and:

$ arecord -D hw:0 -t wav -c 2  -f S16_LE -r48000 /tmp/record
Recording WAVE '/tmp/record' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
Aborted by signal Interrupt...

$ aplay -c 2 -t wav -f S16_LE /tmp/record          
Playing WAVE '/tmp/record' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo

It takes effort, but I'm remembering to unmute Mic before each
recording. Then aumix -q shows:

vol 0, 0             <- Front muted
speaker 97, 97
line 98, 88, P
mic 89, 89, R        <- Mic unmuted
cd 80, 80, P
pcm2 77, 77
igain 100, 100

The audio card is HDA Intel, with a Realtek ALC260 chip. I've followed

http://ubuntuguide.org/wiki/Breezy#How_to_configure_sound_to_work_properly_in_GNOME

but that made no difference. (I already had the libesd-alsa0 package,
but had to add /etc/asound.conf) I wonder if some more conf magic would
allow recording?

Erik
(A little frustrated after several days of unsuccessful attempts.)




More information about the ubuntu-users mailing list