Vontar X4 (S905X4): install to eMMC?

Looks same as for CE. No idea why it doesn’t work.

Btw: /flash/sc2_s905x4_4g_1gbit.dtb is not needed.

1 Like

Not sure if it helps but here I compare Ugoos and Vontar

note
the fe01a000.t9015 mapping
and
the virtual consumer:auge_sound and consumer:fe06c000.i2c

Ugoos-X4-Pro:~ # dmesg | grep auge
[    0.084053@0]  amlogic auge_snd_iomap probe done
[    2.992383@1]  asoc-aml-card auge_sound: IRQ audio_exception64 not found
[    3.198724@1]  asoc-aml-card auge_sound: SPDIF-B <-> SPDIF-B mapping ok
[    3.198799@1]  asoc-aml-card auge_sound: fe01a000.t9015 <-> TDM-B mapping ok
[    3.198858@1]  asoc-aml-card auge_sound: SPDIF <-> SPDIF mapping ok
[    3.198927@1]  asoc-aml-card auge_sound: soc:dummy <-> TDM-C mapping ok

VontarX4:~ # dmesg | grep auge
[    0.095649@0]  amlogic auge_snd_iomap probe done
[    3.071337@2]  asoc-aml-card auge_sound: IRQ audio_exception64 not found
[    3.072830@2]  asoc-aml-card auge_sound: SPDIF-B <-> SPDIF-B mapping ok
[    3.072935@2]  asoc-aml-card auge_sound: TDM-B <-> TDM-B mapping ok
[    3.073002@2]  asoc-aml-card auge_sound: SPDIF <-> SPDIF mapping ok
[    3.073084@2]  asoc-aml-card auge_sound: soc:dummy <-> TDM-C mapping ok
[   16.596613@3]  asoc-aml-card auge_sound: S/PDIF[1] Playback enable
[   16.596742@3]  asoc-aml-card auge_sound: S/PDIF[1] Playback enable


Ugoos-X4-Pro:~ # ls -al /sys/devices/platform/soc/fe000000.apb4/fe000000.apb4:pinctrl@4000/consumer:auge_sound
lrwxrwxrwx    1 root     root             0 Oct 11 22:34 /sys/devices/platform/soc/fe000000.apb4/fe000000.apb4:pinctrl@4000/consumer:auge_sound -> ../../../../virtual/devlink/fe000000.apb4:pinctrl@4000--auge_sound
Ugoos-X4-Pro:~ # ls -al /sys/devices/platform/soc/fe000000.apb4/fe000000.apb4:pinctrl@4000/consumer:fe06c000.i2c
lrwxrwxrwx    1 root     root             0 Oct 11 22:34 /sys/devices/platform/soc/fe000000.apb4/fe000000.apb4:pinctrl@4000/consumer:fe06c000.i2c -> ../../../../virtual/devlink/fe000000.apb4:pinctrl@4000--fe06c000.i2c

VontarX4:~ #  ls -al /sys/devices/platform/soc/fe000000.apb4/fe000000.apb4:pinctrl@4000/consumer:auge_sound
ls: /sys/devices/platform/soc/fe000000.apb4/fe000000.apb4:pinctrl@4000/consumer:auge_sound: No such file or directory
VontarX4:~ #  ls -al /sys/devices/platform/soc/fe000000.apb4/fe000000.apb4:pinctrl@4000/consumer:fe06c000.i2c
ls: /sys/devices/platform/soc/fe000000.apb4/fe000000.apb4:pinctrl@4000/consumer:fe06c000.i2c: No such file or directory

@vpeter

actually

if I apply auge_sound section of the ugoos patch and build dtb sc2_s905x4_4g_1gbit

then analog audio does work just fine :grinning:!

#include "sc2_s905x4_2g_1gbit.dts"

/ {
        coreelec-dt-id = "sc2_s905x4_4g_1gbit";

        memory@00000000 {
                linux,usable-memory = <0x0 0x000000 0x0 0xf1000000>;
        };

        auge_sound {
                avout_mute-gpios = <&gpio GPIOD_2 GPIO_ACTIVE_HIGH>;

                aml-audio-card,dai-link@1 {
                        codec {
                                sound-dai = <&amlogic_codec>;
                        };
                };
        };
};

