]> git.ipfire.org Git - thirdparty/shairport-sync.git/log
thirdparty/shairport-sync.git
6 years agoFix a compilation error w.r.t. debuglev and fix a complation warning.
Mike Brady [Wed, 12 Dec 2018 21:46:59 +0000 (21:46 +0000)] 
Fix a compilation error w.r.t. debuglev and fix a complation warning.

6 years agoFix a compilation error w.r.t. debuglev and fix a complation warning.
Mike Brady [Wed, 12 Dec 2018 21:21:54 +0000 (21:21 +0000)] 
Fix a compilation error w.r.t. debuglev and fix a complation warning.

6 years agoUpdate RELEASENOTES.md
Mike Brady [Wed, 12 Dec 2018 14:50:25 +0000 (14:50 +0000)] 
Update RELEASENOTES.md

6 years agoUpdate RELEASENOTES.md
Mike Brady [Wed, 12 Dec 2018 14:49:37 +0000 (14:49 +0000)] 
Update RELEASENOTES.md

6 years agoUpdate INSTALL.md
Mike Brady [Tue, 11 Dec 2018 20:45:27 +0000 (20:45 +0000)] 
Update INSTALL.md

6 years agoUpdate RELEASENOTES.md
Mike Brady [Tue, 11 Dec 2018 17:07:16 +0000 (17:07 +0000)] 
Update RELEASENOTES.md

6 years agoUpdate RELEASENOTES.md
Mike Brady [Tue, 11 Dec 2018 17:05:12 +0000 (17:05 +0000)] 
Update RELEASENOTES.md

6 years agoUpdate RELEASENOTES.md
Mike Brady [Tue, 11 Dec 2018 16:42:55 +0000 (16:42 +0000)] 
Update RELEASENOTES.md

6 years agoStay with the standard delay call for the present time.
Mike Brady [Tue, 11 Dec 2018 16:25:53 +0000 (16:25 +0000)] 
Stay with the standard delay call for the present time.

6 years agoCleaned up unfixable errors code and examples, updated configuration settings.
Mike Brady [Tue, 11 Dec 2018 11:28:08 +0000 (11:28 +0000)] 
Cleaned up unfixable errors code and examples, updated configuration settings.

6 years agoFurther debug tidy-ups and update the configuration file.
Mike Brady [Tue, 11 Dec 2018 11:26:39 +0000 (11:26 +0000)] 
Further debug tidy-ups and update the configuration file.

6 years agoTidy up some debug messages and warnings, remove old diagnostic codes and settings.
Mike Brady [Tue, 11 Dec 2018 10:56:36 +0000 (10:56 +0000)] 
Tidy up some debug messages and warnings, remove old diagnostic codes and settings.

6 years agoConnect up the stall response to the external command calling -- add a single argumen...
Mike Brady [Mon, 10 Dec 2018 22:28:52 +0000 (22:28 +0000)] 
Connect up the stall response to the external command calling -- add a single argument to the unfixable error call.

6 years agoSet stall threshold to 200 ms.
Mike Brady [Mon, 10 Dec 2018 12:38:48 +0000 (12:38 +0000)] 
Set stall threshold to 200 ms.

6 years agoAdd stall detection to the alsa subsystem.
Mike Brady [Mon, 10 Dec 2018 10:50:08 +0000 (10:50 +0000)] 
Add stall detection to the alsa subsystem.

6 years agoadd delay to debug output.
Mike Brady [Sun, 9 Dec 2018 08:58:47 +0000 (08:58 +0000)] 
add delay to debug output.

6 years agoGet timings of play / flush / delay calls.
Mike Brady [Sun, 9 Dec 2018 08:45:10 +0000 (08:45 +0000)] 
Get timings of play / flush / delay calls.

6 years agoTime opening of the device
Mike Brady [Sat, 8 Dec 2018 22:30:34 +0000 (22:30 +0000)] 
Time opening of the device

6 years agoInitial shot at tidying up the avahi monitoring for DACP Id port information to make...
Mike Brady [Sat, 8 Dec 2018 21:55:49 +0000 (21:55 +0000)] 
Initial shot at tidying up the avahi monitoring for DACP Id port information to make it survive abnormal temrination of play sessions.

