summaryrefslogtreecommitdiff
path: root/backends/alsa/Makefile.am
diff options
context:
space:
mode:
authorVille Syrjälä <[email protected]>2020-12-13 18:53:33 +0200
committerraveit65 <[email protected]>2020-12-26 23:36:11 +0100
commit1b96bc58cb4ce0ce8f90ec26c97437aaed994001 (patch)
treef601dd7d828d6067f3a1ccb2a88cff1026cc1fbe /backends/alsa/Makefile.am
parent31da9e1847a5da12c9d81386a29c647908974227 (diff)
downloadlibmatemixer-1b96bc58cb4ce0ce8f90ec26c97437aaed994001.tar.bz2
libmatemixer-1b96bc58cb4ce0ce8f90ec26c97437aaed994001.tar.xz
alsa: Add udev support
Instead of polling for new devices once per second ask udev to send us events. Avoids waking up the CPU all the time and wasting power. We keep the timeout source as a fallback when udev support is not enabled, or the udev setup fails for whatever reason. The logic for udev_event_ok() was snooped from pulseaudio.
Diffstat (limited to 'backends/alsa/Makefile.am')
-rw-r--r--backends/alsa/Makefile.am2
1 files changed, 2 insertions, 0 deletions
diff --git a/backends/alsa/Makefile.am b/backends/alsa/Makefile.am
index 06e04a7..798ce8b 100644
--- a/backends/alsa/Makefile.am
+++ b/backends/alsa/Makefile.am
@@ -8,6 +8,7 @@ AM_CPPFLAGS = \
-I$(top_srcdir) \
-DG_LOG_DOMAIN=\"libmatemixer-alsa\" \
$(GLIB_CFLAGS) \
+ $(UDEV_CFLAGS) \
$(ALSA_CFLAGS) \
$(NULL)
@@ -43,6 +44,7 @@ libmatemixer_alsa_la_SOURCES = \
libmatemixer_alsa_la_LIBADD = \
$(GLIB_LIBS) \
+ $(UDEV_LIBS) \
$(ALSA_LIBS)
libmatemixer_alsa_la_LDFLAGS = \