Edge2 IO Board Audio Stops Working

Which system do you use? Android, Ubuntu, OOWOW or others?

Android

Which version of system do you use? Please provide the version of the system here:

Edge2-android-13-v20240611

Please describe your issue below:

The audio on the IO board stops working when media content is reloaded.
I tested this on the Left Speaker and Right Speaker connectors (onboard amplifier) with very small 4ohm speakers and I also tested this with the 3.5mm TRS lineout, both produce the same result.

The problem is when i play a video from boot it works fine. However if i stop the content, for example I refresh the page on chrome where the video is playing and i restart chrome app, the sounds completely stops working. All i can hear after that if very faint electrical noise coming from the speaker.

The only way to fix is by restarting the edge 2, but for me thats not an option.

Here is output of
logcat -b all

@ii_ltd
Can you upload a video of the operation to us?

Here is the video

At 2:01 and 4:07, you can hear a pop when I close the app, after the first pop, there is no more audio.

At 2:47 you can hear the electrical interference. This sound is the same for all speakers and headphones I tested so it is definitely not coming from the active speaker amp.

So to clarify exactly how I reproduce this failure:

  1. Open chrome youtube content
  2. Play content
  3. Refresh the youtube page and kill the chrome app
  4. Open chrome app
  5. Play youtube content, no audio.

@ii_ltd
Thank you, We will test this issue and feedback.

@ii_ltd
We have fixed this issue on Android 14. We are currently preparing to release the Android 14 system and plan to release it in mid November. We will follow up to fix this issue after the Android release is completed.

@william.lin
Thank you for letting me know that you are working on this.
However, I cannot use Android 14 in the current state for this project and I must use Android 13. I already have a build environment for edge2 AOSP13. Is this something I could potentially fix myself in the Android 13 build?

@ii_ltd ,
The patch for Android 14 is not applicable to Android 13. It seems that the edge2-android-13-v231123 version does not have this issue. We will check this problem as soon as possible.

Okay thank you.
As a temporary fix I used a small CM108 USB DAC with a small amplifier board. The audio with this DAC works perfectly on Edge2-android-13-v20240611

@ii_ltd

commit 003ce77a64dc05b92e403a6aeb667b36579e266b (HEAD -> khadas-edge2-android13)
Date:   Thu Nov 7 17:57:43 2024 +0800

    sound: fix abnormal headphone sound for commit "sound: fix pop for es8316"

diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dtsi b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dtsi
index 23ad96ca72e3..d21e363a9fbe 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dtsi
@@ -1605,6 +1605,7 @@
 
 &i2s0_8ch {
        status = "okay";
+       rockchip,always-on;
        pinctrl-0 = <&i2s0_lrck
                     &i2s0_sclk
                     &i2s0_sdi0

Perfect! This worked.
Thank you