6 years agoFix small error in uncancellable sleep -- it was calling itself!
Mike Brady [Sat, 8 Dec 2018 17:48:47 +0000 (17:48 +0000)] 
Fix small error in uncancellable sleep -- it was calling itself!

6 years agoFix RTSP timeout and add timing checks for interfacing with the ALSA subsystem. Add...
Mike Brady [Sat, 8 Dec 2018 14:37:36 +0000 (14:37 +0000)] 
Fix RTSP timeout and add timing checks for interfacing with the ALSA subsystem. Add entries to the configuration file.

6 years agoSmall changes in unstable.
Mike Brady [Sat, 8 Dec 2018 14:26:08 +0000 (14:26 +0000)] 
Small changes in unstable.

Merge branch 'unstable' into development

6 years agoMake the idle timeout on the RTSP link the same as the overall timeout -- 30 seconds...
Mike Brady [Sat, 8 Dec 2018 14:13:04 +0000 (14:13 +0000)] 
Make the idle timeout on the RTSP link the same as the overall timeout -- 30 seconds is a bit short. Add checks to the alsa interface timing -- 15 ms to write a packet of frames, 1 ms to ask for the delay.

6 years agoMake the idle timeout on the RTSP link the same as the overall timeout -- 30 seconds...
Mike Brady [Sat, 8 Dec 2018 14:12:33 +0000 (14:12 +0000)] 
Make the idle timeout on the RTSP link the same as the overall timeout -- 30 seconds is a bit short. Add checks to the alsa interface timing -- 15 ms to write a packet of frames, 1 ms to ask for the delay.

6 years agoAdd timing to writing to the DAC
Mike Brady [Sat, 8 Dec 2018 12:58:01 +0000 (12:58 +0000)] 
Add timing to writing to the DAC

6 years agoUpdate RELEASENOTES.md
Mike Brady [Fri, 7 Dec 2018 12:38:12 +0000 (12:38 +0000)] 
Update RELEASENOTES.md

6 years agoUpdate RELEASENOTES.md
Mike Brady [Fri, 7 Dec 2018 12:28:20 +0000 (12:28 +0000)] 
Update RELEASENOTES.md

6 years agoUpdate RELEASENOTES.md
Mike Brady [Fri, 7 Dec 2018 12:25:50 +0000 (12:25 +0000)] 
Update RELEASENOTES.md

6 years agoBring it up to date with what's happened in development.
Mike Brady [Thu, 6 Dec 2018 16:08:39 +0000 (16:08 +0000)] 
Bring it up to date with what's happened in development.
Merge branch 'development' into unstable

6 years agoContinue to use the ordinary snd_pcm_delay call.
Mike Brady [Thu, 6 Dec 2018 15:39:19 +0000 (15:39 +0000)] 
Continue to use the ordinary snd_pcm_delay call.

6 years agoAdd the ability to call a program if an unfixable error is detected. The only unfixia...
Mike Brady [Thu, 6 Dec 2018 14:49:36 +0000 (14:49 +0000)] 
Add the ability to call a program if an unfixable error is detected. The only unfixialbe error at present is then a play session can't be cancelled.

Merge branch 'more_danger' into development

6 years agoThe run_this_if_an_unfixable_error_is_detected script is definitely working and can...
Mike Brady [Thu, 6 Dec 2018 14:46:57 +0000 (14:46 +0000)] 
The run_this_if_an_unfixable_error_is_detected script is definitely working and can restart the device. A sudoers entry is necessary to allow the shairport-sync user to 'sudo reboot --no-wall' without needing a password.

6 years agoEnsure watchdog always starts with the starting time of the thread. Add watchdog...
Mike Brady [Tue, 4 Dec 2018 17:25:40 +0000 (17:25 +0000)] 
Ensure watchdog always starts with the starting time of the thread. Add watchdog bark count. On the third bark, execute an unfixable error script if present.

6 years agoEnsure watchdog always starts with the starting time of the thread. Add watchdog...
Mike Brady [Tue, 4 Dec 2018 17:25:15 +0000 (17:25 +0000)] 
Ensure watchdog always starts with the starting time of the thread. Add watchdog bark count. On the third bark, execute an unfixable error script if present.

