Open Ramblurr opened 1 year ago
I am experiencing the same issue.
Yep, here too. I also don't get any SPI or ~i2c~ devices :crying_cat_face:
Edit: i2c-1 now appears. Still no SPI or audio.
same issue. this is because a kernel update broke it. downgrading to a 5.x kernel worked for me:
# these are pinned so pi kernel is 5.x, which keeps the audio overlay working
inputs.nixpkgs.url = github:NixOS/nixpkgs/release-22.11;
inputs.nixos-hardware.url = github:NixOS/nixos-hardware/a6aa8174fa61e55bd7e62d35464d3092aefe0421;
Does upstream have an updated version of audio-on-overlay?
Knowing virtually nothing about device trees, it looks like the symbol's been removed: https://github.com/raspberrypi/linux/blob/342c7ee49e862edc30c893f141f55b9211b7a43b/arch/arm/boot/dts/bcm2711-rpi-cm4s.dts#L290
audio = <&chosen>,"bootargs{on='snd_bcm2835.enable_hdmi=1',off='snd_bcm2835.enable_hdmi=0'}";
But if I'm reading this right, then boot.kernelParams = [ "snd_bcm2835.enable_hdmi=1" ];
should be all we need.
Knowing virtually nothing about device trees, it looks like the symbol's been removed: https://github.com/raspberrypi/linux/blob/342c7ee49e862edc30c893f141f55b9211b7a43b/arch/arm/boot/dts/bcm2711-rpi-cm4s.dts#L290
audio = <&chosen>,"bootargs{on='snd_bcm2835.enable_hdmi=1',off='snd_bcm2835.enable_hdmi=0'}";
But if I'm reading this right, then
boot.kernelParams = [ "snd_bcm2835.enable_hdmi=1" ];
should be all we need.
I can confirm that this works
This worked for me as well, with the caveat that you can't keep hardware.raspberry-pi."4".audio.enable = true;
in the configuration (perhaps this is obvious to most, but wasn't to me).
I've added that kernelParams, but I still get no audio from Kodi. Is that all you did?
[root@pi:~]# aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
default
Default Audio Device (via PulseAudio)
sysdefault:CARD=Headphones
bcm2835 Headphones, bcm2835 Headphones
Default Audio Device
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
With these options
It fails with:
Version info: