Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1975100lql; Wed, 13 Mar 2024 13:37:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXm+YErl1Xy5cqCG4dc3zjy4oFPcnieXeMh8pL8YOWmWCLpLvAnUJvYvO285Kl2ECKp0bfd/wHCfcBYelXCT9McincvHKoKfHf4xOVECg== X-Google-Smtp-Source: AGHT+IHVREBRGxC4kcUFro7mZeXxG5QcYic5RTva7xGOyRmqjy66EtULVLP4VCewp0W9z2LgoeXu X-Received: by 2002:a17:903:40cf:b0:1dd:7e97:5054 with SMTP id t15-20020a17090340cf00b001dd7e975054mr15344723pld.50.1710362237126; Wed, 13 Mar 2024 13:37:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710362237; cv=pass; d=google.com; s=arc-20160816; b=m2eTT07VDu9nXQwzlx+ams9A3nq/dWBwt7eN2CFPFhHVyvpaQVVdSFLn1+BmhCg57R XqC+fzE3Ql/OysDukiNLNPF89yFhnf5RWoqMXKLXPsznR34go/yMfn3X7xaZ9zJcri4H 86WJs1bMEdVPLEcb73eU8PqQQqXbnSIXer/MpMOSpDs7yAatpFe/aOy7NoR8zzyo7zFE 6VMKV1BaBSEjUIbuN+MSUEx5tJWRsTIEEyEUSMM7nzUvtqzV3OenXug1UCxCFbzbJ9x9 7I4zvuBBPJb9QZGrbSjuNGrTfwQzzEQOzDW+bcHNYUhVNfRxmBfClOWhQpvWrsAyXSXG /Kkw== 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:references:in-reply-to:message-id :date:subject:to:from:dkim-signature; bh=VGuMbCSblXuMbRdp+cVXJVrBpElJQ+MdlDXtWzUF73w=; fh=4lGQI6056MBa4/oovMyIYaKLn+Wz/24RGvUivMmQP8E=; b=DFbOe2JXPcqCCqK+s1Mcm1N+hJvYgFXRTthcAVIHyeQ4yiwA/vggw8ZM891cHt3Gpg ioq1eZnmy17xiL8uXsZ0nnhOcHq5oikY0XjZ0g6gNveo92t7ExiyGXrNUF4a6dvVxDww +twN59mEcLvs24HEay/yYKU/0iDV9/nG4emfeK28KTmI1ejrDTeDpR1JVzD7FVq4WwO9 +ptcbtGV8M4OphLWwAUZeIONvFkuh04BPOznqqjKty0odRuF3XZ7vSMln7aizs8GMopV h478LiGUFk1VSW0RQ5xoIwDPjfkoM/ljvmqgQ5U+xlwElXBNzOrlTflNLSJq165ta1vy RKAA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VuD0f18S; 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-2503-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2503-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id ju16-20020a170903429000b001dc8f4c28d8si45272plb.192.2024.03.13.13.37.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 13:37:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-2503-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VuD0f18S; 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-2503-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2503-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 3194EB287B7 for ; Wed, 13 Mar 2024 19:44:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AE7594CDF9; Wed, 13 Mar 2024 19:44:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VuD0f18S" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-vs1-f49.google.com (mail-vs1-f49.google.com [209.85.217.49]) (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 B358246426 for ; Wed, 13 Mar 2024 19:44:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.217.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710359056; cv=none; b=Mf+iKZcqIMUP/0/DzSFk8LX5nBktMJqf9BUAOo+2N99fBnScXcC9dNky94IGvmchtdYGtcMAdtfx/5cHUuhkqmn+YJuL1w8NTLBRjiGXQ8lWz7QyX90jvJt/7VKv1YRXnlHWAAAuGLlcFqRVErDDjxdWE2kc12y3bKa6NtyOEfY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710359056; c=relaxed/simple; bh=PXp1Zb1Khcx0KWI5SNDwipwCmZytXIDt+kHpshxKR7E=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=HHr1q9VVQXOI9bNLCOfL/elTpUXo2J1jvhzGwxisjqFEPCfRrlHE3spKOZVMfFGUYvLi6i0GuLjqJe5GGPczwjFan5Ts+k7Ostn3fAypDhmke/igY9tDi/Z8TD9uvouzDPvu9xMiEPnlBzdezUz+zjbfszlizKLYrZoOiuEC7fQ= 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=VuD0f18S; arc=none smtp.client-ip=209.85.217.49 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-vs1-f49.google.com with SMTP id ada2fe7eead31-47348b64b56so38677137.1 for ; Wed, 13 Mar 2024 12:44:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710359053; x=1710963853; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=VGuMbCSblXuMbRdp+cVXJVrBpElJQ+MdlDXtWzUF73w=; b=VuD0f18SMkRqocxNSqql0MWc5s+Qz76RY4X8A03gagCr7zdEuy5OnDWI6whzZ1BTLY Ch51WTq3uNiX03GM1nR/IA1VCY63cME/SehgCIczkSBV1ruPKLrRIwz56E3u55dHa2y4 KUmWPACDPUZWTeCNdJg4vNtW1pZkQsCUbn9CCRZt1QArV/g6l4PrC6o6GTPLIVCUf/YT pvsC87IY0nayuOt2Lf+ggWeH+CgfvoQkf8BPU49yxT3FEEkhAlvAZdNh2uynWu4GcB71 k8KbGphMapYp7ZzjysEsAZmU8mUlxrPaw2jwdLChXZnU01kQjR3u8aBI9eOhYlVovK3C TzHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710359053; x=1710963853; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VGuMbCSblXuMbRdp+cVXJVrBpElJQ+MdlDXtWzUF73w=; b=hlJGuyrK8uwdJPXY+ZFUqL3WJBhuSMTA/nm2zhYZeQFuxY86rl5NG8WFdl/KlrRS2F 14hmbU+uIZJxi3dXN8HE9C9x3TImpL36z6oNKYJFV3+2FZUnpESqCHw4nVPe0J6oqidz gEUb0OXRWPfo5bJUNAWz1VMCz2MDIWjB35hvwSGuKVVIj1maoz+t3iWCJ8UeI80co7nc EKMk4BLeamcqBqoghtIylU1IbW0TiukCU9f7Fr+4HHhjpt/ZEHgXkVnsExSJMLNCtWcT hdOqUp1o5x/uPUZ7G82hgETYqAa20ywRrv/gK0qydBAdt2iHJxaDQGjk75pVw6geGhQQ +d5g== X-Gm-Message-State: AOJu0YyOO8nmKRy8B4bHvJAxMsWl/2+9Uhor0/wsyktS6aV3Q1Mqps5z j8e+yZqb/Ms0oYyEJHLmK3bxkwphBYpOVAMzmkRyzFynSHoZgo3c9HpyDJgg X-Received: by 2002:a67:f3d5:0:b0:473:c49:283d with SMTP id j21-20020a67f3d5000000b004730c49283dmr1023485vsn.2.1710359053130; Wed, 13 Mar 2024 12:44:13 -0700 (PDT) Received: from lvondent-mobl4.. (107-146-107-067.biz.spectrum.com. [107.146.107.67]) by smtp.gmail.com with ESMTPSA id gd6-20020a056102624600b004730db4e873sm1800259vsb.10.2024.03.13.12.44.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 12:44:11 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ v4 6/6] bap: Add proper default for broadcast setup Date: Wed, 13 Mar 2024 15:44:00 -0400 Message-ID: <20240313194400.1397477-6-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240313194400.1397477-1-luiz.dentz@gmail.com> References: <20240313194400.1397477-1-luiz.dentz@gmail.com> Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Luiz Augusto von Dentz This adds proper default for broadcast setup so it doesn't fail to create the socket due to users not setting them. --- profiles/audio/bap.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c index 1034202cb8a0..964ba9c212e8 100644 --- a/profiles/audio/bap.c +++ b/profiles/audio/bap.c @@ -841,6 +841,9 @@ static struct bap_setup *setup_new(struct bap_ep *ep) /* Mark BIG and BIS to be auto assigned */ setup->qos.bcast.big = BT_ISO_QOS_BIG_UNSET; setup->qos.bcast.bis = BT_ISO_QOS_BIS_UNSET; + setup->qos.bcast.sync_factor = 0x01; + setup->qos.bcast.sync_timeout = BT_ISO_SYNC_TIMEOUT; + setup->qos.bcast.timeout = BT_ISO_SYNC_TIMEOUT; setup->qos_parser = setup_parse_bcast_qos; setup->destroy = setup_bcast_destroy; } else { -- 2.43.0