const char *key, *value;
struct hf_audio_card *card;
pa_bluetooth_device *d;
+ pa_bluetooth_profile_t p = PA_BLUETOOTH_PROFILE_HEADSET_AUDIO_GATEWAY;
pa_assert(backend);
pa_assert(path);
} else if (pa_streq(key, "LocalAddress")) {
pa_xfree(card->local_address);
card->local_address = pa_xstrdup(value);
+ } else if (pa_streq(key, "Type")) {
+ if (pa_streq(value, "gateway"))
+ p = PA_BLUETOOTH_PROFILE_HEADSET_HEAD_UNIT;
}
pa_log_debug("%s: %s", key, value);
goto fail;
}
- card->transport = pa_bluetooth_transport_new(d, backend->ofono_bus_id, path, PA_BLUETOOTH_PROFILE_HEADSET_AUDIO_GATEWAY, NULL, 0);
+ card->transport = pa_bluetooth_transport_new(d, backend->ofono_bus_id, path, p, NULL, 0);
card->transport->acquire = hf_audio_agent_transport_acquire;
card->transport->release = hf_audio_agent_transport_release;
card->transport->userdata = card;