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.

rk3399 rockpi4 & wm8731 audioinjector stereo

Featured Replies

hello.

first i want to say thank you to every armbian supporter and the hole team. thanks for providing this nice project and your work.

 

i did some work for adding an external sound card - the audioinjector pi stereo, which is based on a wm8731.

i used the radxa rockpi4(b)  board based on the rk3399. i choose this board because of pinout header is nearly the same as the one you find on raspberrys. so adding/ using raspberry Hats won´t be too hart in this case.

this will also work with radxa kernel https://github.com/verplant23/kernel

so there shouldn´t be any troubles porting it to armbian legacy.

 

i´m not a coder and i don´t know about linux that much.  for most things this was try and error of code snippets + lot´s of time. 

i tried diffrent ways and there are diffrent ways how thing can be get to work - for sure you guys could make things work better because there are still errors while dmesg.

 

i used 20.05 dev kernel but basicly this also work on master or current. 

please post what you think of or how to improve.

 

install debs or build your own by adding userpatch from 

https://github.com/verplant23/armbian_patch.git

 

after installing / compiling follow up the armbian docs and add i2c7 by adding 

overlays=i2c7  

to your /boot/armbianEnv.txt

 

i wasn´t able to use armbian-add-overlay. because error told me that i don´t use the correct device...

you can use the dtbo inside repo. it was build with the radxa kernel repo (link above). you can find dts inside.  

add the folder /boot/overlay-user/  and copy audioinjector-wm8731-audio.dtbo inside

 

follow up the armbian docs and add 

user_overlays=audioinjector-wm8731-audio

to your /boot/armbianEnv.txt

 

after reboot 

cat /proc/asound/cards should show up the card

 

dmesg will show some error:

audioinjector-stereo sound-ext-card: snd_soc_register_card failed (-517)

 

but since dmesg | grep i2s will show

audioinjector-stereo sound-ext-card: wm8731-hifi <-> ff890000.i2s mapping ok

the device should work.

 

when getting no sound go to alsamixer and check the mute cases especially  Item: Output Mixer HiFi is not muted

 

you can make it sound-card-0 by default

sudo nano /etc/modprobe.d/alsa.conf

should be something like

alias snd-card-0 wm8731-hifi

alias snd-card-0 snd_soc_audioinjector_pi_soundcard
alias snd-card-0 snd_soc_simple_card
options snd slots=,hdmisound,rockchiprk3399,snd_soc_audio_graph_card

 

make sound-card-0 default device 

sudo nano /etc/asound.conf

defaults.pcm.card 0
defaults.ctl.card 0
 

have fun and keep healthy

 

Edited by verplant23

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.