6 years agoShorten the delays to 100 ms
Mike Brady [Tue, 4 Dec 2018 08:56:29 +0000 (08:56 +0000)] 
Shorten the delays to 100 ms

6 years agoAdd a 30 second timout on the read function on an RTSP thread.
Mike Brady [Mon, 3 Dec 2018 18:42:49 +0000 (18:42 +0000)] 
Add a 30 second timout on the read function on an RTSP thread.

6 years agoMake the stop requester volatile, duh.
Mike Brady [Mon, 3 Dec 2018 18:01:54 +0000 (18:01 +0000)] 
Make the stop requester volatile, duh.

6 years agoTry to ensure that any alsa command sequences are uncancellable. Leave a little time...
Mike Brady [Mon, 3 Dec 2018 17:00:12 +0000 (17:00 +0000)] 
Try to ensure that any alsa command sequences are uncancellable. Leave a little time afterwards where possible.

6 years agoMake sure that shared watchdog count is correctly updated in the rtsp_conn_info struc...
Mike Brady [Mon, 3 Dec 2018 16:52:32 +0000 (16:52 +0000)] 
Make sure that shared watchdog count is correctly updated in the rtsp_conn_info structure!

6 years agoEnsure no pthread cancellation can occur during an ALSA-related call.
Mike Brady [Mon, 3 Dec 2018 12:44:57 +0000 (12:44 +0000)] 
Ensure no pthread cancellation can occur during an ALSA-related call.

6 years agoFix an error caused by using an unsigned integer as a signed number. It may have...
Mike Brady [Mon, 3 Dec 2018 10:33:29 +0000 (10:33 +0000)] 
Fix an error caused by using an unsigned integer as a signed number. It may have been causing lots of conversation threads to wait for the (blocked) current playing thread to exit.

6 years agoStop using an unsigned integer for time when we want to watch if it goes negative...
Mike Brady [Sun, 2 Dec 2018 18:13:20 +0000 (18:13 +0000)] 
Stop using an unsigned integer for time when we want to watch if it goes negative. Only release the playing_conn if we already own it!

6 years agoMerge branch 'unstable' into development
Mike Brady [Sat, 1 Dec 2018 17:14:36 +0000 (17:14 +0000)] 
Merge branch 'unstable' into development

6 years agoFix a non-initialisation of parameters if no h/w mixer used. Add a few diagnostics...
Mike Brady [Sat, 1 Dec 2018 17:13:20 +0000 (17:13 +0000)] 
Fix a non-initialisation of parameters if no h/w mixer used. Add a few diagnostics, tidy up initial diagnostic message, add verbosity level and whether mixer used.

6 years agoFix a non-initialisation of parameters if no h/w mixer used. Add a few diagnostics...
Mike Brady [Sat, 1 Dec 2018 16:52:23 +0000 (16:52 +0000)] 
Fix a non-initialisation of parameters if no h/w mixer used. Add a few diagnostics, tidy up initial diagnostic message, add verbosity level and whether mixer used.

6 years agoMove UDP port cloure to the RTSP thread, don't allow calls to mdns_* to be cancelled...
Mike Brady [Fri, 30 Nov 2018 14:55:04 +0000 (14:55 +0000)] 
Move UDP port cloure to the RTSP thread, don't allow calls to mdns_* to be cancelled. Remove usage of (p)select in rtsp thread handling.

6 years agoMove closing of ports to the player thread cleanup. They can be bound without the...
Mike Brady [Thu, 29 Nov 2018 22:03:49 +0000 (22:03 +0000)] 
Move closing of ports to the player thread cleanup. They can be bound without the UDP threads ever having been called, so they must be closed when the player thread exits.

6 years agoMove cleanup push to start of RTSP initialisation. Take more care at startup and...
Mike Brady [Thu, 29 Nov 2018 17:14:40 +0000 (17:14 +0000)] 
Move cleanup push to start of RTSP initialisation. Take more care at startup and closedown to make stuff uncancellable.

6 years agoQuieten a debug message
Mike Brady [Thu, 29 Nov 2018 17:13:12 +0000 (17:13 +0000)] 
Quieten a debug message

