ubopod / ubo-hal

This repo includes code for communicating and interfacing with Ubo hardware peripherals
GNU General Public License v3.0
1 stars 2 forks source link

pigpiod service used by python IR library (Piir) interferes with audio #7

Closed zytegalaxy closed 1 year ago

zytegalaxy commented 1 year ago

https://abyz.me.uk/rpi/pigpio/faq.html#Sound_isnt_working

Sound isn't working The Pi contains two pieces of hardware, a PWM peripheral and a PCM peripheral, to generate sound. The PWM peripheral is normally used and generates medium quality audio out of the headphone jack. The PCM peripheral may be used by add-ons such as HATs and generates high quality audio.

pigpio uses at least one of these peripherals during normal operation (for timing DMA transfers). pigpio will use both peripherals if waves or the hardware PWM function is used.

By default pigpio uses the PCM peripheral leaving the PWM peripheral free for medium quality audio.

You can change the default with a configuration option. For C use gpioCfgClock, for the pigpio daemon use the -t option.

zytegalaxy commented 1 year ago

One possible work around is to enable and disable the pigpio daemon only when sending/receiving IP commands with Piir library. Another possibility is to ditch Piir all together and make ir-keytable and ir-ctl system utilities...

zytegalaxy commented 1 year ago

I have decided to disable pigpio daemon due to this conflict.