Received: by 2002:ab2:715a:0:b0:1fd:c064:50c with SMTP id l26csp133273lqm; Mon, 10 Jun 2024 15:36:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU1cnTCnc0IQW5V4PrBppOPpQcOmvSPuw6Kmv5n/Rutysa4or/6GCsA6cJcT7pY2u9L88FNUYcPa8hYolYtZrEGMeKlhv6K3BkxSKw8Ig== X-Google-Smtp-Source: AGHT+IEaLOFD46yRENPB3t30weW/Si143XXkFClJeOfsdVmaOHKMaPe0pNE2CHUXRjMbHc0qAuL/ X-Received: by 2002:ac8:59d4:0:b0:440:5d10:f038 with SMTP id d75a77b69052e-4405d10f1f0mr76429601cf.67.1718058979240; Mon, 10 Jun 2024 15:36:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718058979; cv=pass; d=google.com; s=arc-20160816; b=u7ww7xjUQ2cVRyI6CLAPOqYe4DnhOL5qRl9eArym2iY0g1TB6/OXDNKtv/Z9tAMz+Q HCSFTW6Tzy41tKMeBLU6Oez2+VLo65wmX1g0R/g5jttRwlx2IIEgl+05QANQd1EwGCtq SV5G6/caEzZB5zJuohFlMmlwWfmEtha3hD24a5PI8VN9NWppQZszEzk/P/l5v1d8nOEd 0aZrv9Sn8vYridd2+t+ELUinlEm4n8BF9H7BapTvmfmrgt3j6kjxo52czoSCIZhC74oN hRcZ6XX4amIux48YJuYyF340RYe8hAoa5GRN+GAWbBdQT5iEMK4PJajr6iiAaEIVNFUP sARw== 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=29QxwBmSBGHvtZSixP9QwBNl1hmBr1E+2NRDlhKbMnM=; fh=Gg33OXRnrPRrTdx+nczYYEEAdxDOorVRrtzYqt0L5Tg=; b=TPbvwqbRJRG1+d/PAIT/BVuoqFFey8qpSOZpjHWrobI1c8wouXgbV1qWSgVmzx3/uB qkZbnNHkXeYx0PvqMfkPgvZe6TzQkdK+vA+BJn3c3+FqdjUgwzoNyngkWdTQecmkZ2A2 PAItwJNd5DMt9YRt0haOtr0qDFgDLmegs2fDvgQDuPWm7QcQjRZ4v2BcoihFbTVVJY0X RStdxtaEBCnIRjPxX/CkH12eJ53td0sPzLOsoHVsR1nNrL/rc4XNd5J+PmH988YRD+5j 6+TviEE/vScJOg7PAY3jiPhWMVRv+WPcxlw8QXNdu7wgYLyMxgjTbQELe+dhLOvAa8Z/ puIg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@asymptotic.io header.s=google header.b=KhwWteA6; 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-5242-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-5242-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=asymptotic.io Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-440906055fdsi39693261cf.33.2024.06.10.15.36.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 15:36:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-5242-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@asymptotic.io header.s=google header.b=KhwWteA6; 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-5242-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-5242-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C3F061C203DD for ; Mon, 10 Jun 2024 22:36:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0FD6D1509A4; Mon, 10 Jun 2024 22:36:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=asymptotic.io header.i=@asymptotic.io header.b="KhwWteA6" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-qt1-f178.google.com (mail-qt1-f178.google.com [209.85.160.178]) (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 22E1C15099A for ; Mon, 10 Jun 2024 22:36:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718058972; cv=none; b=RISOyoDZKqSG/COgkiB+/k6YSMZx8Df740eMWiRqY0gNSEmotpxcTvCPuBVlFUWrrMaTGJIDiWexGcw2Ye+1/hQLPuu3nTeUc4LEDmn79HI//NyHirgRYxU+vNw5oERLKcBFzezIdgKAMhkBVw5F752Y+xmkBHHwpbqk+31IUok= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718058972; c=relaxed/simple; bh=yRgs2oKSK5mvvh2f4ecDY63LiWwaoIa0w88lL5yIgXk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EpvM/AYSLcxe4Va+lbi0HarLsIZuyWO+RwfqjbRu/XW9aONcX3WF8w1WLXO+PDR+nMPe709F7XU9VMBBQacq09vXc+1qufGpcF0/qh4JmAH6Jdh75nRbM8oReM0GnunWowrzcg+ps+2GMXkuNRO4ExHQIYm6qDXIeRFEoDdaMl8= 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=KhwWteA6; arc=none smtp.client-ip=209.85.160.178 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-f178.google.com with SMTP id d75a77b69052e-4405cf0cb1eso2408101cf.1 for ; Mon, 10 Jun 2024 15:36:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=asymptotic.io; s=google; t=1718058968; x=1718663768; 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=29QxwBmSBGHvtZSixP9QwBNl1hmBr1E+2NRDlhKbMnM=; b=KhwWteA63wGcK2/ARBd35uHyeXGAnHiGKFg1MbXnrm3FWnM7sfrn3ecbrhap0AWDDX LgOr4IRiDS2XCfPhA4hwz/YThiKPpWnfmlEa8GM1iXfeTZGNwdNOkMRia2Xp1LfSEjlR a31LM+xdOQq2rsWwCgevAMVYk9gdSZrU61v/kk0oTq19765DEtdRqakgk4i4PC5uhlAh Iwh83MHRYOqTR0OP0soxzV9po1PGciSyk/wxZv+NHhQWxRY/fAlEfA6y4x0vfY38RWp+ os4T4TRwJpm+OXBzK6Mx7dtUNqackr27sRLeSI8Jqk47Cd4NpZs3pCaw+VW90WwNDKTy 7D7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718058968; x=1718663768; 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=29QxwBmSBGHvtZSixP9QwBNl1hmBr1E+2NRDlhKbMnM=; b=F9ots/0gNm/tRxmkUYyue7Eu7vRLRoN+VWcyLwD8Dy0F/r6XG6Okbaks1hIkYpqrHz pg78tfyFwDOovPhcdQZWiFqWUYaYgPFJTSCXhrP15ehxlt3ZkJWPZfZUfk2bIXO+PnmG 8O8U80ZBRryygUfmsrfKTTSU+Rb5l/YVJwi1pVLBlRn3zH7Y+Xuvl1fdB920id6tgHHZ yBD+QB6CSaxq8e+5kA09jfyNWD/VN27MZPfciJbi9GL+W2ptIC/uvcZJG9yq6zU6lltA F13pUb8J/Pru9IVzOzf3q8xxNKYNUoQG6c9iNaK2Jz+St9/x+KIQ/BWt4wDsmInDMAIF vzLQ== X-Gm-Message-State: AOJu0YyuCrgzZeopaNuizvnHzNJGtcUMaZ5FaqbCQB+yizPQ9noRGsMk FN9oULv6OcVF30GRNsJ02gn6C9Xz1zB7Sn3bE3ZYk8Jsz/1a9hl6Sb9EDKHffUdawdWvHeYUBoO m X-Received: by 2002:ac8:5e08:0:b0:43d:f335:425b with SMTP id d75a77b69052e-44041ce39ebmr134790271cf.44.1718058968472; Mon, 10 Jun 2024 15:36:08 -0700 (PDT) Received: from andromeda.lan (bras-base-toroon0359w-grc-41-70-27-101-40.dsl.bell.ca. [70.27.101.40]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-440711c3c53sm16283221cf.80.2024.06.10.15.36.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 15:36:08 -0700 (PDT) From: Arun Raghavan To: linux-bluetooth@vger.kernel.org Cc: Arun Raghavan Subject: [PATCH BlueZ,v9 0/3] ASHA plugin Date: Mon, 10 Jun 2024 18:35:58 -0400 Message-ID: <20240610223601.378127-1-arun@asymptotic.io> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hello again, Here's v9 of the ASHA plugin patchset. Changes include: * Switch to btio API to connect socket -- this makes the connection async, so we don't tie up the mainloop for longer/erroneous connections * Minor fixups based on CI/lint * Trivial gitignore changes are already merged Cheers, Arun Arun Raghavan (3): src/shared: Add initial implementation for an ASHA profile profiles/audio: Add an ASHA plugin test: Add a script to test ASHA Makefile.am | 3 +- Makefile.plugins | 5 + configure.ac | 4 + lib/uuid.h | 3 + profiles/audio/asha.c | 524 +++++++++++++++++++++++++++++++++++++ profiles/audio/asha.h | 38 +++ profiles/audio/media.c | 30 +++ profiles/audio/media.h | 2 + profiles/audio/transport.c | 201 +++++++++++++- src/shared/asha.c | 360 +++++++++++++++++++++++++ src/shared/asha.h | 63 +++++ test/simple-asha | 166 ++++++++++++ 12 files changed, 1396 insertions(+), 3 deletions(-) create mode 100644 profiles/audio/asha.c create mode 100644 profiles/audio/asha.h create mode 100644 src/shared/asha.c create mode 100644 src/shared/asha.h create mode 100755 test/simple-asha -- 2.45.2