Commit Graph
3374 Commits
Author SHA1 Message Date
Mike Brady f3865d77b0 quieten a few debug messages 2019-02-09 17:35:41 +00:00
Mike Brady 97a4766e93 Add call to check if the dbus service is started. 2019-02-08 22:31:50 +00:00
Mike Brady 58acd161cd make including of reference to dbus-service conditional on CONFIG_DBUS_INTERFACE 2019-02-08 20:48:29 +00:00
Mike Brady 34351a99cb Continue hooking up active mode and disable standby stuff 2019-02-08 16:57:39 +00:00
Mike Brady 8b589879be fix a few minor compilation errors 2019-02-08 09:40:51 +00:00
Mike Brady c86823c343 Starting to connect active mode with disable standby. 2019-02-08 09:04:33 +00:00
Mike Brady 79e22063ef check that the systems are started before trying to stop them, duh. 2019-02-05 15:51:16 +00:00
Mike Brady 916edea5a1 remove dependency on libdaemon -- leave it in by default, but allow the new configuration option --with-libdaemon. 2019-02-05 15:13:16 +00:00
Mike Brady e76cfa69fe remove dependency on libdaemon -- leave it in by default, but allow the new configuration option --with-libdaemon. 2019-02-05 15:12:51 +00:00
Mike Brady 1fc1247bb0 Quieten an incorrect compiler warning 2019-02-05 12:18:16 +00:00
Mike Brady 3d1ee2e03f Tidy code and slightly reorder settings listing. 2019-02-05 11:38:11 +00:00
Mike Brady 552218ab6e Clean up audio help texts, add in the volume_range_hw_priority setting. 2019-02-05 11:26:54 +00:00
Mike Brady 1ae7856dd2 Stop a segmentation error if a bsackend has no help routine 2019-02-05 10:23:24 +00:00
Mike Brady 3162977c71 make mdns-external-avahi a conditional compilation 2019-02-05 09:45:16 +00:00
Mike Brady d54025486a Include the mdns_external interface even if avahi is not included. 2019-02-04 16:58:55 +00:00
Mike Brady 550f22a344 Include some more settings in the debug listing. 2019-02-03 17:38:33 +00:00
Mike Brady 7b8ce7974a allow configuration numbers to convert between floats and integers automatically. 2019-02-03 16:52:36 +00:00
Mike Brady 9239a7c56e Include the mbedtls version.h file so that conditional compilation can be done right 2019-02-02 15:27:26 +00:00
Mike Brady 4fb88a3aa5 allow for updated or old mbedtls library 2019-02-02 15:03:27 +00:00
Mike Brady cf03983694 Fix warnings about deprecated mbedtls API calls 2019-02-02 13:05:49 +00:00
Mike Brady cb9a3076b7 New volume code, new mute code, fix cancellation memnory leaks, defer alsa device initialisation until needed. 2019-02-01 21:14:24 +00:00
Mike Brady 601ac4d760 add a volume control mutex to serialise multiple attempts to change the volume, stop setting the fixed volume to max if using hybrid volume setup 2019-02-01 21:08:41 +00:00
Mike Brady 46d117b69a add a volume control mutex to serialise multiple attempts to change the volume 2019-02-01 21:07:35 +00:00
Mike Brady 08e84ece27 add a volume control mutex to serialise multiple attempts to change the volume 2019-02-01 21:07:13 +00:00
Mike Brady bfc7b9b774 lengthen some mutex timeouts to allow valgrind to work okay on a Pi 3B. Make operations that open the mixer uncancellable until it's closed again to stop a few small memory leaks when a player is cancelled. 2019-02-01 16:19:27 +00:00
Mike Brady 02bc269a4a Fix a situation where cancellation could lose a malloced buffer. 2019-02-01 16:17:53 +00:00
Mike Brady 0c5521488c add a special mixer-only mutex, do make open/close mixer stuff safer and probably quicker, not waiting for the main alsa mutex. 2019-02-01 12:38:45 +00:00
Mike Brady 2c0250b32a Don't do a hardware mute when doing a flush -- if disable_standby is true, the mode goes to connected and then if player goes back to play immediately, you might hear some of the sound still moving through the output buffer. This happens due to a bug in IOS player. 2019-01-31 17:11:33 +00:00
Mike Brady 60487c86b1 Make mute work only if not diconnected. Clewan up some debug messages. 2019-01-31 13:35:11 +00:00
Mike Brady 555bb97a39 Rebuild the hardware mute code -- clear up the logic. Needs to check if disconnected though. 2019-01-31 09:01:35 +00:00
Mike Brady fd08511f1f Make it work with deferred initialisation of the alsa device -- deferred to first use. Investigate hardware mute again. 2019-01-30 17:43:15 +00:00
Mike Brady c5ff0dfed0 Rebuild the volume control calculations. Implement software mute. Try to delay alsa initialisation as long as possible. 2019-01-30 09:24:10 +00:00
Mike Brady aa5698fce2 Remove the preflight call - don't seem to need it. 2019-01-27 15:53:36 +00:00
Mike Brady 90ed88dbc5 add hooks for active mode start and end and add in the timeout into the configuration file. 2019-01-27 15:15:05 +00:00
Mike Brady abec863bcf Add a few litte changes from thre transit branch. 2019-01-27 14:32:18 +00:00
Mike Brady 02955ecabd bring up to date with unstable branch 2019-01-27 14:25:02 +00:00
Mike Brady 56bf886206 gracefully handle situation when the output device is already in use; release it properly when finished. 2019-01-27 14:19:39 +00:00
Mike Brady 94f68798c8 Merge branch 'unstable' of https://github.com/mikebrady/shairport-sync into unstable
Merging two unstable branchses that have diverged
2019-01-27 13:57:46 +00:00
Mike Brady 7639bfadbf Fix a number of memory leaks and one #include error when using the OpenSSL library. 2019-01-27 13:52:21 +00:00
Mike Brady ea770b2b13 Remove some unnecessary code "protecting" some use of the OpenSSL library. 2019-01-27 13:50:54 +00:00
Mike Brady 1f67f66735 use the correct label -- CONFIG_OPENSSL -- rather than the incorrect CONFIG_SSL for including code to create a filename using the OpenSSL library. 2019-01-27 13:49:39 +00:00
Mike Brady 4188eba571 Fix a cause of a memory leak using OpenSSL for Base 64 encoding. 2019-01-27 13:48:06 +00:00
Mike Brady c998400f7c restore includes of openssl/mbedtls/polarssl includes 2019-01-26 15:52:21 +00:00
Mike Brady c807513422 quieten a few debug messages, bring a standard one forward. 2019-01-24 16:33:50 +00:00
Mike BradyandGitHub 8a8b59ad8d Update README.md 2019-01-24 09:23:51 +00:00
Mike BradyandGitHub c06586cb85 Update README.md 2019-01-24 09:20:11 +00:00
Mike Brady 7a4949b32f quieten a returned error-code message. 2019-01-24 09:15:09 +00:00
Mike Brady b02e5d9f20 Use returned codes from do_open() to control the state machine -- don't go to abm_connected unless, eh, connected. 2019-01-24 09:14:41 +00:00
Mike Brady 9fb37e4293 Reorganise code to make it respond dynamically to changes in settings. 2019-01-23 22:22:27 +00:00
Mike Brady 0697a40b08 fix crypto library flags 2019-01-23 22:21:43 +00:00