Jump to content

Recommended Posts

Posted

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

 

 

Posted

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?

 

Posted

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?

 

Posted

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?
 

Posted

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

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines