I've made custom distribution using buildroot, with hard-flow for ARMv7 processor. Everything is working except....
# arecord -D hw:0,0 -fdat -d 5 test.wav
This makes multiple files. Thousands of them.
-rw-r--r-- 1 root root 958508 Jan 1 00:19 test-01.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-02.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-03.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-04.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-05.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-06.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-07.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-08.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-09.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-10.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-100.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-101.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-102.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-103.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-104.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-105.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-106.wav
And so on...
This happens if I pass -d parameter. Any idea?
The problem seems to appear on ARM architecture starting from 1.0.28 arecord version (arecord --version).
On Raspberry Pi 3 running Raspbian Jessie I managed to downgrade alsa-utils from 1.0.28-1 to 1.0.25-4 (rolling back to Wheezy's repo), so that fixed the problem:
sudo nano /etc/apt/sources.listdeb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
sudo apt-get updatesudo aptitude versions alsa-utils (this should show the old version to become available)sudo apt-get install alsa-utils=1.0.25-4arecord --version should display downgraded version 1.0.25
sudo nano /etc/apt/sources.listdeb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
sudo apt-mark hold alsa-utilsAs an alternative solution is to upgraded alsa-utils to the latest version 1.1.3 from source. This is how I have done it on my Raspberry Pi 3
mkdir ~/alsa-utilscd ~/alsa-utils/wget ftp://ftp.alsa-project.org/pub/utils/alsa-utils-1.1.3.tar.bz2tar xvjf alsa-utils-1.1.3.tar.bz2cd ~/alsa-utils/alsa-utils-1.1.3/sudo apt-get install libncursesw5-dev./configure --disable-alsaconf --disable-bat --disable-xmlto --with-curses=ncurseswmakesudo make installarecord --versionIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With