sminder Posted April 6 Posted April 6 I installed the image https://dl.armbian.com/orangepizero2w/Bookworm_current_minimal on my Orange Pi Zero 2W board. But when I tied to check sound from the headphone interface on the expansion board I have a problem: user@orangepizero2w:~$ aplay -l aplay: device_list:274: no soundcards found... There is no chance to turn it on even through DTB overlay in armbian-config because there is no sound card in there. How to make sound work in this board with Armbian? 0 Quote
mike19 Posted April 6 Posted April 6 (edited) The sound is deactivated in the device tree. I activated it directly in the device tree. It may not be a nice solution, but it works for now. I can try to write an overlay as soon as I will find some time. You can also try the image for the orange pi zero 3 Edited April 6 by mike19 0 Quote
mike19 Posted April 10 Posted April 10 You can see my changes in bolt codec@05096000 { #sound-dai-cells = <0x00>; compatible = "allwinner,sun50i-h616-codec"; reg = <0x5096000 0x31c>; interrupts = <0x00 0x3a 0x04>; clocks = <0x02 0x5d 0x02 0x5b 0x02 0x5c>; clock-names = "apb\0audio-codec-1x\0audio-codec-4x"; resets = <0x02 0x24>; dmas = <0x0d 0x06>; dma-names = "tx"; status = "okay"; phandle = <0x50>; }; ahub_dam_plat@5097000 { #sound-dai-cells = <0x00>; compatible = "allwinner,sunxi-snd-plat-ahub_dam"; reg = <0x5097000 0x1000>; resets = <0x02 0x25>; clocks = <0x02 0x5b 0x02 0x5c 0x02 0x5e 0x02 0x5f>; clock-names = "clk_pll_audio\0clk_pll_audio_4x\0clk_audio_hub\0clk_bus_audio_hub"; status = "okay"; phandle = <0x51>; }; ahub1_plat { #sound-dai-cells = <0x00>; compatible = "allwinner,sunxi-snd-plat-ahub"; apb_num = <0x01>; dmas = <0x0d 0x04 0x0d 0x04>; dma-names = "tx\0rx"; playback_cma = <0x80>; capture_cma = <0x80>; tx_fifo_size = <0x80>; rx_fifo_size = <0x80>; tdm_num = <0x01>; tx_pin = <0x00>; rx_pin = <0x00>; status = "okay"; phandle = <0x0f>; }; ahub1_mach { compatible = "allwinner,sunxi-snd-mach"; soundcard-mach,name = "HDMI"; soundcard-mach,format = "i2s"; soundcard-mach,frame-master = <0x0e>; soundcard-mach,bitclock-master = <0x0e>; soundcard-mach,slot-num = <0x02>; soundcard-mach,slot-width = <0x20>; status = "okay"; phandle = <0x52>; soundcard-mach,cpu { sound-dai = <0x0f>; soundcard-mach,pll-fs = <0x04>; soundcard-mach,mclk-fs = <0x00>; phandle = <0x0e>; }; soundcard-mach,codec { sound-dai = <0x10>; phandle = <0x53>; }; }; gpu@1800000 { compatible = "allwinner,sun50i-h616-mali\0arm,mali-bifrost"; reg = <0x1800000 0x40000>; interrupts = <0x00 0x5f 0x04 0x00 0x60 0x04 0x00 0x61 0x04>; interrupt-names = "job\0mmu\0gpu"; clocks = <0x02 0x23 0x02 0x24>; clock-names = "core\0bus"; resets = <0x02 0x03>; status = "okay"; mali-supply = <0x11>; phandle = <0x54>; }; 0 Quote
mike19 Posted April 10 Posted April 10 You also have to do as described here: https://dietpi.com/forum/t/no-sound-card-detected-for-opi-zero-2w/20133/26 /usr/bin/amixer -c 0 set 'Left Output Mixer DACL' 100% unmute /usr/bin/amixer -c 0 set 'Left Output Mixer DACR' 100% unmute /usr/bin/amixer -c 0 set 'Right Output Mixer DACL' 100% unmute /usr/bin/amixer -c 0 set 'Right Output Mixer DACR' 100% unmute 0 Quote
ZjemCiKolege Posted April 10 Posted April 10 Or install the Orange Pi Zero 3 image with the 6.13.7 edge kernel. On the Zero 2W image, the edge kernel doesn't boot. 0 Quote
sminder Posted Sunday at 04:50 PM Author Posted Sunday at 04:50 PM (edited) Thanks guys for your suggestions. I've just tried to use Orange Pi 3 image (Armbian_community_25.5.0-trunk.399_Orangepizero3_bookworm_current_6.12.20_minimal.img) but something went wrong. The audio device is visible in a system: aplay -l **** List of PLAYBACK Hardware Devices **** card 0: audiocodec [audiocodec], device 0: CDC PCM Codec-0 [CDC PCM Codec-0] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: HDMI [HDMI], device 0: ahub_plat-i2s-hifi i2s-hifi-0 [ahub_plat-i2s-hifi i2s-hifi-0] Subdevices: 1/1 Subdevice #0: subdevice #0 but I still can't play anything because of the error: aplay -D hw:0,0 /usr/share/sounds/alsa/Front_Center.wav Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono aplay: pcm_write:2127: write error: Input/output error I can't find a release with 6.13.7 kernel. Edited Sunday at 04:50 PM by sminder 0 Quote
Recommended Posts
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.