Jump to content

Recommended Posts

@ag123, @c0rnelius, and anyone else that has interest in sound on these devices.

 

I have been able to put together a patch that enables audio for H161/H618 devices.  So far only audio on HDMI works. Analog audio is still generating an error on startup.

 

The patches were taken from a git repository by warpme:

https://github.com/warpme/minimyth2/tree/master/script/kernel/linux-6.6/files

, and probably came from the Zunlong SDK. A lot of the code was written by Allwinner.

 

@pixdrift generated a version of the patches for Armbian and I continued to work on them.

 

I have built a few images  and have a git repository if anyone would like to test, particularly on boards other than orangpizero3, on which I have tested.

 

zero3 desktop:
https://drive.google.com/file/d/1jIMTIqKc6y_uuG7lRyXXhIWQ_fvo0XgI/view?usp=drive_link

 

zero3 server:
https://drive.google.com/file/d/1r-yn-ooeYoz1yROEJ-yx01_KhErKN_p8/view?usp=drive_link

 

zero2 server:
https://drive.google.com/file/d/1XQ9zzw_Bz-rZancDWuzGwMjHHn_4U8SE/view?usp=drive_link

 

repository:

https://github.com/stephengraf/armbian_build_sg.git

 

There is another repository mentioned in the Armbian Forum:

https://github.com/NickAlilovic/build

 

If anyone has interest and skills to debug the analog audio, the dmesg errors are:

[    7.125509]  ahub_dam-snd-soc-dummy-dai: substream ahub_dam-snd-soc-dummy-dai has no playback, no capture
[    7.125539] sunxi-snd-mach soc:ahub_dam_mach: ASoC: can't create pcm ahub_dam-snd-soc-dummy-dai :-22
[    7.125780] sunxi-snd-mach: probe of soc:ahub_dam_mach failed with error -22

 

Link to comment
Share on other sites

thanks, I'd probably try that some time. if audio for HDMI works, I think many users will be happy, I've read some comments some are looking for that.

currently, I'm using headless as wifi ap, so I did not know if it works.

analog may need to go back into h616 zero 2 to see how it is done there, maybe dts etc.

Link to comment
Share on other sites

 

7 hours ago, robertoj said:

OrangePi has this analog audio figured out:

Yes I have tried the Zunlong images for orangepizero3 and they work.  Unfortunately those images are for a Linux 6.1 kernel and the zero3 and 2w were only officially implemented into linux with 6.6. The challenge is to get the Zunlong code into Armbian with the newer kernels.

Link to comment
Share on other sites

Hi @Stephen Graf, thank you so much for these images. you are correct. Having audio even on HDMI is extremely useful.

Do you perhaps have the kernel headers for this image?

https://drive.google.com/file/d/1jIMTIqKc6y_uuG7lRyXXhIWQ_fvo0XgI/view?usp=drive_link

Also, Could you create an image for armbian jammy, or provide steps so that i can do it.

Armbian_community_24.5.0-trunk.93_Orangepizero3_jammy_current_6.6.18_gnome_desktop.img

Link to comment
Share on other sites

6 hours ago, SUPA said:

provide steps so that i can do it

@SUPA Thank you for testing the patch.  I assume it worked and that you are working with an orangepisero3.

 

If you want to build you own images follow the directions in the Armbian build manual: https://docs.armbian.com/Developer-Guide_Build-Preparation/

and clone my repository. Unfortunately I have limited space on my google drive.

 

git clone https://github.com/stephengraf/armbian_build_sg.git

Link to comment
Share on other sites

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