Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

T95 Max + Plus S905x3 tv box, no sound #12695

Closed
petesimon opened this issue Oct 18, 2024 · 2 comments
Closed

T95 Max + Plus S905x3 tv box, no sound #12695

petesimon opened this issue Oct 18, 2024 · 2 comments

Comments

@petesimon
Copy link

petesimon commented Oct 18, 2024

Batocera build version

35 2022/09/10 21:27

Your architecture

Amlogic S905x3 tv box

Your Graphic Processor Unit(s) (GPU)

Mali G31 (integrated in SoC)

Issue description

Summary:
Hello. Thank you for your hard work. I love Batocera on amd64 PC and it works great there. I am hoping to get it running on a tv box. I got this neglected device from my closet.
T95 Max + (plus) TV box, advertised as: 4GB RAM / 32 GB ROM, chip: Amlogic S905x3
board: amlogic franklin r1p0 sm1_ac213_4g
USB 2.0, and USB 3.0, Ethernet 100 Mbps
Wifi 2.4 Ghz, and Bluetooth (version?)
Micro SD slot, 3.5mm audio jack

First off, I booted Emuelec ng 4.0 (kernel 4.9.x) to see how that goes, and everything was good except ethernet wasn't working (no problem). The sound settings in Emuelec are automatic and it is good thu HDMI. But I booted Batocera 31 stable, 35 stable and 40 beta and all were alright except there was no sound thru HDMI and thru 3.5mm audio jack. I tried all meson-sm1* dtb files included in Batocera and results are worse or the same depending on the dtb used. I noticed that the sound devices from "aplay -l" command in Batocera are totally different than in Emuelec.

I have searched the issue tracker here and saw similar issues with similar tv boxes but couldn't find an exact match for my tv box's model. I clicked on some old google drive links and the files were missing/deleted. So, I guess I would need to use an older kernel or get the right dtb file for Batocera 31 or a higher Batocera version. I'll donate $ if you want, hehe. Support files and data files below. What other commands, files, logs, and/or steps should I do or make?

Original dtb from dd if=/dev/dtb of=dtb.img and gzip dtb.img when running Emuelec. I hope I did this right. I think it's 256kb multi dtb. dtb.img.gz

This dtb from emuelec v4.0 ng works fine in emuelec. sound works. no green/black screen.
emuelec-4.0-sm1_s905x3_4g.dtb.gz

emuelec-v4 0-sound-devices-works

Detailed reproduction steps

Using a Win11 PC, I installed Batocera 31, and then 35 and then 40 one-by-one on a USB flash drive 64GB by using USB-Image-Tool from alexpage website and used the 'device' mode in that tool. I don't like Balena Etcher. I started with batocera 31 stable. Each time i installed a particular version of Batocera, I viewed the file uEnv.txt in the new Notepad in Windows 11 (unix text is recognized), I used the default FDT=/boot/meson-sm1-h96-max.dtb. I changed the name of the u-boot.usb file to u-boot.ext. Inserted the flash drive into the blue usb 3.0 port of the tv box and i saw a green screen for about 1 minute and batocera booted fine, but no sound. I went to system settings, audio settings, audio profile and changed those (many times in and out) as suggested in the wiki. I shutdown batocera, I subsequently changed FDT line to each other meson-sm1* dtb file for each boot in the same version of batocera in the same tv box. I repeated the same steps for each version of batocera.

batocera img.gz files were from this link https://mirrors.o2switch.fr/batocera/tvbox-gen3/stable/

Details of any attempts to fix this yourself

Searched and read issues here, in batocera forums and in emuelec forums. Did the steps written above (I am not good with these # sections).

Details of any modifications you have made to Batocera.

none

Logs and data

batocera-31-support-19691231180247.tar.gz

batocera-35-support-20241017154043.tar.gz

@petesimon
Copy link
Author

petesimon commented Oct 19, 2024

I decompiled the emuelec 4.0 dtb that gives sound on the tv box. The dtc tool spat out many errors. Anyways, Is there a dtb or dts that works in batocera 31 or higher batocera version and properly describes the amlogic auge sound and the t9015 codec things, and makes the sound work? above screenshot

auge_sound {
	compatible = "amlogic, g12a-sound-card";
	aml-audio-card,name = "AML-AUGESOUND";
	avout_mute-gpios = <0x45 0x02 0x00>;

	aml-audio-card,dai-link@0 {
		mclk-fs = <0x80>;

		cpu {
			sound-dai = <0x65>;
			system-clock-frequency = <0x5dc000>;
			phandle = <0xe5>;
		};

		codec {
			sound-dai = <0x66>;
			phandle = <0xe6>;
		};
	};

t9015 {
	#sound-dai-cells = <0x00>;
	compatible = "amlogic, aml_codec_T9015";
	reg = <0x00 0xff632000 0x00 0x2000>;
	is_auge_used = <0x01>;
	tocodec_inout = <0x01>;
	tdmout_index = <0x01>;
	ch0_sel = <0x00>;
	ch1_sel = <0x01>;
	status = "okay";
	phandle = <0x68>;
};

(excerpt of symbols)
__symbols__ { amlogic_codec = "/t9015"; };

@dmanlfc
Copy link
Collaborator

dmanlfc commented Oct 19, 2024

Feature / function requests are for Discord, not here. Raise it there accordingly. Closing.

@dmanlfc dmanlfc closed this as completed Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants