summaryrefslogtreecommitdiff
path: root/src/modules/alsa/alsa-mixer.c
diff options
context:
space:
mode:
authorArun Raghavan <arun.raghavan@collabora.co.uk>2013-04-14 11:24:41 +0530
committerArun Raghavan <arun.raghavan@collabora.co.uk>2013-04-14 11:27:41 +0530
commit11d8da83d487ecccf0a790b032acdeffef77055a (patch)
tree95c604af699749494b5f9953680b9cbef3a66389 /src/modules/alsa/alsa-mixer.c
parentae559c0724d4f15748bb1e05547c6457adb61ad1 (diff)
alsa: Fix mixer path when running from build tree
The mixer paths are not available in ${builddir} - we need to look in ${srcdir}. This should fix running an in-tree build without make install as well as alsa-mixer-path-test in make distcheck. Since the most straightforward way to define PA_SRCDIR was in Makefile.am, I'm moving PA_BUILDDIR there as well for consistency.
Diffstat (limited to 'src/modules/alsa/alsa-mixer.c')
-rw-r--r--src/modules/alsa/alsa-mixer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/alsa/alsa-mixer.c b/src/modules/alsa/alsa-mixer.c
index b65baeb69..554a57df1 100644
--- a/src/modules/alsa/alsa-mixer.c
+++ b/src/modules/alsa/alsa-mixer.c
@@ -2373,7 +2373,7 @@ static int path_verify(pa_alsa_path *p) {
static const char *get_default_paths_dir(void) {
if (pa_run_from_build_tree())
- return PA_BUILDDIR "/modules/alsa/mixer/paths/";
+ return PA_SRCDIR "/modules/alsa/mixer/paths/";
else
return PA_ALSA_PATHS_DIR;
}