Raspberry Pi Audio Hat support
#1
Recently I'm trying few cheap clone audio hats on my Raspberry Pi 5 (4g memory) for some CAS/audiophile beginners.  Initially I thought these hats will be recognised by those OSes for raspberry pi automatically and then they just works together.  The fact is totally not.

I've tried on latest Raspberry OS, Ubuntu, Volumio, and Moode.  They all got no sound from the hats before some configuration steps.  For Volumio and Moode, it's easier, they got a place (GUI) to let the user to choose from a very long list.  For Raspberry OS, and Ubuntu, the user got to add a line in "/boot/firmware/config.txt" to tell the OS which overlay to load for this hat.  Of course, the user got to input a specific and a valid name here.

And the most interesting things is, that specific name of hat works in one OS, but may not works in another OS.  (What?!) I need to guess and try from the seller's "instructions" in different OSes.  Great!  Maybe that's why these clones are cheap.

Whatever, I wonder, maybe in later release, SnakeOil for Raspberry Pi can provide a place in Webui to let user to choose the hat.  (those overlays already come with OS.)
Reply

#2
(14-Mar-2025, 01:30 PM)hkphantomgtr Wrote: Whatever, I wonder, maybe in later release, SnakeOil for Raspberry Pi can provide a place in Webui to let user to choose the hat.  (those overlays already come with OS.)
Will add this feature in 1.4.2. However might need people to test this... I do have a audio HAT somewhere, but I havn't seen it in years...
Snakeoil Operating System - Music, your way!
Reply

#3
(14-Mar-2025, 04:48 PM)agent_kith Wrote:
(14-Mar-2025, 01:30 PM)hkphantomgtr Wrote: Whatever, I wonder, maybe in later release, SnakeOil for Raspberry Pi can provide a place in Webui to let user to choose the hat.  (those overlays already come with OS.)
Will add this feature in 1.4.2. However might need people to test this... I do have a audio HAT somewhere, but I havn't seen it in years...

Thanks a lot, AK.  Plusing those clones, there are so many many audio hats in the market.  Yet I'm afraid there are very few SnakeOil user got audio hat.  
In my understanding, all the operating system needs is a correct XYZ in "dtoverlay=XYZ".
[-] The following 1 user Likes hkphantomgtr's post:
  • agent_kith
Reply

#4
(14-Mar-2025, 04:48 PM)agent_kith Wrote: Will add this feature in 1.4.2. However might need people to test this... I do have a audio HAT somewhere, but I havn't seen it in years...
I have a Pi4 with a hat, sitting idle. But I doubt you will be getting many people to do the tests. There has been only a few posts asking for support for a hat.

Is it possible for SO to query the Pi setup and add in the correct overlay?
Reply

#5
(14-Mar-2025, 06:55 PM)Snoopy8 Wrote: I have a Pi4 with a hat, sitting idle. But I doubt you will be getting many people to do the tests. There has been only a few posts asking for support for a hat.

Is it possible for SO to query the Pi setup and add in the correct overlay?
No way to probe AFAIK. All I can do is to list all the overlay files, and allow the user to pick one... Then reboot and hope for the best.
Snakeoil Operating System - Music, your way!
Reply

#6
(14-Mar-2025, 06:59 PM)agent_kith Wrote: No way to probe AFAIK. All I can do is to list all the overlay files, and allow the user to pick one... Then reboot and hope for the best.

How does Moode do it? From Google AI
Quote:Moode, a web-based audio player for Raspberry Pi, automatically detects and configures supported audio HATs (Hardware Attached on Top) through its audio configuration menu, offering a selection of compatible devices.
Here's a more detailed explanation:
Automatic Detection:
Moode is designed to recognize and automatically configure supported audio HATs, simplifying the setup process for users.
Audio Configuration Menu:
You can access the audio configuration menu within Moode's web interface by navigating to the "m" local menu at the top right corner and then selecting "configure" and then "audio".
Device Selection:
The audio configuration menu provides a list of supported audio HATs, allowing you to select the specific device you are using.
Example:
Moode supports a variety of audio interfaces, including those from GPL (Generic Peripheral Layer).
HAT Compatibility:
Moode is compatible with various Raspberry Pi HATs, including the Raspberry Pi Sense HAT, which is compatible with any Raspberry Pi with a 40-pin (2x20) connector.
Example:
To install the Raspberry Pi TV HAT, press the HAT gently down over the Raspberry Pi's GPIO pins, place the spacers, and tighten the screws.
Reply

#7
(14-Mar-2025, 07:36 PM)Snoopy8 Wrote:
(14-Mar-2025, 06:59 PM)agent_kith Wrote: No way to probe AFAIK. All I can do is to list all the overlay files, and allow the user to pick one... Then reboot and hope for the best.

