# No sound card detected for Opi zero 2w

**URL:** https://dietpi.com/forum/t/no-sound-card-detected-for-opi-zero-2w/20133
**Category:** General Discussion
**Created:** [18 May 2024 07:37 UTC](https://dietpi.com/forum/t/no-sound-card-detected-for-opi-zero-2w/20133 "2024-05-18T07:37:21Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Totof](https://dietpi.com/forum/user_avatar/dietpi.com/totof/32/6390_2.png) [@Totof](https://dietpi.com/forum/u/Totof)
#### Post date: [18 May 2024 07:37 UTC](https://dietpi.com/forum/t/no-sound-card-detected-for-opi-zero-2w/20133/1 "2024-05-18T07:37:21Z")

</div>

Hello everyone

I use a fresh Dietpi image for my orangepi zero 2w with lms and chromium as autostart

Everything is ok for the screen but no sound on the board

The command aplay -L return “no soundcard found”

A have the additional board with jack, ethernet, usb and button via the 24 pin connector and the screen connected via HDMI

I put in config.txt a line  
Dtparam audio = on, without succes

If someone have an idea

Best regards

---

<div class="post-metadata">

### Author: ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)
#### Post date: [18 May 2024 15:33 UTC](https://dietpi.com/forum/t/no-sound-card-detected-for-opi-zero-2w/20133/2 "2024-05-18T15:33:22Z")

</div>

Did you turn on the sound card with `dietpi-config -> audio options`?

---

<div class="post-metadata">

### Author: ![Totof](https://dietpi.com/forum/user_avatar/dietpi.com/totof/32/6390_2.png) [@Totof](https://dietpi.com/forum/u/Totof)
#### Post date: [18 May 2024 16:21 UTC](https://dietpi.com/forum/t/no-sound-card-detected-for-opi-zero-2w/20133/3 "2024-05-18T16:21:56Z")

</div>

Hello

Yes i did it but i’ve just “default” as choice and the command aplay in the terminal just said “no soundcard found”

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [26 May 2024 11:37 UTC](https://dietpi.com/forum/t/no-sound-card-detected-for-opi-zero-2w/20133/4 "2024-05-26T11:37:16Z")

</div>

ping @MichaIng Maybe you can have a look to the sound option problem

---

<div class="post-metadata">

### Author: ![Totof](https://dietpi.com/forum/user_avatar/dietpi.com/totof/32/6390_2.png) [@Totof](https://dietpi.com/forum/u/Totof)
#### Post date: [27 May 2024 12:25 UTC](https://dietpi.com/forum/t/no-sound-card-detected-for-opi-zero-2w/20133/5 "2024-05-27T12:25:14Z")

</div>

Hello  
With lsmod there i’s no SND modules loaded

If you have an idea ☺

---

<div class="post-metadata">

### Author: ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)
#### Post date: [28 May 2024 10:00 UTC](https://dietpi.com/forum/t/no-sound-card-detected-for-opi-zero-2w/20133/6 "2024-05-28T10:00:02Z")

</div>

> [@Totof](#):
>
> I put in config.txt a line  
> Dtparam audio = on, without succes

This file should not exist on the Orange Pi, as it is a Raspberry Pi only file, and this `dtparam=audio=on` has no effect on any other hardware.

So you use a HAT which adds an audio jack? Please check the documentation of this HAT, whether it requires certain interfaces to be active on certain pins. I2C, SPI etc are mostly disabled by default, AFAIK, at least there are overlays to enable them.

---

<div class="post-metadata">

### Author: ![Totof](https://dietpi.com/forum/user_avatar/dietpi.com/totof/32/6390_2.png) [@Totof](https://dietpi.com/forum/u/Totof)
#### Post date: [28 May 2024 10:07 UTC](https://dietpi.com/forum/t/no-sound-card-detected-for-opi-zero-2w/20133/7 "2024-05-28T10:07:40Z")

</div>

Hello Micha  
I would use à I2S Dac pcm5102 or 5122 with pin configurable according to the i2s pin of the h618  
But i d’ont see an overlay for that  
Have you one

My config to test is Dietpi with lms squeezelite with radio, external drive mounted with samba and wifi

I have an other config in the same way with a rpi4b

Thanks for your answer

---

<div class="post-metadata">

### Author: ![Totof](https://dietpi.com/forum/user_avatar/dietpi.com/totof/32/6390_2.png) [@Totof](https://dietpi.com/forum/u/Totof)
#### Post date: [28 May 2024 10:35 UTC](https://dietpi.com/forum/t/no-sound-card-detected-for-opi-zero-2w/20133/8 "2024-05-28T10:35:23Z")

</div>

Perhaps this link for testing  
I try later

> **[GitHub - elkoni/Opi\_Zero\_3\_I2S3\_5.4: Orange Pi Zero 3 ( H618 ) I2S3 digital...](https://github.com/elkoni/Opi_Zero_3_I2S3_5.4)**
>
> Orange Pi Zero 3 ( H618 ) I2S3 digital audio output - elkoni/Opi\_Zero\_3\_I2S3\_5.4

---

<div class="post-metadata">

### Author: ![Totof](https://dietpi.com/forum/user_avatar/dietpi.com/totof/32/6390_2.png) [@Totof](https://dietpi.com/forum/u/Totof)
#### Post date: [30 May 2024 07:43 UTC](https://dietpi.com/forum/t/no-sound-card-detected-for-opi-zero-2w/20133/9 "2024-05-30T07:43:25Z")

</div>

Hello after some test, it’s not working with this overlay in the link posted earlier

To be continued 😊

---

<div class="post-metadata">

### Author: ![Totof](https://dietpi.com/forum/user_avatar/dietpi.com/totof/32/6390_2.png) [@Totof](https://dietpi.com/forum/u/Totof)
#### Post date: [3 June 2024 09:46 UTC](https://dietpi.com/forum/t/no-sound-card-detected-for-opi-zero-2w/20133/10 "2024-06-03T09:46:45Z")

</div>

Hello all  
For Micha , y try a sudo modprobe snd-aloop and snd-dummy  
the files are in /lib/modules/6.6.31-current-sunxi64/kernel/sound/drivers  
in fact i 've two card selectable now in the dietpi-config menu

have you an idea to enable the audio analog output present on the extension board  
and the top a i2s3 acces via .ko files

thanks a lot for your response

 ![Capture d’écran du 2024-06-02 19-25-56](https://dietpi.com/forum/uploads/default/original/2X/e/e30bff8d5e4ea27f86806703052ff8c4a675c009.png)

---

<div class="post-metadata">

### Author: ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)
#### Post date: [3 June 2024 15:09 UTC](https://dietpi.com/forum/t/no-sound-card-detected-for-opi-zero-2w/20133/11 "2024-06-03T15:09:07Z")

</div>

> [@Totof](#):
>
> Hello after some test, it’s not working with this overlay in the link posted earlier

How did you try to apply this custom overlay? Our boot scripts work different than the ones from Xunlong, so the way described in this repo cannot work. Also the overlay is for a different, much older vendor kernel.

> [@Totof](#):
>
> have you an idea to enable the audio analog output present on the extension board  
> and the top a i2s3 acces via .ko files

Just loading drivers without related device tree node won’t work. The idea to enable it via overlay was right already. But it needs to be done correctly, and the related node needs to be known. The correct driver/kernel module will then be loaded automatically.

---

<div class="post-metadata">

### Author: ![Totof](https://dietpi.com/forum/user_avatar/dietpi.com/totof/32/6390_2.png) [@Totof](https://dietpi.com/forum/u/Totof)
#### Post date: [3 June 2024 18:14 UTC](https://dietpi.com/forum/t/no-sound-card-detected-for-opi-zero-2w/20133/12 "2024-06-03T18:14:40Z")

</div>

> [@MichaIng](#):
>
> to be done correctly, and the related node needs to be known

Thanks for your answer Micha

So the correct way is to write an overlay as sun50i-h618-i2s.dtbo and a tree as a i2s.dts as in this link [Opi\_Zero\_3\_I2S3\_6.1/sun50i-h616-i2s3\_v2.dts at ebfc78dd6f6464b2c39d57f3c681559695edf172 · elkoni/Opi\_Zero\_3\_I2S3\_6.1 · GitHub](https://github.com/elkoni/Opi_Zero_3_I2S3_6.1/blob/ebfc78dd6f6464b2c39d57f3c681559695edf172/sun50i-h616-i2s3_v2.dts)

Need to learn much more , i have a great work to do with

---

<div class="post-metadata">

### Author: ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)
#### Post date: [3 June 2024 21:50 UTC](https://dietpi.com/forum/t/no-sound-card-detected-for-opi-zero-2w/20133/13 "2024-06-03T21:50:55Z")

</div>

Generally, custom overlays can be applied like this:

```sh
mkdir -p /boot/overlay-user
wget 'https://raw.githubusercontent.com/elkoni/Opi_Zero_3_I2S3_5.4/main/sun50i-h616-i2s3.dtbo' -O /boot/overlay-user/i2s3.dtbo
G_CONFIG_INJECT 'user_overlays=' 'user_overlays=i2s3' /boot/dietpiEnv.txt

```

I.e. use the `/boot/overlay-user` directory and apply the name of the file without `.dtbo` ending to the `user_overlays` setting in `/boot/dietpiEnv.txt`.

---

<div class="post-metadata">

### Author: ![Totof](https://dietpi.com/forum/user_avatar/dietpi.com/totof/32/6390_2.png) [@Totof](https://dietpi.com/forum/u/Totof)
#### Post date: [4 June 2024 04:43 UTC](https://dietpi.com/forum/t/no-sound-card-detected-for-opi-zero-2w/20133/14 "2024-06-04T04:43:54Z")

</div>

Thanks a lot Micha  
I try later this week and tell you  
Have a good day

---

<div class="post-metadata">

### Author: ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)
#### Post date: [4 June 2024 12:01 UTC](https://dietpi.com/forum/t/no-sound-card-detected-for-opi-zero-2w/20133/15 "2024-06-04T12:01:34Z")

</div>

Here is a PR at Armbian to add onboard audio support. I checked again hardware info, and analogue audio is directly tied to one of the GPIO pins. If your expansion port is using this, then it should enable our 3.5mm jack as well. I will do a test kernel build later today, with this PR included: [Sound Allwinner H616 H618 SOCs by stephengraf · Pull Request #6694 · armbian/build · GitHub](https://github.com/armbian/build/pull/6694)

---

<div class="post-metadata">

### Author: ![Totof](https://dietpi.com/forum/user_avatar/dietpi.com/totof/32/6390_2.png) [@Totof](https://dietpi.com/forum/u/Totof)
#### Post date: [8 June 2024 09:34 UTC](https://dietpi.com/forum/t/no-sound-card-detected-for-opi-zero-2w/20133/16 "2024-06-08T09:34:02Z")

</div>

Hello Micha

I go further in my research with the zero 2w with the official opi os the hdmi and 3.5mm jack work perfectly on the expansion board

I try under Dietpi to add te I2S3 overlay without succès with your link

have you info about kernel build from your last post

I dream to use Dietpi with the expansion board first and with my I2S dac after  
i 've just finish to solder the 40 pin to test it 😉

Have a good day

---

<div class="post-metadata">

### Author: ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)
#### Post date: [8 June 2024 10:59 UTC](https://dietpi.com/forum/t/no-sound-card-detected-for-opi-zero-2w/20133/17 "2024-06-08T10:59:44Z")

</div>

I’m doing a kernel build with this feature added: [Armbian · MichaIng/DietPi@6c04c86 · GitHub](https://github.com/MichaIng/DietPi/actions/runs/9428217376)

Once this has finished, please try this:

```sh
sed -i '/^user_overlays=/d' /boot/dietpiEnv.txt
cd /tmp
wget https://dietpi.com/downloads/binaries/testing/linux-{image,dtb}-current-sunxi64.deb
dpkg -i linux-{image,dtb}-current-sunxi64.deb
rm linux-{image,dtb}-current-sunxi64.deb
reboot

```

Let’s see whether this works OOTB.

---

<div class="post-metadata">

### Author: ![Totof](https://dietpi.com/forum/user_avatar/dietpi.com/totof/32/6390_2.png) [@Totof](https://dietpi.com/forum/u/Totof)
#### Post date: [9 June 2024 18:18 UTC](https://dietpi.com/forum/t/no-sound-card-detected-for-opi-zero-2w/20133/18 "2024-06-09T18:18:40Z")

</div>

Hello Micha

I’ve tested your last command without effect on the soundcard detection under my Dietpi config

I install the image for opizero3 desktop from your Armbian link  
Miracle i have sound come from the hdmi of the expansion board

i go further in my test

---

<div class="post-metadata">

### Author: ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)
#### Post date: [9 June 2024 19:44 UTC](https://dietpi.com/forum/t/no-sound-card-detected-for-opi-zero-2w/20133/19 "2024-06-09T19:44:10Z")

</div>

Okay, the PR was also tested on Zero 3. While both use the same kernel, the Zero 2W device tree is a different one. Can you test the following on the DietPi system with the new kernel:

```sh
G_CONFIG_INJECT 'fdtfile=' 'fdtfile=allwinner/sun50i-h618-orangepi-zero3.dtb' /boot/dietpiEnv.txt

```

It should match the Armbian image you tested.

I pushed this kernel to our APT repo in the meantime, so in case you use the older kernel:

```sh
apt update
apt upgrade

```

or upgrade to DietPi v9.5 which was just released.

---

<div class="post-metadata">

### Author: ![urostor](https://dietpi.com/forum/user_avatar/dietpi.com/urostor/32/1891_2.png) [@urostor](https://dietpi.com/forum/u/urostor)
#### Post date: [9 June 2024 21:04 UTC](https://dietpi.com/forum/t/no-sound-card-detected-for-opi-zero-2w/20133/20 "2024-06-09T21:04:12Z")

</div>

I just tested the overlay. Indeed the onboard HDMI audio works now. There is a warning about “one stream supported” but it just works.

[Next page](https://dietpi.com/forum/t/no-sound-card-detected-for-opi-zero-2w/20133.md?page=2)
