Jump to content

avlev

Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by avlev

  1. 8 часов назад, jock сказал:

    @avlevglad you solved easily the problem. Legacy kernel received much less attention and indeed the audio codec part is missing in the dtb.

    Legacy dtb requires a full refresh starting from the mainline dtb, but honestly it is becoming less important as multimedia things are progressing in the mainline kernel.

    There are still problems. Analog audio works, but with the wrong bitrate. The sound is faster and several tones higher than necessary. I wouldn't use legacy, but I need a GPU-enabled gstreamer. And the rockchip multimedia framework only works on legacy.

  2. 18.06.2021 в 13:50, jock сказал:

    Are you sure there is no audio device?

    What does dmesg say? And aplay -L ?

    Everything is working now with legacy dtb:

        i2s@ff010000 {
            compatible = "rockchip,rk3328-i2s\0rockchip,rk3066-i2s";
            reg = < 0x00 0xff010000 0x00 0x1000 >;
            interrupts = < 0x00 0x1b 0x04 >;
            clocks = < 0x02 0x2a 0x02 0x138 >;
            clock-names = "i2s_clk\0i2s_hclk";
            dmas = < 0x0c 0x0e 0x0c 0x0f >;
            dma-names = "tx\0rx";
            resets = < 0x02 0x21 0x02 0x24 >;
            reset-names = "reset-m\0reset-h";
            status = "okay";
            #sound-dai-cells = < 0x00 >;
            phandle = < 0x90 >;
        };

        i2s@ff020000 {
            compatible = "rockchip,rk3328-i2s\0rockchip,rk3066-i2s";
            reg = < 0x00 0xff020000 0x00 0x1000 >;
            interrupts = < 0x00 0x1c 0x04 >;
            clocks = < 0x02 0x2b 0x02 0x139 >;
            clock-names = "i2s_clk\0i2s_hclk";
            dmas = < 0x0c 0x00 0x0c 0x01 >;
            dma-names = "tx\0rx";
            resets = < 0x02 0x22 0x02 0x25 >;
            reset-names = "reset-m\0reset-h";
            pinctrl-names = "default\0sleep";
            pinctrl-0 = < 0x0d 0x0e 0x0f 0x10 0x11 0x12 >;
            pinctrl-1 = < 0x13 >;
            status = "disabled";
            phandle = < 0x9b >;
        };
        hdmi@ff3c0000 {
            compatible = "rockchip,rk3328-dw-hdmi";
            reg = < 0x00 0xff3c0000 0x00 0x20000 >;
            reg-io-width = < 0x04 >;
            interrupts = < 0x00 0x23 0x04 0x00 0x47 0x04 >;
            clocks = < 0x02 0xe7 0x02 0x46 0x02 0x1e 0x02 0x147 >;
            clock-names = "iahb\0isfr\0cec\0hclk_vio";
            phys = < 0x57 >;
            phy-names = "hdmi_phy";
            pinctrl-names = "default\0gpio";
            pinctrl-0 = < 0x58 0x59 0x5a >;
            pinctrl-1 = < 0x5b >;
            resets = < 0x02 0x8f 0x02 0x51 >;
            reset-names = "hdmi\0hdmiphy";
            rockchip,grf = < 0x1c >;
            status = "okay";
            #sound-dai-cells = < 0x00 >;
            ddc-i2c-scl-high-time-ns = < 0x2599 >;
            ddc-i2c-scl-low-time-ns = < 0x2710 >;
            phandle = < 0x93 >;

            ports {

                port {
                    #address-cells = < 0x01 >;
                    #size-cells = < 0x00 >;
                    phandle = < 0xbd >;

                    endpoint@0 {
                        reg = < 0x00 >;
                        remote-endpoint = < 0x5c >;
                        phandle = < 0x54 >;
                    };
                };
            };
        };
        codec@ff410000 {
            compatible = "rockchip,rk3328-codec";
            reg = < 0x00 0xff410000 0x00 0x1000 >;
            rockchip,grf = < 0x1c >;
            clocks = < 0x02 0xeb 0x02 0x2a >;
            clock-names = "pclk\0mclk";
            status = "okay";
            #sound-dai-cells = < 0x00 >;
            phandle = < 0x91 >;
        };

        sound {
            compatible = "simple-audio-card";
            simple-audio-card,format = "i2s";
            simple-audio-card,mclk-fs = < 0x100 >;
            simple-audio-card,name = "rockchip-rk3328";

            simple-audio-card,cpu {
                sound-dai = < 0x90 >;
            };

            simple-audio-card,codec {
                sound-dai = < 0x91 >;
            };
        };

        hdmi-sound {
            compatible = "simple-audio-card";
            simple-audio-card,format = "i2s";
            simple-audio-card,mclk-fs = < 0x80 >;
            simple-audio-card,name = "rockchip-hdmi";

            simple-audio-card,cpu {
                sound-dai = < 0x92 >;
            };

            simple-audio-card,codec {
                sound-dai = < 0x93 >;
            };
        };
     

  3. 18.06.2021 в 13:50, jock сказал:

    Are you sure there is no audio device?

    What does dmesg say? And aplay -L ?

    Armbian_21.05.0-trunk_Rk3318-box_buster_current

    card 0: ANALOG [ANALOG], device 0: ff010000.i2s-rk3328-hifi ff410000.codec-0 [ff010000.i2s-rk3328-hifi ff410000.codec-0]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 1: SPDIF [SPDIF], device 0: ff030000.spdif-dit-hifi dit-hifi-0 [ff030000.spdif-dit-hifi dit-hifi-0]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 2: HDMI [HDMI], device 0: ff000000.i2s-i2s-hifi i2s-hifi-0 [ff000000.i2s-i2s-hifi i2s-hifi-0]
      Subdevices: 1/1
      Subdevice #0: subdevice #0

     

     

    Armbian_21.05.0-trunk_Rk3318-box_buster_legacy

    **** List of PLAYBACK Hardware Devices ****
    card 0: HDMI [HDMI], device 0: ff000000.i2s-i2s-hifi i2s-hifi-0 [ff000000.i2s-i2s-hifi i2s-hifi-0]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 1: SPDIF [SPDIF], device 0: ff030000.spdif-dit-hifi dit-hifi-0 [ff030000.spdif-dit-hifi dit-hifi-0]
      Subdevices: 1/1
      Subdevice #0: subdevice #0

     

    I think there must be something like this in legacy dts

        analog-sound {
            compatible = "simple-audio-card";
            simple-audio-card,format = "i2s";
            simple-audio-card,mclk-fs = < 0x100 >;
            simple-audio-card,name = "ANALOG";
            status = "okay";
            phandle = < 0x7c >;

            simple-audio-card,cpu {
                sound-dai = < 0x07 >;
            };

            simple-audio-card,codec {
                sound-dai = < 0x08 >;
            };
        };

     

    (this is a piece of current dst)

  4. 19 hours ago, ratadp said:

    Did you download only the orange pi plus image and did an "nand-sata-install" or did you install  the nanopi m1plus imagen and then you installed the uboot image from orange pi as they do in this post?? (https://forum.armbian.com/index.php?/topic/1702-orange-pi-plus-2e-where-is-16ghz-and-sd/&do=findComment&comment=13163)

     

    Thanks

     

    Today I tried to compile image for nanopi m1 plus and nand-sata-install works! https://docs.armbian.com/Developer-Guide_Build-Preparation/

    nanopim1plus.conf  has already been corrected:

    BOOTCONFIG="nanopi_m1_plus_defconfig"

     

  5. 17 hours ago, ratadp said:

    Did you download only the orange pi plus image and did an "nand-sata-install" or did you install  the nanopi m1plus imagen and then you installed the uboot image from orange pi as they do in this post?? (https://forum.armbian.com/index.php?/topic/1702-orange-pi-plus-2e-where-is-16ghz-and-sd/&do=findComment&comment=13163)

     

    Thanks

     

    I used orange pi plus image and did an "nand-sata-install".  Everything works perfectly.

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines