Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp141978pxb; Wed, 11 Nov 2020 23:05:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJzr2OvI8m0FgGg764Vm514rM5c4TKl2fkaSNMidSp6If95GZml5tcSmVSCW0YZRjEV2UqAM X-Received: by 2002:a17:906:1c8f:: with SMTP id g15mr28548937ejh.179.1605164745388; Wed, 11 Nov 2020 23:05:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605164745; cv=none; d=google.com; s=arc-20160816; b=DNYj9GhyFYMAWSU81mpJ8hgkmyuW01CzPN241OzYDiklRZyq+mFIzznfhrUfb/gsxU tozL6dPWW1DVY7jNRAFF6+ba8++BaOg7Qfffri89L5XDP21siAZuRWeWjbKhsb2IxgP1 hPQnj8TrKUATcT+CR9D8jpgyIMECUInhyP7/Ejz8a4ShyPZecW2fpBi9d8eaxrLszxUB KupAvJmIEBPDpWJAWDuvOwRTFCHb/eeqpHUSuOt6ZP+YD77H3fkwwy2p56dcs71K6kw6 ecULGKmTwD1zsR4t7A0NvW2UgGyPktDUwRGVstTYxvYT0MCFhPinpkGjSV2rRxHHYTLq /dGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ioncRx1OLhB8Xpr2Z6WOgUxx5Su9ADh8PVyv15rPnY8=; b=dRdTQXrkVTMIY2xbbju0vnLNSYXvwMJmZ+KfYvzBOzM9NJXbjQ5ZKm0yDt+AHinXvB dUUY1McwfP6Gbqu5r+yXer01NCb61EeUuB+JBM/DtKaOu0IJGwFV7op50UhyICO7jidY 7IUKZiminsW7itCbaHvFwIcj/E3KHTUeRPbyu05dka9Du1iO3JeB7XMRp4sw5uonurM/ RPxvPTDTvOV+Ga1/+fotdt7Xu1iGkaHKfzKboIJLyc2x52eyFpG1VnE847NOiFPBjrvC XgSj2JD5LHHuwMJe2MyA25bfPXwmWcfYeQRK/+nfEE6diWuVV1QwCr4MACPrZbNNOgmI VjXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mr0QMD46; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bo5si3225542ejb.102.2020.11.11.23.05.21; Wed, 11 Nov 2020 23:05:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mr0QMD46; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726102AbgKLHEk (ORCPT + 99 others); Thu, 12 Nov 2020 02:04:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725898AbgKLHEk (ORCPT ); Thu, 12 Nov 2020 02:04:40 -0500 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 852EBC0613D1 for ; Wed, 11 Nov 2020 23:04:38 -0800 (PST) Received: by mail-pf1-x443.google.com with SMTP id w6so3673470pfu.1 for ; Wed, 11 Nov 2020 23:04:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ioncRx1OLhB8Xpr2Z6WOgUxx5Su9ADh8PVyv15rPnY8=; b=mr0QMD46DZU1cqk9cRTXEc3ldB6q9VMl2i8neBJG3oW5n4Q67HC+rJ1/L58SDTX37b 1Kik/1VUAnAmdaX6nOYoUvmR+mdoENK4QFvyWifqEKgtLGcQJsuH646cwzEXS8bX4a1h t31M/Pc+6Ymnxb6yINi+mZjLRl19KfdEC2sq2fxVwDrTloWGqyFVBKm7tT7NKjXOv8Wd yC/6ZPgscFzvYYJYbMUYejn+PG1LVGMSqWg5P2WlsmbQi5x4Fcl36+74WkeSfXyzlCLQ qIQSkXm/vs5Bh3ffXIMoLQImC0qU6utARQ7IqJUurIa+2OMvFg0UgJ9wZGqoscb0rlJR lUBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ioncRx1OLhB8Xpr2Z6WOgUxx5Su9ADh8PVyv15rPnY8=; b=sjNjQdZEurw24uurXW3fRbLZ7V8pwvtG2rzVRu/vqg/xi2gvti2FSVc3+GAmAKehmM ucdFCECrX8NNgtit6md6hjoUW/mgb0ndknVtX6ThQfePzopOM2+uz+XQfFZ72lRsbmUe KCqJJJUxiVc1h+WJbd6amqG0xdvxxn5IWA67hXzMu2jKMhy0hSLgNw0aN13vodytzKjM mwzhSixccEEx+AXu06SuvlklDhDshFrHxWJYWXLu3FyySQeQrEivttUvm+hfU5AyvcFc uM5r2umbs9T8nC87jn/8iYc/qVOPfCZTCbW8QzMkzCyNEedUmN8VlVTXC9Jwu2J2OKUW n8fw== X-Gm-Message-State: AOAM533OB8R007aMtoIbnBiu6VUYe0w3Zjrapylsw+AlnJcyiEWtvICZ ifM+oCUtZtghAcjOnMVF5lqQWlXpC08= X-Received: by 2002:a63:f318:: with SMTP id l24mr24539559pgh.193.1605164677920; Wed, 11 Nov 2020 23:04:37 -0800 (PST) Received: from localhost ([122.181.216.76]) by smtp.gmail.com with ESMTPSA id q33sm3362367pja.42.2020.11.11.23.04.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2020 23:04:37 -0800 (PST) From: Sanchayan Maity X-Google-Original-From: Sanchayan Maity To: linux-bluetooth@vger.kernel.org, arun@asymptotic.io Cc: maitysanchayan@gmail.com, Sanchayan Maity Subject: [PATCH 1/1] test: simple-endpoint: Add support for LDAC Date: Thu, 12 Nov 2020 12:34:26 +0530 Message-Id: <20201112070426.21050-2-sanchayan@asymptotic.io> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201112070426.21050-1-sanchayan@asymptotic.io> References: <20201112070426.21050-1-sanchayan@asymptotic.io> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org LDAC is an audio coding technology developed by Sony that enables the transmission of High-Resolution (Hi-Res) audio contents over Bluetooth. --- test/simple-endpoint | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/test/simple-endpoint b/test/simple-endpoint index 59ca189ce..4d0792a64 100755 --- a/test/simple-endpoint +++ b/test/simple-endpoint @@ -29,6 +29,23 @@ SBC_CAPABILITIES = dbus.Array([dbus.Byte(0xff), dbus.Byte(0xff), dbus.Byte(2), d # JointStereo 44.1Khz Subbands: Blocks: 16 Bitpool Range: 2-32 SBC_CONFIGURATION = dbus.Array([dbus.Byte(0x21), dbus.Byte(0x15), dbus.Byte(2), dbus.Byte(32)]) +# Should be 0xFF for vendor codecs +LDAC_CODEC = dbus.Byte(0xff) +# Frequencies: 44.1 KHZ | 48 KHz | 88.2 KHz | 96 KHz +# Channels: Mono | Dual | Stereo +LDAC_CAPABILITIES = dbus.Array([dbus.Byte(0x2d), dbus.Byte(0x01), + dbus.Byte(0x00), dbus.Byte(0x00), dbus.Byte(0xaa), dbus.Byte(0x00), + dbus.Byte(0x3c), dbus.Byte(0x07)]) +LDAC_CONFIGURATION = dbus.Array([dbus.Byte(0x2d), dbus.Byte(0x01), + dbus.Byte(0x00), dbus.Byte(0x00), dbus.Byte(0xaa), dbus.Byte(0x00), + # 44.1 KHz, Stereo; 0x20 0x01 + # 48 KHz, Stereo; 0x10 0x01 + # 48 KHz, Dual ; 0x10 0x02 + # 48 KHz, Mono ; 0x10 0x04 + # 88.2 KHz, Stereo; 0x08 0x01 + # 96 KHz, Stereo; 0x04 0x01 + dbus.Byte(0x20), dbus.Byte(0x01)]) + MP3_CODEC = dbus.Byte(0x01) #Channel Modes: Mono DualChannel Stereo JointStereo #Frequencies: 32Khz 44.1Khz 48Khz @@ -111,6 +128,18 @@ if __name__ == '__main__': "Codec" : SBC_CODEC, "DelayReporting" : True, "Capabilities" : SBC_CAPABILITIES }) + if sys.argv[2] == "ldacsink": + properties = dbus.Dictionary({ "UUID" : A2DP_SINK_UUID, + "Codec" : LDAC_CODEC, + "DelayReporting" : True, + "Capabilities" : LDAC_CAPABILITIES }) + endpoint.default_configuration(LDAC_CONFIGURATION) + if sys.argv[2] == "ldacsource": + properties = dbus.Dictionary({ "UUID" : A2DP_SOURCE_UUID, + "Codec" : LDAC_CODEC, + "DelayReporting" : True, + "Capabilities" : LDAC_CAPABILITIES }) + endpoint.default_configuration(LDAC_CONFIGURATION) if sys.argv[2] == "mp3source": properties = dbus.Dictionary({ "UUID" : A2DP_SOURCE_UUID, "Codec" : MP3_CODEC, -- 2.29.2