Commit 1a1b1e5a authored by Florent Revest's avatar Florent Revest

Adds a recipe for pulseaudio-modules-droid

parent cecaa515
From 04b2fe6c1f2c416965723a7736999f7d2660fdd7 Mon Sep 17 00:00:00 2001
From: Florent Revest <revestflo@gmail.com>
Date: Mon, 23 Jan 2017 00:25:55 +0100
Subject: [PATCH] Use pa_card_put and pa_card_choose_initial_profile
---
src/droid/module-droid-card.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/droid/module-droid-card.c b/src/droid/module-droid-card.c
index 03a5875..bede5eb 100644
--- a/src/droid/module-droid-card.c
+++ b/src/droid/module-droid-card.c
@@ -925,6 +925,9 @@ int pa__init(pa_module *m) {
u->card->userdata = u;
u->card->set_profile = card_set_profile;
+ pa_card_choose_initial_profile(u->card);
+ pa_card_put(u->card);
+
u->modargs = ma;
u->module = m;
--
2.11.0
SUMMARY = "Android/hybris plugin for PulseAudio"
HOMEPAGE = "https://github.com/mer-hybris/pulseaudio-modules-droid"
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=f294906e6e4eac9d917503a0bbd139b4"
SRC_URI = "git://github.com/mer-hybris/pulseaudio-modules-droid;protocol=https \
file://0001-Use-pa_card_put-and-pa_card_choose_initial_profile.patch"
SRCREV = "e28d1e22d3b0963e457e4fa45b952536ca415c9e"
PR = "r1"
PV = "+git${SRCREV}"
S = "${WORKDIR}/git"
DEPENDS += "pulseaudio libhybris"
inherit autotools pkgconfig
B = "${S}"
do_configure_prepend() {
sed -i "/define QCOM_HARDWARE/d" src/common/droid-util-51.h
}
FILES_${PN} += "/usr/lib/pulse-8.0/modules"
FILES_${PN}-dbg += "/usr/lib/pulse-8.0/modules/.debug/"
FILES_${PN}-staticdev += "/usr/lib/pulse-8.0/modules/*.a"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment