1 1
gogol

OPI zero [bionic] alsa hangs with recording

Recommended Posts

Armbianmonitor:

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!

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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?

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
1 1