0

Troubleshooting GPIO Issue: Easy way to reset/reinit HiFiBerry?

TL;DR: Is there a way to reset/reinit a DAC+ after being fouled by gpiozero?

I have an additional HAT that is driven by the Python gpiozero library. Something is misconfigured in the Python that causes all audio to stop.

I'm working on troubleshooting the problem, but the only way to get sound working again is to reboot the Pi. This means restarting all my debugging tools and setting things up again. This isn't super efficient.

Is there a way to restart or reinit the DAC+ without rebooting? 

System Info

HFB: DAC+
Pi: Pi4
OS: Raspbian Bookworm 64

output of aplay -l 

**** List of PLAYBACK Hardware Devices ****
card 0: sndrpihifiberry [snd_rpi_hifiberry_dacplus], device 0: HiFiBerry DAC+ HiFi pcm512x-hifi-0 [HiFiBerry DAC+ HiFi pcm512x-hifi-0]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 1: vc4hdmi0 [vc4-hdmi-0], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: vc4hdmi1 [vc4-hdmi-1], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

0 comments

Please sign in to leave a comment.