How does Moode do it? From Google AI
Quote:Moode, a web-based audio player for Raspberry Pi, automatically detects and configures supported audio HATs (Hardware Attached on Top) through its audio configuration menu, offering a selection of compatible devices.
Here's a more detailed explanation:
Automatic Detection:
Moode is designed to recognize and automatically configure supported audio HATs, simplifying the setup process for users.
Audio Configuration Menu:
You can access the audio configuration menu within Moode's web interface by navigating to the "m" local menu at the top right corner and then selecting "configure" and then "audio".
Device Selection:
The audio configuration menu provides a list of supported audio HATs, allowing you to select the specific device you are using.
Example:
Moode supports a variety of audio interfaces, including those from GPL (Generic Peripheral Layer).
HAT Compatibility:
Moode is compatible with various Raspberry Pi HATs, including the Raspberry Pi Sense HAT, which is compatible with any Raspberry Pi with a 40-pin (2x20) connector.
Example:
To install the Raspberry Pi TV HAT, press the HAT gently down over the Raspberry Pi's GPIO pins, place the spacers, and tighten the screws.

Moode gives u a list to choose from.  It can't detect the details of the hat.
[-] The following 1 user Likes hkphantomgtr's post:
  • Snoopy8
Reply

#8
Hat overlays are available once supported by the Raspberry Pi kernel of the current version.
It is up to manufacturers to get their device drivers accepted by the RPi team.

There should be an included  'onboard' ReadMe accompanying any install based on an RPi OS.
This lists all the dtoverlay supported for that kernel.

Here is the fuller list...
https://github.com/raspberrypi/firmware/...ays/README
[-] The following 2 users Like Bromf's post:
  • hkphantomgtr, Snoopy8
Reply



Bookmarks

Possibly Related Threads…
Thread Author Replies Views Last Post
  fw: a letter to request Album Player(gentooplayer also support) clark8888 3 677 08-Feb-2025, 03:44 PM
Last Post: clark8888
  QOBUZ streaming support hkphantomgtr 2 2,728 24-Jan-2019, 10:03 AM
Last Post: hkphantomgtr
  Native DSD support for new DAC Mivera 15 8,510 03-Oct-2018, 03:04 PM
Last Post: Mivera
  RompR support XavierP56 1 2,026 17-Sep-2018, 12:22 PM
Last Post: agent_kith
  MPD audio streams and client. Scripts for checking device capabilities etc Bromf 2 2,856 28-Mar-2017, 05:48 PM
Last Post: Bromf



Users browsing this thread:
1 Guest(s)

[-]
Our Sponsors

[-]
Welcome
You have to register before you can post on our site.

Username/Email:


Password:





[-]
Latest Threads
[split] MediaCenter33 not starting ing S...
Last Post: agent_kith
Today 11:13 AM
» Replies: 2
» Views: 12
Wiki update - need your help!
Last Post: petemac110
Today 08:24 AM
» Replies: 1
» Views: 24
Snakeoil 1.4.3 (High End U3)
Last Post: hkphantomgtr
Yesterday 12:03 AM
» Replies: 4
» Views: 151
Question about RAM Disk
Last Post: hkphantomgtr
04-Apr-2025 03:33 PM
» Replies: 4
» Views: 47
[split] How to re-set activation details
Last Post: hkphantomgtr
04-Apr-2025 03:32 PM
» Replies: 2
» Views: 31
Add UPNP/DLNA functionality
Last Post: Snoopy8
04-Apr-2025 09:50 AM
» Replies: 2
» Views: 38
Snakeoil 1.4.2 (High End U2)
Last Post: agent_kith
03-Apr-2025 11:28 AM
» Replies: 20
» Views: 948
No audio devices on RPi5 with latests bu...
Last Post: hkphantomgtr
02-Apr-2025 01:59 AM
» Replies: 6
» Views: 102
Intel NUC: I225-V vs. Thunderbolt Ethern...
Last Post: hkphantomgtr
31-Mar-2025 11:51 AM
» Replies: 2
» Views: 70
REST not responding (503 error)
Last Post: Primare11
29-Mar-2025 10:50 PM
» Replies: 9
» Views: 197

[-]
SnakeoilOS Mission Statement

Our mission is to create a free to use computer OS that is easy to install, intuitive to operate and play music that will connect and engage with you emotionally.

SnakeoilOS gives you the freedom to spend more time on listening, enjoying and exploring music. Wasting time on computers is now a thing of the past! Everything is constantly evolving/improving. Please check back often for updates.

If you like this project, do show your support with a small token donation. All donations collected will be used to run this website, and for purchasing new equipment for the project.


Powered By MyBB, © 2002-2025. Theme © Melroy van den Berg.