Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp870488lqo; Fri, 10 May 2024 19:47:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWCrKpYpq4BuTgGJj5vKi+MkPraRonwl46a3z3W3PYjfIYVcukk6+S/xbqkHDuZNaJtgr9KdK38YkeLWiXhmZoyA7fvR2zhg1uL1LPa7w== X-Google-Smtp-Source: AGHT+IGb7pCmjAAeKzidvXwUZdtH4XBitJoS//kCXE2Y3SzpxGvr39NgZkvffkxypOUhzlHf8DF9 X-Received: by 2002:a17:906:1358:b0:a59:af4c:c7de with SMTP id a640c23a62f3a-a5a2d66543bmr275528866b.58.1715395653410; Fri, 10 May 2024 19:47:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715395653; cv=pass; d=google.com; s=arc-20160816; b=ACE2DqZSvXVPgojg28wid5hk6wT1aT/i4xE2fPNOFyG5uEoM1W42ZfGHk/9e/7HOMN mzkLoDcG2DrRxobyiZTbSDbIz0aXo6kn4ITqWGOoGfD7R/AE7DZUaAiK7wwY9pB9rGNp RIDMxUdqXmMtOTSrg95kNytWtoaPmlixMxSHK4ssfQmA5nHkODBjRhHhoQxcwNyj4uWM c+Df+r2ZnhSdDM1+k5PJJ5Xdggn3mBtMV5i4uZ74OfGGRsFXk8fTS20tXnOuWvF/hNE1 uvOeX+uKW4EpfG56Nbx6Ntzt5LjPoGOCdt/kPgO+dMxu8QlpdgUty7UYBs+qmHxXuwIs /juA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=JIGR6rL4FJT48GF4E4Oj4HN24DPO5RDU6sjq5aUgVAU=; fh=Gg33OXRnrPRrTdx+nczYYEEAdxDOorVRrtzYqt0L5Tg=; b=YDn5gAqRzGscnxAWQ1w4huwh1M0st4CD31c5EBceQ6bYkFbY2wBVSj1+HZVgvsf1q6 92TWSkJP8/PbzVlGJeA5c+vU+lNLs/LyYiPlt/S521VegB1/QcJo1q78e9CeRnC5CVtg GcCxUATSywVAvYee/VGJxAt7g5B5CI6fzAQdMA2QUGnIwTGhA+WOfG06Iq1oZjaIRC49 2jkKcyymyRLRvyJOnr/pd1tEIJh+aHVWfhvx83cfDgO3OkulbmjLjS8xbPqaQHe9G5Gy 9nxIHPWnWRv0TUA5/XdPMAqxhiwIy9JsMrZutxPw8TJ52cgkdOl863ivDmKV2rygpRxE NusQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@asymptotic.io header.s=google header.b=XZ7E0+FH; arc=pass (i=1 spf=pass spfdomain=asymptotic.io dkim=pass dkdomain=asymptotic.io dmarc=pass fromdomain=asymptotic.io); spf=pass (google.com: domain of linux-bluetooth+bounces-4416-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4416-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=asymptotic.io Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17945d74si266840466b.58.2024.05.10.19.47.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 19:47:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-4416-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@asymptotic.io header.s=google header.b=XZ7E0+FH; arc=pass (i=1 spf=pass spfdomain=asymptotic.io dkim=pass dkdomain=asymptotic.io dmarc=pass fromdomain=asymptotic.io); spf=pass (google.com: domain of linux-bluetooth+bounces-4416-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4416-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=asymptotic.io Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 574CF1F2245E for ; Thu, 9 May 2024 02:27:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6949613CFA0; Thu, 9 May 2024 02:27:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=asymptotic.io header.i=@asymptotic.io header.b="XZ7E0+FH" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-qt1-f182.google.com (mail-qt1-f182.google.com [209.85.160.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3777413C9C2 for ; Thu, 9 May 2024 02:27:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715221631; cv=none; b=OTqoi9HpEbiH3YvUgxa0Q7OEdqVDebGyD+ueAcp9iBf+hgom2z+xSTgv4cw0RFUOk4eWBWkrzJHHzipy/S+u5G6irWO3OJZks7vGPUsWGf2sg6+v/LvzO6KV6BLq52p6HNWSj4rBDA9D2THeAxsTNkKSJLOvYM34h1FBr3QCdnA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715221631; c=relaxed/simple; bh=qAjHfwyiiuZ4qReYDCJzOnUMU5WebwbcTQVBgCesjfE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BCkrFYRVuvdApehvh0Xmyf/ECNSyhF7w6BU/HMUAlNE2xqO49OthLQWTknxN4oHWdBzRpyjNu9CUJPrYmxSTojqS82Vy5TffdO5hubhDnY97coAPAg7vGPwr8qD1Qb281ClC6RjkRQGZN97ahEJc2OkuQMKflb3N18LgXLsHcAU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=asymptotic.io; spf=pass smtp.mailfrom=asymptotic.io; dkim=pass (2048-bit key) header.d=asymptotic.io header.i=@asymptotic.io header.b=XZ7E0+FH; arc=none smtp.client-ip=209.85.160.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=asymptotic.io Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=asymptotic.io Received: by mail-qt1-f182.google.com with SMTP id d75a77b69052e-43de92e234dso4867761cf.1 for ; Wed, 08 May 2024 19:27:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=asymptotic.io; s=google; t=1715221629; x=1715826429; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=JIGR6rL4FJT48GF4E4Oj4HN24DPO5RDU6sjq5aUgVAU=; b=XZ7E0+FHSHD53FpcSe/58VXrDGlFhfRywyXF8ceIjk1xd5wP52OcTLKTfRRVojJmBP LNXbLq+QTIFFKXnXn4r40y7rN4IAQHlhBe4bMhmiFAt6lSvyy25mO3mxiOWNazTea22+ EK1HqT2gh/M2JFVRUoLG70y0rLYHTz+XUlsT0EPodVW6NgTgnLqVRx2vRakr6+6/wlx9 MFPU0SMDsi1wKL7Mdv1BzTePARjAb6we6MxfeuSqdnjs3/tu1/ngATev0A+VBPGaw4X1 xuxj6SzVGhKlxUYZSm33NtPEaKmnA2GagyloyQyxaMwYkXj45ESPOo69kj8wAUZcc/fa kjLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715221629; x=1715826429; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=JIGR6rL4FJT48GF4E4Oj4HN24DPO5RDU6sjq5aUgVAU=; b=NRcUm5HVqcvgomP5oQ9Xd+lC2bP6JBIHMjv/D+bKRJ4gzLDwux5DyAE2J4UgvhpkdQ noUMA6Y7Y77R7rIBMEgMdmSdkKaZb2U3XuoxHtiRIHxk9KQgwcWjaPAmvTr6jjBazjlT 4Ya/QJVYPAqI9684Q0x94B696krBUqLTIfERN8lBa0NIYCGtEaAMGGig+Q+V37NXmwRq cGB3jlExXJGGG55fnqwaKUXB16DjRqFrsTrmk4iDUQ+RwKNP+HoJp1GvFH2hyQcrqnNY TL3DwjrrXDpfSwpe7AsTg7nlkC+Rx3zqhJ5+1kHWqIsKXdzhd6jEAXqWPu8eMKiUAAlD k9IQ== X-Gm-Message-State: AOJu0YzQvzbT+xsU/39kAO7AOI2w7HdbxK7IWPLOXYrCMEShsZfGNc54 kFU5TK8kO4Rkd+OVRuSSYKsjQwnjVDcMizqwhGpFzt+a6n5OSSWQIuzAWkecuEBcQ+GovRbg4UM N X-Received: by 2002:ac8:5fd6:0:b0:43a:bcd9:5d71 with SMTP id d75a77b69052e-43dec073df2mr23981121cf.11.1715221628701; Wed, 08 May 2024 19:27:08 -0700 (PDT) Received: from andromeda.lan ([74.15.47.99]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-43df56e278csm2091761cf.93.2024.05.08.19.27.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 19:27:08 -0700 (PDT) From: Arun Raghavan To: linux-bluetooth@vger.kernel.org Cc: Arun Raghavan Subject: [PATCH BlueZ,v2 0/4] ASHA plugin Date: Wed, 8 May 2024 22:26:36 -0400 Message-ID: <20240509022640.451351-1-arun@asymptotic.io> X-Mailer: git-send-email 2.45.0 Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi all, This is v2 of the ASHA plugins. Incorporates feedback: * Non-DBus profile code moved to shared/ * Internal API exposed from shared/ has bt_ prefix * MTU is now the application layer size, rather than L2CAP packet size * Coding style fixes * Squashed the separate volume changes to simplify fixups Arun Raghavan (4): profiles: Add initial code for an ASHA plugin test: Add a script to test ASHA gitignore: Add compile_commands.json gitignore: Add __pycache__ .gitignore | 3 + Makefile.am | 3 +- Makefile.plugins | 5 + configure.ac | 4 + lib/uuid.h | 3 + profiles/audio/asha.c | 336 +++++++++++++++++++++++++ profiles/audio/media.c | 28 +++ profiles/audio/media.h | 2 + profiles/audio/transport.c | 173 ++++++++++++- src/shared/asha.c | 499 +++++++++++++++++++++++++++++++++++++ src/shared/asha.h | 73 ++++++ test/simple-asha | 158 ++++++++++++ 12 files changed, 1284 insertions(+), 3 deletions(-) create mode 100644 profiles/audio/asha.c create mode 100644 src/shared/asha.c create mode 100644 src/shared/asha.h create mode 100755 test/simple-asha -- 2.45.0