[pulseaudio-discuss] [PATCH v5] bluetooth: Add support for automatic switch between hsp and a2dp profiles

Tanu Kaskinen tanuk at iki.fi
Mon Aug 8 22:12:21 UTC 2016


On Fri, 2016-07-22 at 16:20 +0530, Arun Raghavan wrote:
> > From: Pali Rohár <pali.rohar at gmail.com>

> +    if (revert_to_a2dp) {
> +        from_profile = "hsp";
> +        to_profile = "a2dp";
> +    } else {
> +        from_profile = "a2dp";
> +        to_profile = "hsp";
> +    }

These profile names work only with BlueZ 4. With BlueZ 5 the profile
names are "headset_head_unit" and "a2dp_sink". Pali, would you be
willing to write a patch makes the code handle both BlueZ versions?

-- 
Tanu


More information about the pulseaudio-discuss mailing list