&drm_vpu {
        logo_addr = "0xf0800000";
};

and (note fe01a000.t9015)

VontarX4:~ # dmesg | grep -i auge
[    0.095533@0]  amlogic auge_snd_iomap probe done
[    3.053049@1]  asoc-aml-card auge_sound: IRQ audio_exception64 not found
[    3.259892@1]  asoc-aml-card auge_sound: SPDIF-B <-> SPDIF-B mapping ok
[    3.259981@1]  asoc-aml-card auge_sound: fe01a000.t9015 <-> TDM-B mapping ok
[    3.260058@1]  asoc-aml-card auge_sound: SPDIF <-> SPDIF mapping ok
[    3.260146@1]  asoc-aml-card auge_sound: soc:dummy <-> TDM-C mapping ok
[    3.412992@3]    #0: AML-AUGESOUND
[   16.993387@0]  asoc-aml-card auge_sound: S/PDIF[1] Playback enable
[   16.993517@0]  asoc-aml-card auge_sound: S/PDIF[1] Playback enable
[   89.759163@0]  asoc-aml-card auge_sound: S/PDIF[1] Playback disable
[   89.759216@0]  asoc-aml-card auge_sound: S/PDIF[1] Playback disable
[   89.777041@1]  asoc-aml-card auge_sound: TDM[1] Playback enable

So this fixes problem, but, is it sc2_s905x4 generic or does it need a separate dts?

I am somewhat of a n00b and propose experts find the exact spot to patch CE :slight_smile:

I didn’t use avout_mute-gpios that’s why it works with your complete changes.

We need to think how to apply this change - to think if can be used generally (probably not) or only for Vontar (which doesn’t have separate dtb).

1 Like

I believe to see in Vontar shop all X4 models have 4GB RAM and 1Gbps Ethernet. Different models only differ in storage 32|64|128 GB.

So a separate sc2_s905x4_vontar_x4.dts derived by including sc2_s905x4_4g_1gbit.dts might perhaps be safe.

The hardware works well for CE ne, though I have no opportunity to test optical audio so I cannot speak for that part.

I never was able to get analog audio out working in CE on any of my ah2xx devices so I am not sure it is just Vontar

What I meant to say is that I don’t know if a change is good for all devices. It can help but at the same time it can broke some other devices. Who knows.

1 Like

fwiw: following Vontar X4 specific sc2_s905x4_vontar_x4.dts seems to do well

(Makefile needs update as well)

#include "sc2_s905x4_4g_1gbit.dts"

/ {
	model = "Vontar X4";

	coreelec-dt-id = "sc2_s905x4_vontar_x4";

	auge_sound {
		avout_mute-gpios = <&gpio GPIOD_2 GPIO_ACTIVE_HIGH>;

		aml-audio-card,dai-link@1 {
			codec {
				sound-dai = <&amlogic_codec>;
			};
		};
	};
};

I tried to create a pull request on github to support Vontar X4 and fix Vontar X4 analog audio but I have no contributor status. Would anyone perhaps consider committing this new sc2_s905x4_vontar_x4.dts file? All Vontar X4 have 4GB RAM and 1Gbps Eth, so (apart from storage) are identical.

any news in this update i have same problem

tasinofan, ken you post your compile db, please

1 Like

For which image is needed?

CoreELEC-Amlogic-ne.aarch64-20.3-Nexus_nightly_20240102

sc2_s905x4_vontar_x4.dtb (72.1 KB)

1 Like

@zambu : … @vpeter was quicker than me

no loque dont work, ken you post yours.

I think tasinofan needs to tell exactly what is needed.

It is based on this :frowning: Vontar X4 (S905X4): install to eMMC? - #28 by tasinofan

1 Like

this first post loques different

using this one CoreELEC-Amlogic-no.aarch64-21.0-Omega_nightly_20240103, the audio works, dont no if it helps

With which DTB?

White The One its comes white it, sc2_s905x4_4g_1gbit.dts

I don’t see what can be wrong. I hope tasinofan will help again and I will push the changes to repository for NE device.

1 Like