Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

OPI zero [bionic] alsa hangs with recording

Featured Replies

I have installed the most current Armbian Bionic to a Orange PI zero (512MB).

 

I can't record anything from microphone, as the recording process just hangs forver (blocks).

 

arecord -l gives the following output:

**** List of CAPTURE Hardware Devices ****
card 0: Codec [H3 Audio Codec], device 0: CDC PCM Codec-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

arecord -d2 test.wav  gives the following output, but hangs till killed with Ctrl-C

Recording WAVE 'test.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono

ffmpeg -f alsa -i hw:0 -t 5 test1.wav  gives the following output, and hangs as well forever:

ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 7 (Ubuntu/Linaro 7.3.0-16ubuntu3)
  configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/arm-linux-gnueabihf --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100

So I am currently clueless, what to do next.

 

Thanks for any further hints!

  • Author

If I strace arecord, i see that arecord spawns one child process, which will repeat the following actions

write(6, "W", 1)                        = 1
write(6, "W", 1)                        = 1
write(6, "W", 1)                        = 1
read(5, "WWW", 10)                      = 3
write(7, "\1\0\0\0\0\0\0\0", 8)         = 8
read(5, 0xb2789c30, 10)                 = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=5, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}], 3, 1498) = 1 ([{fd=9, revents=POLLIN}])
read(9, "\1\0\0\0\0\0\0\0", 8)          = 8
read(5, 0xb2789c30, 10)                 = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=5, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}], 3, 1496) = 0 (Timeout)
getpid()                                = 12713

the pif returned from getpid() is the pid of the parent process.

  • Author
On 8/21/2019 at 8:58 AM, lanefu said:


Which kernel are you running?

armbianmonitor -u can help supply more troubleshooting info.

see the first line in my initial message:

Armbianmonitor:

http://ix.io/1SHw

  • Author
On 8/21/2019 at 8:58 AM, lanefu said:

armbianmonitor -u can help supply more troubleshooting info.

how i may find out about the temporarily unavailable resource, strace is reporting?

 

 

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.