[PATCH 1/2, v3] bluetooth: use native and ofono backends in parallel with headset=auto

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2017-03-11 at 13:30 +0100, Georg Chini wrote:
> This patch changes the behavior of the headset=auto switch for module-bluez5-discover.
> With headset=auto now both backends will be active at the same time for the AG role and
> the switching between the backends is only done for the HS role.
> headset=ofono and headset=native remain unchanged.
> 
> This allows to use old HSP only headsets while running ofono and to have headset support
> via pulseaudio if ofono is started with the --noplugin=hfp_ag_bluez5 option.
> ---
> 
> - changes in v2:
>   use a separate function to enable the headset role
> -changes in v3:
>   create the natvie backend in get_managed_objects_reply() if headset=auto
> 
>  src/modules/bluetooth/backend-native.c | 23 ++++++++++++++++++++---
>  src/modules/bluetooth/bluez5-util.c    | 11 +++--------
>  src/modules/bluetooth/bluez5-util.h    |  6 ++++--
>  3 files changed, 27 insertions(+), 13 deletions(-)

Looks good to me.

-- 
Tanu

https://www.patreon.com/tanuk


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux