You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to get the Allo Boss HAT to work on the PI5 and kernel 6.6.9.
I am not sure if I got the config.txt correct.
As you can see below all related modules are being loaded though.
It still fails. Alsa doesn't see it.
Allo Katana HAT: dtoverlay=allo-katana-dac-audio
The OS complains (dmesg) that the I2C frequency of "50000" is invalid. "100000" would be the first valid value.
Since the Katana overlay was somehow replaced by snd_soc_audio_graph_card, I am not sure if this matters.
The system seemed to be in a weird state.
Let me know if I can provide more infos. Or If I should run any tests - updated kernel/firmware etc.
50kHz is slow, and not a standard I2C speed. The Pi 5 I2C block was only designed to run at the standard speeds - 100kHz, 400kHz and 1MHz, so the driver will be rejecting it. I don't know if it would be possible to achieve other speeds by essentially lying to the driver about source clock speeds. An alternative would be to use software I2C.
I see. But you realize that's a backward compatibility issue affecting perhaps a lot more 3PPs !?!? All earlier platforms supported 50k respectively <100k as it seems. I am not sure if 3PPs can cope (HW/firmware) with the new limit.
Just to mention it. There are of course other non-Allo devices out there, such as the IMO excellent (p/p-r) InnoMaker DAC Pro that's still being actively sold, which fail on the RPi5.
If there is a reasonably priced card that is recognised as not working on Pi 5 (and where the failure can't be attributed to the choice of I2S clock producer) then I should be able to obtain one for testing purposes.
#5853 adds support for non-standard I2C rates. Anyone with the Katana DAC can see if the PR makes it work by waiting about until about 17:30GMT and running sudo rpi-update pulls/5853 (assuming any important data has been backed up).
@pelwell I tested a Katana card with 6.1.73 with PR #5853 applied. The card loads fine and plays music on a pi5. Allo Boss plays fine too. The Boss Dac only required adding ,slave to the dtoverlay.
Note that I'm not using RaspiOS. I've not started playing with a 6.6.y kernel yet.
@pelwell I tested a Katana card with 6.1.73 with PR #5853 applied. The card loads fine and plays music on a pi5. Allo Boss plays fine too. The Boss Dac only required adding ,slave to the dtoverlay.
Note that I'm not using RaspiOS. I've not started playing with a 6.6.y kernel yet.
Good news. There's hope.
Now.
You run a different OS. And you build and manage your kernel differently - if I am not mistaken.
You don't use the rpi-update images - correct ? Apples and oranges ??
What makes the difference here !?!?
I did realize that rpi-update is not properly updating all kernel related files (leaving a lot of dead bodies around). Perhaps there's an issue to be found in that department.
running the drivers in I2S slave mode - is a reasonable test scenario. These Allo audionterfaces (and a lot more followers) were built to run in master mode though to allow for (or enable) high quality audio on RPIs. I hope the kernel crew considers this.
@pelwell - did #5853 make it into the 6.6 branch by now ?
I delayed merging #5853 because of some feedback indicating a regression (#5853 (comment)), but that was with an invalid hardware configuration.
However, thanks to the positive feedback here I think it's probably better to merge now and get some wider testing before the next stable release - watch this space.
#5853 has been merged, and rpi-6.6.y has been bumped to include the latest 6.1 commits. Let me know how you get on. There should be a new build available via sudo rpi-update rpi-6.6.y within the hour.
I am more than happy to announce that all my Allo interfaces are working now on the RPi5.
And I'm pretty sure that many maintainers and users will also be quite happy about it.
Great job @pelwell and team. It's been some heavy lifting. Thx a lot.
DuT: Allo Katana, Allo Boss
Devices have been tested against kernel branch 6.6 2712 CL: 3287b41 - my own custom build version
I2C controls (alsamixer) of these devices have been successfully (regression) tested
Allo Katana fed with complete sample rate series up to 384kHz has successfully been tested
Allo Boss I2S modes have been tested - both modes master and slave seem to work
Thx to @paul-1 who made me think perhaps not to use rpi-update for the kernel updates. For sure this tool needs some
maintenance.
Bottom line.
From my side "Case Closed".
PS: I just ordered the earlier discussed $60 Inno-Maker Sabre DAC HAT, simply to see how that one performs with the Katana driver.
Thanks for the feedback. It will take a while for the patch to appear in more-widely-available firmwares, and because the patch changes the timing of all Pi 5 I2C accesses some caution is required before pushing it into a major release.
I'm going to close this issue now, and wait for the first "Pi 5 I2C differently broken" issue.
Activity
pelwell commentedon Jan 11, 2024
Does
cat /sys/kernel/debug/devices_deferredreturn anything?You could try with the
slaveparameter:Otherwise it's unlikely you'll be able to get help here, since we don't have one and the manufacturer seems to be long gone.
pelwell commentedon Jan 11, 2024
By the way, the following lines in your config.txt are unnecessary - the DAC overlay does it all:
klslz commentedon Jan 11, 2024
Thx. I guess it won't hurt to have these parameters in, even if redundant. ;)
I tried the slave option
No success.
I also tried the 6.1 kernel. Same story.
No success
dmesg on 6.1.0-rpi7
A lot has changed on the I2C part. Perhaps some incompatibilities!?!?
I found this:
klslz commentedon Jan 11, 2024
I forgot:
pelwell commentedon Jan 11, 2024
And how about this one:
klslz commentedon Jan 11, 2024
klslz commentedon Jan 11, 2024
Just tested the Allo Katana. The same thing. Hmmh, it's similar not working.
What changed: lsmod shows me now
snd_soc_audio_graph_cardplus entourage modules, when enabling
dtoverlay=allo-katana-dac-audioThe Katana module doesn't even get loaded.
These Allo drivers do load "regmap_i2c". Are we looking at a I2C issue?
klslz commentedon Jan 11, 2024
One more. I'd like to add some more info.
A standard audio HAT that uses the basic I2S driver and no I2C works.
klslz commentedon Jan 12, 2024
One more (from memory):
Allo Katana HAT: dtoverlay=allo-katana-dac-audio
The OS complains (dmesg) that the I2C frequency of "50000" is invalid. "100000" would be the first valid value.
Since the Katana overlay was somehow replaced by snd_soc_audio_graph_card, I am not sure if this matters.
The system seemed to be in a weird state.
Let me know if I can provide more infos. Or If I should run any tests - updated kernel/firmware etc.
pelwell commentedon Jan 12, 2024
50kHz is slow, and not a standard I2C speed. The Pi 5 I2C block was only designed to run at the standard speeds - 100kHz, 400kHz and 1MHz, so the driver will be rejecting it. I don't know if it would be possible to achieve other speeds by essentially lying to the driver about source clock speeds. An alternative would be to use software I2C.
klslz commentedon Jan 12, 2024
I see. But you realize that's a backward compatibility issue affecting perhaps a lot more 3PPs !?!? All earlier platforms supported 50k respectively <100k as it seems. I am not sure if 3PPs can cope (HW/firmware) with the new limit.
klslz commentedon Jan 12, 2024
Ok. Just had a look at the .dts files . The Allo Katana is the only HAT explicitly specifying
allo-katana-dac-audio-overlay.dts: clock-frequency = <50000>;klslz commentedon Jan 13, 2024
Just to mention it. There are of course other non-Allo devices out there, such as the IMO excellent (p/p-r) InnoMaker DAC Pro that's still being actively sold, which fail on the RPi5.
[-][PI5][6.6.9] Allo Boss audio interface HAT fails[/-][+][PI5] audio HATs using Allo drivers fail[/+]pelwell commentedon Jan 13, 2024
Is that so? That would make the Inno-Maker website, which has a quick start guide for Pi 5 -
https://www.inno-maker.com/product/hifi-dac-pro/ - particularly disingenuous.
If there is a reasonably priced card that is recognised as not working on Pi 5 (and where the failure can't be attributed to the choice of I2S clock producer) then I should be able to obtain one for testing purposes.
4 remaining items
pelwell commentedon Jan 16, 2024
#5853 adds support for non-standard I2C rates. Anyone with the Katana DAC can see if the PR makes it work by waiting about until about 17:30GMT and running
sudo rpi-update pulls/5853(assuming any important data has been backed up).klslz commentedon Jan 17, 2024
I tested your changes on a fresh installed SD-card for the Katana driver. The behaviour slightly changed.
klslz commentedon Jan 20, 2024
Just to mention it. I tried the same RpiOS image I ran on the Pi5 with exact the same settings on a Pi4.
This at least proves that OS and DAC are working.
I keep the fingers crossed that you guys find what's wrong with the Pi5.
bendik commentedon Jan 26, 2024
Chiming in to stay in the loop. I can note that pipewire-pulse spits
pcm512x 1-004d: No SCLK, using BCLK: -2non stop.paul-1 commentedon Jan 28, 2024
@pelwell I tested a Katana card with 6.1.73 with PR #5853 applied. The card loads fine and plays music on a pi5. Allo Boss plays fine too. The Boss Dac only required adding ,slave to the dtoverlay.
Note that I'm not using RaspiOS. I've not started playing with a 6.6.y kernel yet.
bendik commentedon Jan 28, 2024
My previous comment was misinformed. I had by accident added two wireplumber services. 🤭
Justboom hat works better than ever now.
klslz commentedon Jan 29, 2024
Good news. There's hope.
Now.
You don't use the rpi-update images - correct ? Apples and oranges ??
What makes the difference here !?!?
I did realize that rpi-update is not properly updating all kernel related files (leaving a lot of dead bodies around). Perhaps there's an issue to be found in that department.
@pelwell - did #5853 make it into the 6.6 branch by now ?
klslz commentedon Jan 29, 2024
I just tested my own compiled 6.6.13 - 2712 - CL: e1a8b8b
The Allo Boss works with this kernel!!!! Great.
The Katana still complains about the 50kHz issue. Grrr.
@pelwell - speaks anything against merging your related correction into the 6.6. branch ??
I do have the feeling that'd be it.
pelwell commentedon Jan 29, 2024
I delayed merging #5853 because of some feedback indicating a regression (#5853 (comment)), but that was with an invalid hardware configuration.
However, thanks to the positive feedback here I think it's probably better to merge now and get some wider testing before the next stable release - watch this space.
pelwell commentedon Jan 29, 2024
#5853 has been merged, and rpi-6.6.y has been bumped to include the latest 6.1 commits. Let me know how you get on. There should be a new build available via
sudo rpi-update rpi-6.6.ywithin the hour.klslz commentedon Jan 29, 2024
FYI - quick update - more tomorrow
klslz commentedon Jan 30, 2024
I am more than happy to announce that all my Allo interfaces are working now on the RPi5.
And I'm pretty sure that many maintainers and users will also be quite happy about it.
Great job @pelwell and team. It's been some heavy lifting. Thx a lot.
DuT: Allo Katana, Allo Boss
Devices have been tested against kernel branch 6.6 2712 CL: 3287b41 - my own custom build version
I2C controls (alsamixer) of these devices have been successfully (regression) tested
Allo Katana fed with complete sample rate series up to 384kHz has successfully been tested
Allo Boss I2S modes have been tested - both modes master and slave seem to work
Thx to @paul-1 who made me think perhaps not to use rpi-update for the kernel updates. For sure this tool needs some
maintenance.
Bottom line.
From my side "Case Closed".
PS: I just ordered the earlier discussed $60 Inno-Maker Sabre DAC HAT, simply to see how that one performs with the Katana driver.
pelwell commentedon Jan 30, 2024
Thanks for the feedback. It will take a while for the patch to appear in more-widely-available firmwares, and because the patch changes the timing of all Pi 5 I2C accesses some caution is required before pushing it into a major release.
I'm going to close this issue now, and wait for the first "Pi 5 I2C differently broken" issue.
klslz commentedon Feb 1, 2024
Just a quick note I wanted to add.
Did some more testing on the same env as earlier.
Allo Piano and the just received InnoMaker DAC Pro - in particular - also work.
(It's my own overlay ;) )
Everything looks stable over here.