hifiberry / hifiberry-dsp

DSP toolkit
MIT License
138 stars 36 forks source link

genclocks.py will not release PCM resource until receives USR1 #40

Closed hftsai256 closed 1 year ago

hftsai256 commented 2 years ago

Once the default playback device is engaged with spdifclockgen service, it will lock out the device until receives signal USR1, which will potentially block other music streaming services from taking it over. E.g. Roon can no longer play through the device once the toslink is activated (e.g. from TV input), and even after the TV has turned off.

One way is to check if Roon/RAAT has exception hook that can invoke pause-all script whenever it fails to acquire the playback device. Another way is to poll the register value at 0xf600 periodically and close the playback resource when the lock is released.

hftsai256 commented 2 years ago

PR #41 is prepared for this issue