TRay Posted 1 hour ago Posted 1 hour ago How to disable HDMI and CODEC in system where is ne kernel 6.18.25 cat /proc/asound/cards 0 [Codec ]: sun4i-codec - H616 Audio Codec h616-audio-codec 1 [HDMI ]: HDMI - HDMI HDMI 2 [Device ]: USB-Audio - USB PnP Sound Device C-Media Electronics Inc. USB PnP Sound Device at usb-5200400.usb-1, full speed I need an always USB sound card with the number of 0 0 Quote
TRay Posted 28 minutes ago Author Posted 28 minutes ago After updating the system, when the 6.12.x kernel was updated to 6.18.25, the audio codec and HDMI codecs appeared in the list, which caused the USB sound card to be renumbered from 0 to 2. I know I can change the number from 0 to 2, but there's a system image that users use with their configuration, which previously had the card number set to 0. As a result of the system update, everyone lost communication with the sound card in the application. I'm looking for a solution to restore the system so that the USB sound card remains number 0. If anyone has any good advice on how to make the USB sound card permanently have number 0 in the list or how to block Codec and HDMI audio in the system so that they are not present? 0 Quote
Werner Posted 27 minutes ago Posted 27 minutes ago I suggest to create a device tree overlay to disable both. 0 Quote
TRay Posted 9 minutes ago Author Posted 9 minutes ago Ok tried: /dts-v1/; /plugin/; / { compatible = "allwinner,sun50i-h616"; fragment@0 { target = <&codec>; __overlay__ { status = "disabled"; }; }; fragment@1 { target = <&hdmi_sound>; __overlay__ { status = "disabled"; }; }; }; and run armbian-add-overlay disable-internal-audio.dts But after reboot, still Codec and HDMI exist in the list of cards Maybe I wrote the overlay file? 0 Quote
Werner Posted 7 minutes ago Posted 7 minutes ago Check uboot logs if the overlay has been loaded correctly. You may need an usb uart adapter for this. 0 Quote
TRay Posted 4 minutes ago Author Posted 4 minutes ago Unfortunately, there's no technical way to connect to the UART to see. I'm not sure if I got the names right. Maybe the HDMI and audio codecs have different names in the tree devices ? Is there any way to find them? 0 Quote
Werner Posted just now Posted just now I don't know the names either. I suggest to look at the original device tree by decompiling it: dtc -I dtb -O dts /boot/dtb/allwinner/whateverthenameofthezero3devicetreewas.dtb 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.