summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--audio_a2dp_hw/audio_a2dp_hw.c8
-rw-r--r--stack/l2cap/l2c_link.c1
2 files changed, 1 insertions, 8 deletions
diff --git a/audio_a2dp_hw/audio_a2dp_hw.c b/audio_a2dp_hw/audio_a2dp_hw.c
index 93eaec2..345930b 100644
--- a/audio_a2dp_hw/audio_a2dp_hw.c
+++ b/audio_a2dp_hw/audio_a2dp_hw.c
@@ -1064,13 +1064,6 @@ static int adev_close(hw_device_t *device)
return 0;
}
-static uint32_t adev_get_supported_devices(const struct audio_hw_device *dev)
-{
- FNLOG();
-
- return (AUDIO_DEVICE_OUT_ALL_A2DP);
-}
-
static int adev_open(const hw_module_t* module, const char* name,
hw_device_t** device)
{
@@ -1096,7 +1089,6 @@ static int adev_open(const hw_module_t* module, const char* name,
adev->device.common.module = (struct hw_module_t *) module;
adev->device.common.close = adev_close;
- adev->device.get_supported_devices = adev_get_supported_devices;
adev->device.init_check = adev_init_check;
adev->device.set_voice_volume = adev_set_voice_volume;
adev->device.set_master_volume = adev_set_master_volume;
diff --git a/stack/l2cap/l2c_link.c b/stack/l2cap/l2c_link.c
index daaf2a7..2183888 100644
--- a/stack/l2cap/l2c_link.c
+++ b/stack/l2cap/l2c_link.c
@@ -667,6 +667,7 @@ void l2c_link_adjust_allocation (void)
/* If no links active, nothing to do. */
if (l2cb.num_links_active == 0)
{
+ l2cb.controller_xmit_window = l2cb.num_lm_acl_bufs;
l2cb.round_robin_quota = l2cb.round_robin_unacked = 0;
return;
}