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.

OrangePi 4 LTS microphone issue

Featured Replies

Hi, I installed recent server armbian on orangepi pc 4 and trying to make the microphone work

The command I use 

 

arecord -D hw:0,0 -f cd -d 5 test.wav

 

The setup

root@orangepi4-lts:~# uname -a
Linux orangepi4-lts 6.6.62-current-rockchip64 #2 SMP PREEMPT Sun Nov 17 14:08:59 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux
root@orangepi4-lts:~# cat /etc/issue
Armbian 24.11.1 Noble \l 

root@orangepi4-lts:~# arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: rockchipes8316c [rockchip-es8316c], device 0: ff880000.i2s-ES8316 HiFi ES8316 HiFi-0 [ff880000.i2s-ES8316 HiFi ES8316 HiFi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: hdmisound [hdmi-sound], device 0: ff8a0000.i2s-i2s-hifi i2s-hifi-0 [ff8a0000.i2s-i2s-hifi i2s-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

What could be the issue?

I tried to change alsamixer levels, but it didn't help. I still hear just some white noise when listen to test.wav

Any ideas ?

image.thumb.png.ce30da8e03ecc4c4bf7fe5c958d2d660.pngA

Hi ,

 

some issues her too with my OPI 4 LTS. 

can you show me the output of

aplay -L

 

and start recording, give me the output of

cd /sys/kernel/debug/clk

cat clk_summary  | head -3 && cat clk_summary  | grep i2s
 

I interested to compare to my  linux kernel 6.12.11

 

Thanks

 

 

 

 

Hi,

I got my recording from Headphone Mic fixed.
 

Here is what I make work for me:

a)

have pinctrl-0..2 set in the i2s0

b)

make sure the reg=0x11 for the i2c1-codec

c)

add the Mic Bias.

 

Tested with 6.12.12 which got a fix es8316 codec.

 

&i2s0 {                 
        status = "okay";
        pinctrl-names = "mclk", "bclk_on", "bclk_off";
        pinctrl-0 = <&i2s_8ch_mclk>;
        pinctrl-1 = <&i2s0_8ch_bus>;
        pinctrl-2 = <&i2s0_8ch_bus_bclk_off>;
        resets = <&cru SRST_I2S0_8CH>, <&cru SRST_H_I2S0_8CH>;
        reset-names = "reset-m", "reset-h";
        rockchip,playback-channels = <2>;
        rockchip,capture-channels = <2>;
        #sound-dai-cells = <0>;
};      
 
&i2c1 {                 
        status = "okay";
        i2c-scl-rising-time-ns = <300>;
        i2c-scl-falling-time-ns = <15>;
        clock-frequency = <200000>;
                
        es8316c_codec: audio-codec@11 {
                compatible = "everest,es8316";
                reg = <0x11>;
                #sound-dai-cells = <0>;
                clocks = <&cru SCLK_I2S_8CH_OUT>;
                clock-names = "mclk";
                status = "okay";
        };
};      
        es8316c_card: es8316c-card {
                compatible = "simple-audio-card";
                pinctrl-names = "default";
                pinctrl-0 = <&hp_det>;

                simple-audio-card,format = "i2s";
                simple-audio-card,name = "rockchip-es8316c";
                simple-audio-card,mclk-fs = <256>;
                simple-audio-card,hp-det-gpio = <&gpio4 RK_PD4 GPIO_ACTIVE_HIGH>;
        
                simple-audio-card,widgets =
                        "Microphone", "Mic Jack",
                        "Headphone", "Headphones";
        
                simple-audio-card,routing =
                        "Mic Jack", "Mic Bias",
                        "MIC1", "Mic Jack",
                        "Headphones", "HPOL",
                        "Headphones", "HPOR";

                simple-audio-card,cpu {
                        sound-dai = <&i2s0>;
                };
        
                simple-audio-card,codec {
                        sound-dai = <&es8316c_codec>;
                };
        };

 

  • Werner changed the title to OrangePi 4 LTS microphone issue

Hi @jock,

 

If people like to use the onboard Microphone of the OPI 4 LTS, need to change MIC1 -> MIC2:

simple-audio-card,routing =
                        "Mic Jack", "Mic Bias",
                        "MIC2", "Mic Jack",
                        "Headphones", "HPOL",
                        "Headphones", "HPOR";

 

Chris

 

 

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.