bluez5: enable HSP HS volume control

It's only enabled for HSP AG previously.
This commit is contained in:
Huang-Huang Bao 2021-04-21 11:20:47 +08:00 committed by Wim Taymans
parent f56d08297d
commit 30e4e56852

View file

@ -1488,9 +1488,9 @@ static DBusHandlerResult profile_new_connection(DBusConnection *conn, DBusMessag
goto fail_need_memory;
}
rfcomm->transport = t;
rfcomm->has_volume = rfcomm_volume_enabled(rfcomm);
if (profile == SPA_BT_PROFILE_HSP_AG) {
rfcomm->has_volume = rfcomm_volume_enabled(rfcomm);
rfcomm->hs_state = hsp_hs_init1;
}