* [PATCH] android/handsfree: Start codec selection if HF send AT+BAC while codec connection
@ 2014-03-21 14:30 Marcin Kraglak
2014-03-21 15:14 ` Szymon Janc
0 siblings, 1 reply; 2+ messages in thread
From: Marcin Kraglak @ 2014-03-21 14:30 UTC (permalink / raw)
To: linux-bluetooth
If AG receives AT+BAC in response to +BCS, refresh list of codecs
and start new codec connection. It is required in TC_AG_ACC_BV_11_I
PTS test case.
---
android/handsfree.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/android/handsfree.c b/android/handsfree.c
index c8e5f8a..95bc222 100644
--- a/android/handsfree.c
+++ b/android/handsfree.c
@@ -1292,6 +1292,9 @@ static void at_cmd_bac(struct hfp_gw_result *result, enum hfp_gw_cmd_type type,
hfp_gw_send_result(device.gw, HFP_RESULT_OK);
+ if (device.proposed_codec)
+ select_codec(0);
+
return;
case HFP_GW_CMD_TYPE_TEST:
case HFP_GW_CMD_TYPE_READ:
--
1.8.3.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] android/handsfree: Start codec selection if HF send AT+BAC while codec connection
2014-03-21 14:30 [PATCH] android/handsfree: Start codec selection if HF send AT+BAC while codec connection Marcin Kraglak
@ 2014-03-21 15:14 ` Szymon Janc
0 siblings, 0 replies; 2+ messages in thread
From: Szymon Janc @ 2014-03-21 15:14 UTC (permalink / raw)
To: Marcin Kraglak; +Cc: linux-bluetooth
Hi Marcin,
On Friday 21 of March 2014 15:30:20 Marcin Kraglak wrote:
> If AG receives AT+BAC in response to +BCS, refresh list of codecs
> and start new codec connection. It is required in TC_AG_ACC_BV_11_I
> PTS test case.
> ---
> android/handsfree.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/android/handsfree.c b/android/handsfree.c
> index c8e5f8a..95bc222 100644
> --- a/android/handsfree.c
> +++ b/android/handsfree.c
> @@ -1292,6 +1292,9 @@ static void at_cmd_bac(struct hfp_gw_result *result, enum hfp_gw_cmd_type type,
>
> hfp_gw_send_result(device.gw, HFP_RESULT_OK);
>
> + if (device.proposed_codec)
> + select_codec(0);
> +
> return;
> case HFP_GW_CMD_TYPE_TEST:
> case HFP_GW_CMD_TYPE_READ:
>
Patch applied, thanks.
--
Best regards,
Szymon Janc
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-03-21 15:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-21 14:30 [PATCH] android/handsfree: Start codec selection if HF send AT+BAC while codec connection Marcin Kraglak
2014-03-21 15:14 ` Szymon Janc
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).