Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1212593lqp; Fri, 22 Mar 2024 08:29:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWPIIBFOwnqHYKQ6X1+eoqwtORtLGaB+zmyR45f11ubnd76K404ccUugg9BOHnt/po3Pln+GoVJYzkrGrRgcBVHY6HFoSaOH3NDi2jK5w== X-Google-Smtp-Source: AGHT+IEi+1FWdO77Ru/lEqYF/TY8W4Q/izsR6N84sY1at4/XAz9wmGFZUdjG1bBf85QG/710nAhj X-Received: by 2002:a05:6830:1147:b0:6e6:81c3:27a4 with SMTP id x7-20020a056830114700b006e681c327a4mr2636164otq.22.1711121357355; Fri, 22 Mar 2024 08:29:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711121357; cv=pass; d=google.com; s=arc-20160816; b=eNtlh/hpJd+KCcb/0/Wlki+qhytrge7XLQFNvBu5VZqAp8KpxZ8b8lecQv3vQZo2gO yhQtmjk7CcGfwYIje5ChoskxfRflIBNIk+T1rYBJnIVRm19ojdsknQQ1DO+eEhz5TyOA PgPGabuf3S+Zh9em0eFJT/8e97CBf6hOWUL3eHFNF/TsF4qWRd7MQcLfXcplpobgUWdc T3Tv67FtleyIk9ubijmfJ9Glm7g2KU3txsSklir86rfYJcA2gZ/8awRHk6AcH88ZiYZT IfKeiBjKCIceh9BPXmJ0QZTV41EwWfGU7EvJUTKQr63M5CpGtzd+vMm4RUJZuRRMgSb0 C8+g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=Tv2/SGZeFbOhxu2ZlN8feKEfti1ci2i1lBP+7TY2F4k=; fh=Kkdo6RP4xFxpyJV6VUEp6MSqXt9r8SNk1QQupulNhj8=; b=UUO2gtnPD8CtCLEFdKRlZXfALiygn1KLekovNcVla33+WIkb+2qG6FPsIYPxw9KyRQ L2UfXkZe2Z8Zj6nXZDc7PPJ+WXMKU6wuMk3ZyGZooj+JEE6oD8XO2ty03H+nmQU2L/0W 271Bc2T4/4kSeGJccLb4+M8wbW1VE39G/qWIot1fQyqaJ4TNqBH6H4yQx6LIxmodxyks wOABVwQ14PRRUH1yIMfBHoBV257m+U0cyt9JsYpI+WbVXtQ+N3YMwhPmJi/6mOuO2l0L rKtHBsfJwCCH1PY7fYWNx7bll9+4nNhH3hcwDdhaVwbDWfCjlW0peKFiL/zm7egoVuXr 5veA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NV0X2FJt; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-bluetooth+bounces-2697-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2697-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id b19-20020a05620a04f300b0078a40df188csi656896qkh.661.2024.03.22.08.29.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 08:29:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-2697-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=@gmail.com header.s=20230601 header.b=NV0X2FJt; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-bluetooth+bounces-2697-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2697-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 0E1A91C21EF2 for ; Fri, 22 Mar 2024 15:29:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BE50351C4A; Fri, 22 Mar 2024 15:29:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NV0X2FJt" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.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 8D39550A8F for ; Fri, 22 Mar 2024 15:29:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711121350; cv=none; b=hKJTku7RWZzht/138kwy+9Y/qeDwL6826Z3Jc+6jqvRTmLaABIKWQCmnFSirjwe1X/Ho912jmaYxhXm5+tIUymMhZWhmY1RBnTL//rTpcYzRDtddwML1SYQYxwF41Ee/6Uk0pAgyNdTOOXfteo8cWkrzmkc/dAwCbJdHjBHNMAE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711121350; c=relaxed/simple; bh=U/i8Uiv2lq5UNIQNm9O5uuQ9Qg6ydz7MAZxr1uxj5J0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=n6JUtvRfGXMCapX/74eT3HAynm//Chsh9/uH6nbOR4+ZrVN6zCyVuZ2RqX0CHZ2u2zzBTBifS5KxMf3ACOFMjnc1rbZGLOqqv9+EVh74C3QNO3ARxTuQ+bwLOiKtEN/vIXU/hixvw4EpjjS28siaGua522671/9+u/uUFBMNOUU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=NV0X2FJt; arc=none smtp.client-ip=209.85.208.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f182.google.com with SMTP id 38308e7fff4ca-2d4886a1cb4so30822921fa.0 for ; Fri, 22 Mar 2024 08:29:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711121347; x=1711726147; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Tv2/SGZeFbOhxu2ZlN8feKEfti1ci2i1lBP+7TY2F4k=; b=NV0X2FJtQgSthMcAETMLTpQCwupgeAd/6QDKpCvyuigpyPKE/p/m9kA2JoxFpFSYbm m5m9ofSlSEONLIWaqrP2suHqZEjHFQ8tEr7w9I8/PloqZAKRDKW5dueXyo0jAg8+Apk+ mP30bNu9xEg6FEd8oSpw52XBiMcUhil2420u1BXeaOrEyORWYi2Im/EzDqAF7TRIkDDU mog5PfBbvwHYOj9/t8po1SpMcZYfpCZcMiXIHfzDOTrXSAYG7MflzRhqzFCdXmc0iXqZ Khk2pg9VeMIt0z3FfnSvdXmsk/izFm+ni4xxlbVr5a7ru5L5fU1W5Q71flSBQ+etLm/X AQ8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711121347; x=1711726147; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Tv2/SGZeFbOhxu2ZlN8feKEfti1ci2i1lBP+7TY2F4k=; b=vmymn9fnxAhfJ2fuvBWEMedoyqPxzXb6Q+a8U2XJcf2y+OH1NubTYRhzAp6wCaQhCz e8usMGKiJduXfxApquVbnM5sqlwU09srWZuW71rXGXrz/rRytLeWBpCX6fNUpIEL0EnL I0Iog/C3H3rCZJpufx3Kw2DxOdtkBFSLJXdrNy+a2GVLn9DkFwkV7I/NKMlGy7SYyuO6 5KLzqgDWCDDKBvzYaNBPWtoomAphXcSPqFlxFWhK3grkWnpRHsSUxhgrMxwdj96nYpox bzx9zeJCM8GUXIHAyZmn2fd95lXQL7SWtVkbaSiL2JMk0HhLURRU3XD/WuQFZH1IDxvj d4Xg== X-Gm-Message-State: AOJu0Yx+572fPWngjGPKqKIfUdvpx3EJCehNvp23H6M6xYATFw3dxieU RH16A6B7qSBNaeeQF3y9cO7J45PmDd1SR2L9hczeSTlWNRRh7D9BmipaAGu7FPVbChMSIyIbsNB vRWqweN1gEmhFCVEn3Xzhg2e0z99F2z+FJ+6uYA== X-Received: by 2002:a2e:730e:0:b0:2d6:85ea:efa5 with SMTP id o14-20020a2e730e000000b002d685eaefa5mr1859207ljc.15.1711121346329; Fri, 22 Mar 2024 08:29:06 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240322143830.1476938-1-xiaokeqinhealth@126.com> In-Reply-To: <20240322143830.1476938-1-xiaokeqinhealth@126.com> From: Luiz Augusto von Dentz Date: Fri, 22 Mar 2024 15:28:53 +0000 Message-ID: Subject: Re: [PATCH BlueZ] avctp: Remove redundant UUID checks and additions To: Xiao Yao Cc: linux-bluetooth@vger.kernel.org, Xiao Yao Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Fri, Mar 22, 2024 at 2:39=E2=80=AFPM Xiao Yao = wrote: > > From: Xiao Yao > > --- > profiles/audio/avctp.c | 6 ------ > 1 file changed, 6 deletions(-) > > diff --git a/profiles/audio/avctp.c b/profiles/audio/avctp.c > index 8ad146df1..6199ee951 100644 > --- a/profiles/audio/avctp.c > +++ b/profiles/audio/avctp.c > @@ -1597,12 +1597,6 @@ static void avctp_confirm_cb(GIOChannel *chan, gpo= inter data) > if (session =3D=3D NULL) > return; > > - if (btd_device_get_service(device, AVRCP_REMOTE_UUID) =3D=3D NULL= ) > - btd_device_add_uuid(device, AVRCP_REMOTE_UUID); > - > - if (btd_device_get_service(device, AVRCP_TARGET_UUID) =3D=3D NULL= ) > - btd_device_add_uuid(device, AVRCP_TARGET_UUID); Patch description makes no sense to me, this code is adding the UUIDs of AVCTP if the device over its PSM because at this point perhaps SDP discovery is not complete. > switch (psm) { > case AVCTP_CONTROL_PSM: > avctp_control_confirm(session, chan, device); > -- > 2.34.1 > > --=20 Luiz Augusto von Dentz