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.

Rock Pi S - Audio Support

Featured Replies

Hi everyone!

 

I am struggling with audio input.

 

Output audio from LINEOUT pins works fine out-of-the-box!

 

What about the audio input?
To begin with I have tested the arecord command with these error messages…

 

TEST 1

root@rockpi-s:~# arecord -f S16_LE -d 10 -r 16000 --device=“hw:0,0” test-mic.wav
Recording WAVE ‘test-mic.wav’ : Signed 16 bit Little Endian, Rate 16000 Hz, Mono
arecord: set_params:1358: Channels count non available

 

TEST 2

root@rockpi-s:~# arecord -f S16_LE -c 2 -d 10 -r 16000 --device=“hw:0,0” test-mic.wav
Recording WAVE ‘test-mic.wav’ : Signed 16 bit Little Endian, Rate 16000 Hz, Stereo
arecord: set_params:1416: Unable to install hw params:
ACCESS: RW_INTERLEAVED
FORMAT: S16_LE
SUBFORMAT: STD
SAMPLE_BITS: 16
FRAME_BITS: 32
CHANNELS: 2
RATE: 16000
PERIOD_TIME: 125000
PERIOD_SIZE: 2000
PERIOD_BYTES: 8000
PERIODS: 4
BUFFER_TIME: 500000
BUFFER_SIZE: 8000
BUFFER_BYTES: 32000
TICK_TIME: 0

 

Any suggestions?

  • Author

Hi again!

 

Todays update:

 

When doing the dmesg command it returns the following below.
How to interpret these error messages?

 

root@rockpi-s:~# dmesg
[  375.793438] rockchip-i2s-tdm ff320000.i2s: ASoC: error at snd_soc_dai_hw_params on ff320000.i2s: -22
[  375.793546]  ff320000.i2s-rk3308-hifi: ASoC: error at __soc_pcm_hw_params on ff320000.i2s-rk3308-hifi: -22

Edited by danj

Did you ever figure out how to get this working?

 

Is the headphone jack on the PoE HAT actually a TRRRS with a mic input connection like on a computer?

I know to activate the headphone jack you have to enable a GPIO, maybe there's also one for the mic?

 

I have settings matching the capabilities, but no joy. I always get "set_params:1416: Unable to install hw params:"

Edited by Meestor_X

arecord -f dat -D plughw:analog

Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
arecord: set_params:1416: Unable to install hw params:
ACCESS:  RW_INTERLEAVED
FORMAT:  S16_LE
SUBFORMAT:  STD
SAMPLE_BITS: 16
FRAME_BITS: 32
CHANNELS: 2
RATE: 48000
PERIOD_TIME: 125000
PERIOD_SIZE: 6000
PERIOD_BYTES: 24000
PERIODS: 4
BUFFER_TIME: 500000
BUFFER_SIZE: 24000
BUFFER_BYTES: 96000
TICK_TIME: 0

 

You can find this information on the Rock Pi S PoE Hat Wiki, but you need to write some GPIO values to enable the headphone jack.
 

# echo 15 > /sys/class/gpio/export 
# echo out > /sys/class/gpio/gpio15/direction
# echo 1 > /sys/class/gpio/gpio15/value

 

To persist this across reboots you can create a `systemd-tmpfile` at `/etc/tmpfiles.d/enable-audio-jack.conf` with the following contents.
 

w /sys/class/gpio/export - - - - 15
w /sys/class/gpio/gpio15/direction - - - - out
w /sys/class/gpio/gpio15/value - - - - 1

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...

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.