[PATCH 03/26] android/hal-audio: Fix PT in media packets

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



According to A2DP 1.3 spec section 4.3.3.2:
"A payload type in the RTP dynamic range shall be chosen (see [22],
section 3)." - [22] = RFC3551

As per referenced RFC3551, values in range 96-127 are reserved for
dynamic assignment so we can set PT to 96.
---
 android/hal-audio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/android/hal-audio.c b/android/hal-audio.c
index 49b829a..49393e2 100644
--- a/android/hal-audio.c
+++ b/android/hal-audio.c
@@ -479,7 +479,7 @@ static bool open_endpoint(struct audio_endpoint *ep,
 	if (!ep->mp)
 		goto failed;
 	ep->mp->hdr.v = 2;
-	ep->mp->hdr.pt = 1;
+	ep->mp->hdr.pt = 0x60;
 	ep->mp->hdr.ssrc = htonl(1);
 
 	ep->mp_data_len = payload_len;
-- 
1.9.3

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux