summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChan-yeol Park <chanyeol.park@samsung.com>2012-10-09 20:35:46 +0900
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2012-10-09 23:27:51 +0200
commitfa33166bd1868248673152fbd93ef67bd484e32d (patch)
tree3d4ba8d5bb89dd425a85b10b70a258e3b9bd1c6f /tools
parent3be965ebea29d67d1178484cecd80a35a07cd02e (diff)
avinfo: Print a2dp vendor codec info
Diffstat (limited to 'tools')
-rw-r--r--tools/avinfo.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/avinfo.c b/tools/avinfo.c
index 78a15441..f036cf8a 100644
--- a/tools/avinfo.c
+++ b/tools/avinfo.c
@@ -158,6 +158,18 @@ struct getcap_resp {
uint8_t caps[0];
} __attribute__ ((packed));
+static void print_vendor(a2dp_vendor_codec_t *vendor)
+{
+ printf("\tMedia Codec: Vendor Specific A2DP Codec");
+
+ printf("\n\t\tVendor ID 0x%02x%02x%02x%02x", vendor->vendor_id[0],
+ vendor->vendor_id[1], vendor->vendor_id[2],
+ vendor->vendor_id[3]);
+
+ printf("\n\t\tVendor Specific Codec ID 0x%02x%02x\n",
+ vendor->codec_id[0], vendor->codec_id[1]);
+}
+
static void print_mpeg12(a2dp_mpeg_t *mpeg)
{
@@ -292,6 +304,9 @@ static void print_media_codec(struct avdtp_media_codec_capability *cap)
case A2DP_CODEC_MPEG12:
print_mpeg12((void *) cap->data);
break;
+ case A2DP_CODEC_VENDOR:
+ print_vendor((void *) cap->data);
+ break;
default:
printf("\tMedia Codec: Unknown\n");
}