6 years agoImprove player watchdog, improve clearing down of ports, improve handling of write...
Mike Brady [Thu, 29 Nov 2018 15:36:18 +0000 (15:36 +0000)] 
Improve player watchdog, improve clearing down of ports, improve handling of write- and read-erroes on the RTSP channel. Improve code for holding and releasing the player.

6 years agoAdds checks for posession of the player in order to handle flush, teardown requests.
Mike Brady [Thu, 29 Nov 2018 15:32:06 +0000 (15:32 +0000)] 
Adds checks for posession of the player in order to handle flush, teardown requests.

6 years agoCheck in SETUP and RECORD that the player is available, clean up setup code by removi...
Mike Brady [Thu, 29 Nov 2018 13:13:51 +0000 (13:13 +0000)] 
Check in SETUP and RECORD that the player is available, clean up setup code by removing gotos.

6 years agoQuieten a debug message
Mike Brady [Thu, 29 Nov 2018 13:12:53 +0000 (13:12 +0000)] 
Quieten a debug message

6 years agoClang formatted.
Mike Brady [Thu, 29 Nov 2018 12:18:07 +0000 (12:18 +0000)] 
Clang formatted.

6 years agoAdd an uncancellable usleep timer. Make the player and UDP thread cleanups uncancellable.
Mike Brady [Thu, 29 Nov 2018 11:37:56 +0000 (11:37 +0000)] 
Add an uncancellable usleep timer. Make the player and UDP thread cleanups uncancellable.

6 years agoAdd some debug messages to closing the UDP ports.
Mike Brady [Wed, 28 Nov 2018 19:49:12 +0000 (19:49 +0000)] 
Add some debug messages to closing the UDP ports.

6 years agoAdd SO_REUSEADDR to the UDP sockets. See if it makes any difference.
Mike Brady [Wed, 28 Nov 2018 19:39:11 +0000 (19:39 +0000)] 
Add SO_REUSEADDR to the UDP sockets. See if it makes any difference.

6 years agoMove watchdog to cover connection from start, not just from start of play. Start...
Mike Brady [Wed, 28 Nov 2018 17:18:03 +0000 (17:18 +0000)] 
Move watchdog to cover connection from start, not just from start of play. Start investigating UDP port allocation. Tidy up handling or RTSP write errors -- remove the pselect code from before a write.

6 years agoAdd extra diagnostic to capture a meg_write_response error.
Mike Brady [Tue, 27 Nov 2018 22:53:27 +0000 (22:53 +0000)] 
Add extra diagnostic to capture a meg_write_response error.

6 years agoTry to capture what happens after a write error.
Mike Brady [Tue, 27 Nov 2018 22:03:56 +0000 (22:03 +0000)] 
Try to capture what happens after a write error.

6 years agoQuieten a few debug messages.
Mike Brady [Tue, 27 Nov 2018 17:44:45 +0000 (17:44 +0000)] 
Quieten a few debug messages.

6 years agoQuieten a few debug messages.
Mike Brady [Tue, 27 Nov 2018 17:40:07 +0000 (17:40 +0000)] 
Quieten a few debug messages.

6 years agoAdd new watchdog thread for the player -- should be more reliable than the existing...
Mike Brady [Mon, 26 Nov 2018 19:33:22 +0000 (19:33 +0000)] 
Add new watchdog thread for the player -- should be more reliable than the existing code.

6 years agoAdd many improvements, including reliable interruption using new ports, safer pthread...
Mike Brady [Sat, 24 Nov 2018 22:40:13 +0000 (22:40 +0000)] 
Add many improvements, including reliable interruption using new ports, safer pthread_cancel usage.

6 years agoMake some alsa operation sequences un-cancellable. Make some cleanup sequences un...
Mike Brady [Sat, 24 Nov 2018 22:28:52 +0000 (22:28 +0000)] 
Make some alsa operation sequences un-cancellable. Make some cleanup sequences un-cancellable.

6 years agoChange order of header files (again?) to avoid OpenBSD compilation errors.
Mike Brady [Sat, 24 Nov 2018 11:35:16 +0000 (11:35 +0000)] 
Change order of header files (again?) to avoid OpenBSD compilation errors.

6 years agoUpdate FREEBSD.md
Mike Brady [Sat, 24 Nov 2018 11:30:39 +0000 (11:30 +0000)] 
Update FREEBSD.md

6 years agoclang-format
Mike Brady [Sat, 24 Nov 2018 11:16:57 +0000 (11:16 +0000)] 
clang-format

6 years agoSmall correction to port selection logic. If a new sesion waits for an existing sessi...
Mike Brady [Sat, 24 Nov 2018 11:06:20 +0000 (11:06 +0000)] 
Small correction to port selection logic. If a new sesion waits for an existing session to close that it hasn't interrupted, reset the ports base. Quieten some debug messages.

6 years agoRemove some unnecessary test code from the debug messaging.
Mike Brady [Fri, 23 Nov 2018 16:10:18 +0000 (16:10 +0000)] 
Remove some unnecessary test code from the debug messaging.

6 years agoQuieten a few debug messages.
Mike Brady [Fri, 23 Nov 2018 15:11:04 +0000 (15:11 +0000)] 
Quieten a few debug messages.

6 years agoStop going to verbosity level 3 on occasion. It's not so useful now.
Mike Brady [Fri, 23 Nov 2018 13:57:34 +0000 (13:57 +0000)] 
Stop going to verbosity level 3 on occasion. It's not so useful now.

6 years agoFix bugs in interrupting an existing session, and use fresh ports if necessary.
Mike Brady [Fri, 23 Nov 2018 13:40:42 +0000 (13:40 +0000)] 
Fix bugs in interrupting an existing session, and use fresh ports if necessary.

6 years agoFix off-by-one error in UDP range counting
Mike Brady [Fri, 23 Nov 2018 13:39:23 +0000 (13:39 +0000)] 
Fix off-by-one error in UDP range counting

6 years agoRotate usage of UDP ports if a session is interrupted. Avoids out-of-date packets...
Mike Brady [Fri, 23 Nov 2018 13:29:09 +0000 (13:29 +0000)] 
Rotate usage of UDP ports if a session is interrupted. Avoids out-of-date packets landing in a new session.

6 years agoexperimental
Mike Brady [Fri, 23 Nov 2018 08:53:27 +0000 (08:53 +0000)] 
experimental

6 years agoTry making dropping and closing the DAC un-cancelable to stop the bcm DMA problem...
Mike Brady [Thu, 22 Nov 2018 21:57:54 +0000 (21:57 +0000)] 
Try making dropping and closing the DAC un-cancelable to stop the bcm DMA problem. Add some diagnostics.

6 years agoUpdate shairport-sync.conf
Mike Brady [Thu, 22 Nov 2018 10:08:00 +0000 (10:08 +0000)] 
Update shairport-sync.conf

6 years agoUpdate with changes in the development branch
Mike Brady [Thu, 22 Nov 2018 09:51:04 +0000 (09:51 +0000)] 
Update with changes in the development branch

6 years agoAdd back in the ability to interrupt a session. Clean up a few debug messages.
Mike Brady [Wed, 21 Nov 2018 21:33:21 +0000 (21:33 +0000)] 
Add back in the ability to interrupt a session. Clean up a few debug messages.

6 years agoAdd back in the ability to interrupt a session. Clean up a few debug messages.
Mike Brady [Wed, 21 Nov 2018 21:32:18 +0000 (21:32 +0000)] 
Add back in the ability to interrupt a session. Clean up a few debug messages.

6 years agoForgot!
Mike Brady [Tue, 20 Nov 2018 23:49:46 +0000 (23:49 +0000)] 
Forgot!

Merge branch 'development' of https://github.com/mikebrady/shairport-sync into development

6 years agoWait properly when a session is being interrupted.
Mike Brady [Tue, 20 Nov 2018 23:49:22 +0000 (23:49 +0000)] 
Wait properly when a session is being interrupted.

6 years agoRationalise some of the flush code -- reomve an inner loop, use the flush facility...
Mike Brady [Tue, 20 Nov 2018 22:58:06 +0000 (22:58 +0000)] 
Rationalise some of the flush code -- reomve an inner loop, use the flush facility for skipping to sync.

6 years agoTidy up the formats.
Mike Brady [Tue, 20 Nov 2018 22:56:53 +0000 (22:56 +0000)] 
Tidy up the formats.

