Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn off output on idle #25

Merged
merged 5 commits into from
Mar 27, 2024
Merged

Conversation

jens1608
Copy link
Contributor

Awesome job mill1000!
It works flawlessly on my setup :)

I ran into some small problem in my setup:
I'm using active speakers for a multi room setup.
SnapCast-Server -> SnapCast Client on Raspberry Pi Zero -> raspdif -> LED -> Toslink to my speakers.
My speakers are able to automatically activate on Toslink signal and deactivate themselves after 10s without signal.
BUT no signal means Toslink being turned off completely.
I realized in standard configuration, even with "no-keep-alive" the output never turns off, so my speakers are never going to sleep.

I've added a few lines to turn of PCM completely during buffer underrun, this solves my issue and my speakers are going to sleep.
Maybe this might help somebody else with a similar setup.

Thanks again for your amazing work, I really appreciate it!

Regards
Jens

Trying to disable PCM while waiting for data
Made disabling PCM during underrun configurable
Added debug log messages
@mill1000
Copy link
Owner

Thanks for the contribution! Glad it's working well for you.

If you can fix the minor formatting issues reported by the checks I'll get this merged.

@mill1000 mill1000 added the enhancement New feature or request label Feb 20, 2024
@mill1000 mill1000 merged commit b2109aa into mill1000:main Mar 27, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants