[alsa-devel] arecord doesnt record into file

Aditya Paluri Venkata.AdityaPaluri at synopsys.com
Fri May 24 15:54:39 CEST 2019


Hello all,

I use the below command:

arecord --device plughw:0,2 -r 48000 -f S16_LE -c 2 recorded_sound.wav

And as I see the audio stream getting dumped onto the DRAM/memory, I donot see recorded_sound.wav contain any data on the file system.
I have tried to use strace and I could only see "write" system call happen on the file only for writing the wav format header.

ioctl(4, _IOC(_IOC_READ|_IOC_WRITE, 0x41, 0x23, 0x88), 0x1ec27190) = 0
newfstatat(AT_FDCWD, "/home/root/recorded_wave.wav", 0x7fe8bfeb50, AT_SYMLINK_NOFOLLOW) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/root/recorded_wave.wav", O_WRONLY|O_CREAT, 0644) = 3
write(3, "RIFF$\0\0\200WAVE", 12)       = 12
write(3, "fmt \20\0\0\0", 8)            = 8
write(3, "\1\0\2\0\200\273\0\0\0\356\2\0\4\0\20\0", 16) = 16
write(3, "data\0\0\0\200", 8)           = 8
ioctl(4, _IOC(_IOC_READ|_IOC_WRITE, 0x41, 0x23, 0x88), 0x1ec27190) = 0
ioctl(4, _IOC(_IOC_READ, 0x41, 0x51, 0x18)[   24.145583] [   24.587069]  [0


I also see EPIPE error due to overrun.

, 0x7fe8bfeaa8) = -1 EPIPE (Broken pipe)
ioctl(4, _IOC(_IOC_READ|_IOC_WRITE, 0x41, 0x24, 0x98), 0x7fe8bfe9b0) = 0
write(2, "overrun!!! (at least 0.717 ms lo"..., 36overrun!!! (at least 0.717 ms long)
) = 36

Could you please help me in understanding why the recorded_sound.wav doesn't contain any data ?

BR\Thanks.
Aditya Paluri.



More information about the Alsa-devel mailing list