Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH hcidump] avrcp: fix name of metadata field
@ 2011-09-08 23:32 Lucas De Marchi
  2011-09-09 12:22 ` David Stockwell
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Lucas De Marchi @ 2011-09-08 23:32 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Lucas De Marchi

Metadata field number 0x7 should be the track duration and not the
progress of the track playback. Thus rename it to a better description.
---
 parser/avrcp.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/parser/avrcp.c b/parser/avrcp.c
index f8e4443..0b98a3e 100644
--- a/parser/avrcp.c
+++ b/parser/avrcp.c
@@ -166,7 +166,7 @@
 #define AVRCP_MEDIA_ATTRIBUTE_TRACK	0x4
 #define AVRCP_MEDIA_ATTRIBUTE_TOTAL	0x5
 #define AVRCP_MEDIA_ATTRIBUTE_GENRE	0x6
-#define AVRCP_MEDIA_ATTRIBUTE_PROGRESS	0x7
+#define AVRCP_MEDIA_ATTRIBUTE_DURATION	0x7
 
 /* play status */
 #define AVRCP_PLAY_STATUS_STOPPED	0x00
@@ -909,8 +909,8 @@ static const char *mediattr2str(uint32_t attr)
 		return "Track Total";
 	case AVRCP_MEDIA_ATTRIBUTE_GENRE:
 		return "Genre";
-	case AVRCP_MEDIA_ATTRIBUTE_PROGRESS:
-		return "Progress";
+	case AVRCP_MEDIA_ATTRIBUTE_DURATION:
+		return "Track duration";
 	default:
 		return "Reserved";
 	}
-- 
1.7.6.1


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

end of thread, other threads:[~2011-09-27  9:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-08 23:32 [PATCH hcidump] avrcp: fix name of metadata field Lucas De Marchi
2011-09-09 12:22 ` David Stockwell
2011-09-09 13:29   ` Lucas De Marchi
2011-09-09 23:16     ` David Stockwell
2011-09-12 15:05 ` Luiz Augusto von Dentz
2011-09-27  9:57 ` Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox