From 10eba4b6a793e9d28055f027b2c71ad7452981c5 Mon Sep 17 00:00:00 2001 From: Ismo Puustinen Date: Thu, 25 Jul 2013 03:59:49 -0700 Subject: [PATCH] router: allow incoming hfp audio to be routed to headsets. --- murphy/router.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/murphy/router.c b/murphy/router.c index e1d0784..3d74dba 100644 --- a/murphy/router.c +++ b/murphy/router.c @@ -580,14 +580,15 @@ pa_bool_t mir_router_phone_accept(struct userdata *u, mir_rtgroup *rtg, if (class >= mir_device_class_begin && class < mir_device_class_end) { if (class != mir_bluetooth_a2dp && - class != mir_usb_headphone && - class != mir_wired_headphone && class != mir_spdif && class != mir_bluetooth_source && class != mir_bluetooth_sink && class != mir_bluetooth_carkit ) { - if (class == mir_jack || class == mir_hdmi) { + if (class == mir_usb_headphone || class == mir_wired_headphone) { + return TRUE; + } + else if (class == mir_jack || class == mir_hdmi) { pa_assert_se((core = u->core)); if (node->direction == mir_input) { -- 2.7.4