Commit Graph
3391 Commits
Author SHA1 Message Date
Mike Brady 4d2bef33c2 Merge branch 'dangerous' into unstable 2019-02-17 14:22:51 +00:00
Mike Brady 00be8bc2a6 fix the ability to give attenation priority to hardware or software, set the default to software 2019-02-17 14:10:45 +00:00
Mike Brady a8038c15c9 remove some diagnostics and add in a comment -- using CLOCK_REALTIME with alsa libraries before 1.0.28 2019-02-17 14:00:10 +00:00
Mike Brady 2c8d1dfc71 use CLOCK_REALTIME if alsa is earlier than 1.0.28 2019-02-17 13:52:38 +00:00
Mike Brady dc8483db14 try using CLOCK_REALTIME -- a bad hack 2019-02-17 13:23:34 +00:00
Mike Brady 984fc90e5c Check further on stall timing 2019-02-17 13:00:38 +00:00
Mike Brady e1efc6e45a add, but don't use, a check to see if alsa uses CLOCK_MONOLITHIC (or, presumably, otherwise CLOCK_REALTIME) 2019-02-17 12:32:37 +00:00
Mike Brady cae8bc0f3c Stop increasing the debugging verbosity when a watchdog timeout occurs 2019-02-17 10:13:48 +00:00
Mike Brady 405a028f33 quieten some exiting debug messages 2019-02-16 19:44:25 +00:00
Mike Brady fce6b5137e Add a new command line option: -u to send logs to STDERR. 2019-02-16 19:32:13 +00:00
Mike Brady 9f91bd2d98 fix tinysvcmdns issues reported in CVE-2017-12130 2019-02-16 17:51:47 +00:00
Mike Brady 617d4bc228 Turn up debug level to 3 when too long a silence occurs 2019-02-16 14:56:34 +00:00
Mike Brady 14aa9d4180 Quieten a very noisy mutex debug message 2019-02-16 14:06:40 +00:00
Mike Brady 5af6179875 use the term'state' rather than 'mode' when taling about the active state. Use 'while_active' rather than 'while active' 2019-02-12 15:47:10 +00:00
Mike Brady 41796cbaf9 Quieten two compilation warnings from tinysvcmdns 2019-02-12 12:08:16 +00:00
Mike Brady 54bb627eff Fix some errors and warnings from OpenBSD 2019-02-12 10:55:04 +00:00
Mike Brady 804e62d495 Hook up the active mode to the disable standby facility, enabling a 'while active' setting for it. Expose them to D-Bus. 2019-02-09 18:23:52 +00:00
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