6 years agoRemove inner flush loop from get_buffer. Use flush for fixing large positive error.
Mike Brady [Tue, 20 Nov 2018 22:41:23 +0000 (22:41 +0000)] 
Remove inner flush loop from get_buffer. Use flush for fixing large positive error.

6 years agoShouldn't have been in the repository.
Mike Brady [Tue, 20 Nov 2018 14:21:00 +0000 (14:21 +0000)] 
Shouldn't have been in the repository.

6 years agoPut in a cancellation point explicitly in the player_thread main loop. Tidy up some...
Mike Brady [Tue, 20 Nov 2018 14:19:35 +0000 (14:19 +0000)] 
Put in a cancellation point explicitly in the player_thread main loop. Tidy up some debug messages.

6 years agoPut in a cancellation point explicitly in the player_thread main loop. Tidy up some...
Mike Brady [Tue, 20 Nov 2018 14:18:33 +0000 (14:18 +0000)] 
Put in a cancellation point explicitly in the player_thread main loop. Tidy up some debug messages.

6 years agoDouble check debug is not a cancellation point and move the dacp monitor initialisati...
Mike Brady [Tue, 20 Nov 2018 12:07:15 +0000 (12:07 +0000)] 
Double check debug is not a cancellation point and move the dacp monitor initialisation code to after the subsidiary session threads are created.

6 years agoDouble check debug is not a cancellation point and move the dacp monitor initialisati...
Mike Brady [Tue, 20 Nov 2018 12:06:13 +0000 (12:06 +0000)] 
Double check debug is not a cancellation point and move the dacp monitor initialisation code to after the subsidiary session threads are created.

6 years agoMake debug_mutex lock and unlock completely quiet if the debug level is chosen to...
Mike Brady [Mon, 19 Nov 2018 20:51:49 +0000 (20:51 +0000)] 
Make debug_mutex lock and unlock completely quiet if the debug level is chosen to be 0.

6 years agoAdd the sort-of mutex name to the debug_mutex_lock and _unlock. Also, setting the...
Mike Brady [Mon, 19 Nov 2018 20:30:00 +0000 (20:30 +0000)] 
Add the sort-of mutex name to the debug_mutex_lock and _unlock. Also, setting the debug level to 0 turns off the debug logging of them. Handy.

6 years agoStop logging an error if the pthread_cond_wait times out.
Mike Brady [Mon, 19 Nov 2018 20:28:02 +0000 (20:28 +0000)] 
Stop logging an error if the pthread_cond_wait times out.

6 years agoAdd the sort-of mutex name to the debug_mutex_lock and _unlock. Also, setting the...
Mike Brady [Mon, 19 Nov 2018 20:12:57 +0000 (20:12 +0000)] 
Add the sort-of mutex name to the debug_mutex_lock and _unlock. Also, setting the debug level to 0 turns off the debug logging of them. Handy.

6 years agoStop noisy mutex unlock
Mike Brady [Mon, 19 Nov 2018 19:43:17 +0000 (19:43 +0000)] 
Stop noisy mutex unlock

6 years agoTry to make the debug stuff pthread_cancel-proof including the debug / warn / inform...
Mike Brady [Mon, 19 Nov 2018 18:26:42 +0000 (18:26 +0000)] 
Try to make the debug stuff pthread_cancel-proof including the debug / warn / inform / die and debug_mutex calls. Tidy up usage of program_stop.

6 years agoTry to make the debug stuff pthread_cancel-proof including the debug / warn / inform...
Mike Brady [Mon, 19 Nov 2018 18:26:03 +0000 (18:26 +0000)] 
Try to make the debug stuff pthread_cancel-proof including the debug / warn / inform / die and debug_mutex calls. Tidy up usage of program_stop.

6 years agoAdd extra checks to look for a hang in TuneBlade
Mike Brady [Mon, 19 Nov 2018 15:35:47 +0000 (15:35 +0000)] 
Add extra checks to look for a hang in TuneBlade

6 years agoUse pthread_cleanup to unlock alsa handle mutex.
Mike Brady [Mon, 19 Nov 2018 15:35:04 +0000 (15:35 +0000)] 
Use pthread_cleanup to unlock alsa handle mutex.