linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Response to AVRCP Passthrough Commands.
@ 2012-02-28  9:47 Kumar, Sunil A
  2012-02-28 13:05 ` Lucas De Marchi
  0 siblings, 1 reply; 10+ messages in thread
From: Kumar, Sunil A @ 2012-02-28  9:47 UTC (permalink / raw)
  To: linux-bluetooth@vger.kernel.org; +Cc: Nair, Rashmi G, Khanzode, Prashant

Hi,

The passthrough command handler - handle_panel_passthrough - ends up responding with response code - ACCEPTED - in below mentioned cases whereas expected response code as per specification is different. Please find the cases and expected response code mentioned below. The document referred for specifying the expected response code is " AV/C Digital Interface Command Set General Specification Version 4.2" which is referred to in AVRCP specification.

1- Command is supported by Bluez but the Media App doesn't support the same e.g. "FAST FORWARD" is supported by Bluez means present in " key_map" table but Android Froyo Media App doesn't support the same. 
	- As per point 5 of section "6.3 AV/C response rules" in above specified document, the expected response code is - NOT IMPLEMENTED. Here is the text for point 5 from document: " If the fields marked in the ck column of the command frame include the unsupported value, the target shall return a NOT IMPLEMENTED response."

2- Command is supported by Bluez and the Media App. But, command can't be executed at this time because of an error e.g. "PLAY" is supported by Bluez and Media App but playback is not possible when Media App receives this command because of an error.
	- As per point 6 of section "6.3 AV/C response rules" in above specified document, the expected response code is - REJECTED. Here is the text for point 6 from document: " If the target can not execute the CONTROL, STATUS, or NOTIFY command, and a NOT IMPLEMENTED response would not be required for the command, the target shall return a REJECTED response."

3- Command is not supported by Bluez itself, so doesn't matter whether Media App supports it or not. e.g. " key_map" table is modified to remove "FAST FORWARD". 
	- As per point 5 of section "6.3 AV/C response rules" in above specified document, the expected response code is - NOT IMPLEMENTED. Here is the text for point 5 from document: " If the fields marked in the ck column of the command frame include the unsupported value, the target shall return a NOT IMPLEMENTED response."

Could someone help answering following queries:
	- What is the reason for Bluez to respond with response code - ACCEPTED - in these cases? Is this well thought of or just an issue? 
	- If this is not an issue, it shall be great help if you can provide the reasons for current implementation.
	- If this is an issue, is there already a plan to correct it? We need to establish the mechanism wherein Bluez waits for response from client (Media App) whenever necessary (case 1 and 2 mentioned above) before sending response.

Please let me know if you need more information in order to answer the queries.
Thanks.

Best Regards
Sunil Kumar  

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-04-02 14:46 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-28  9:47 Response to AVRCP Passthrough Commands Kumar, Sunil A
2012-02-28 13:05 ` Lucas De Marchi
2012-02-28 13:52   ` Luiz Augusto von Dentz
2012-02-28 14:20     ` [PATCH BlueZ] AVCTP: return not-implemented for unknown passthrough Lucas De Marchi
2012-02-28 15:40       ` Malovany, Ram
2012-02-28 15:54         ` Lucas De Marchi
2012-04-02 14:46       ` Johan Hedberg
2012-02-29 12:20     ` Response to AVRCP Passthrough Commands Kumar, Sunil A
2012-02-29 13:23       ` Luiz Augusto von Dentz
2012-03-01  9:53         ` Kumar, Sunil A

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).