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
(Yesterday, 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
(9 hours ago)agent_kith Wrote:
(Yesterday, 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
(9 hours ago)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
(7 hours ago)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
(7 hours ago)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
(6 hours ago)Snoopy8 Wrote:
(7 hours ago)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.
Reply



Bookmarks

Possibly Related Threads…
Thread Author Replies Views Last Post
  fw: a letter to request Album Player(gentooplayer also support) clark8888 3 628 08-Feb-2025, 03:44 PM
Last Post: clark8888
  QOBUZ streaming support hkphantomgtr 2 2,688 24-Jan-2019, 10:03 AM
Last Post: hkphantomgtr
  Native DSD support for new DAC Mivera 15 8,410 03-Oct-2018, 03:04 PM
Last Post: Mivera
  RompR support XavierP56 1 1,992 17-Sep-2018, 12:22 PM
Last Post: agent_kith
  MPD audio streams and client. Scripts for checking device capabilities etc Bromf 2 2,821 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
Raspberry Pi Audio Hat support
Last Post: hkphantomgtr
Yesterday 08:04 PM
» Replies: 6
» Views: 29
SOXR resampler and DSD
Last Post: ravenman
12-Mar-2025 04:54 PM
» Replies: 6
» Views: 90
DACs And Motherboards Working With Snake...
Last Post: Snoopy8
12-Mar-2025 01:15 PM
» Replies: 36
» Views: 6759610
A ripping project ideae/help
Last Post: Coacharnold
11-Mar-2025 09:29 AM
» Replies: 10
» Views: 117
Glibc 2.36 missing
Last Post: jetski
04-Mar-2025 03:23 AM
» Replies: 5
» Views: 138
Snakeoil 1.4.0 (High End)
Last Post: knottydreadbr
03-Mar-2025 11:42 PM
» Replies: 63
» Views: 4886
Using Ubuntu low latency & real time ker...
Last Post: hkphantomgtr
26-Feb-2025 12:13 AM
» Replies: 12
» Views: 642
My Snakeoil-powered system
Last Post: petemac110
24-Feb-2025 04:30 AM
» Replies: 7
» Views: 618
Snakeoil 1.4 and Squeezelite R2 - not re...
Last Post: petemac110
23-Feb-2025 07:47 PM
» Replies: 4
» Views: 145
Can't get Roon bridge or UPNP renderer t...
Last Post: agent_kith
21-Feb-2025 04:38 PM
» Replies: 9
» Views: 342

[-]
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.