Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3812873imw; Mon, 11 Jul 2022 16:49:23 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u6l1Khzzw+1n3cZx6J4A5YS2EV/C0FcuDbtqgSwR0HvJBpQkGVRlTDiVO6ZTX6c2CPb1E9 X-Received: by 2002:a05:6402:42cb:b0:43a:5df2:bb5d with SMTP id i11-20020a05640242cb00b0043a5df2bb5dmr28400093edc.36.1657583363527; Mon, 11 Jul 2022 16:49:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657583363; cv=none; d=google.com; s=arc-20160816; b=khAgH1jBrVOJniwCHn0v65cmcyF8vPDtPx/Yyo0LCn3LI89kEcIhe4wSfQ/UkuSbI1 3M2SmFBrrO8M243ix76izFCD4G9nDE+R3p3JiVIFdXWoLlyjiMcKeNm1p+yHbC6uf7o4 rYEEv3JNFmAxFkmgoiy3I7PRoc2KVdqLWohu3Fkx6Q12aIEhUQO2dv4CDRR397B8OkUc xXiIVi/lKn5vu2QayaQyfYQSUh4fZIIWzXV/b7vvvTZDD4JZSMEzSTAVDiQ7ptZMPzWn Ly1SLrHrYTNSN0+ylRiwOdvLEmoY9kf3cfyZzjNs1JAtqfpb6f2znTRWNtImFp93ynPi D0Cw== 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:to:from :dkim-signature; bh=iQYywyf7iBnsNVgDmdxLZWmYH4PU0zg4vQRXr7w8BhQ=; b=jAPWbQoiTIIbetWZndOBNnqQrKMr0GWc1i9NbxgiNaAgnUZkcptPX8WOGEOMQvvpVF bfKs2NdyLSgUWbp//rzdlmrKQwSeU03W8N2ZUraG7ScFvg9UT8lpSyr56BckRwRDOa86 UsLXc+3EXJHXRGCqBjbQsJBbXcSFFkelFbL1HCOKAc2lW/h1BWFTRlHAWks/zAKh6TXG VIGm1iDdfVK0lov2tgXmUmZt57gbyUFmdFs9qQ95yYqKZfhryqU2wnuoNESCdRFBY5uX QqRpJguadkl3HEF60iv8ta1NWdUZJnTLGwqjxgcJVftThw6cEtq4HD45Rn7Tk4cgTTMo /rlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Sq3LLvZP; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b71-20020a509f4d000000b0043a0a8ede1asi12214551edf.273.2022.07.11.16.48.58; Mon, 11 Jul 2022 16:49:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Sq3LLvZP; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230494AbiGKXfu (ORCPT + 99 others); Mon, 11 Jul 2022 19:35:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230040AbiGKXfq (ORCPT ); Mon, 11 Jul 2022 19:35:46 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D24AD2B61D for ; Mon, 11 Jul 2022 16:35:45 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id v4-20020a17090abb8400b001ef966652a3so9785231pjr.4 for ; Mon, 11 Jul 2022 16:35:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=iQYywyf7iBnsNVgDmdxLZWmYH4PU0zg4vQRXr7w8BhQ=; b=Sq3LLvZPdAfgEq5B8RH+UPVDZEJ0Dnp7BSPZ4smopctSJV2PUWwdZfiFiToAOfNyBz rVAEKPoLOuvmD0pz2Z1bnNkKzWJ8hS1gkH76ASuJdR5pCaFGi69++ww501EARkoUZ5QO WDvIk4E3ElC8n/tSKu6Hfv0ysGayyZL67hTM35+zoGFfJnQVDWEstTy7jodEJAWEu6I5 YKXSgP9nCct8O7RtKbTPrqoksY+jy73TGfam7OJeTHoj5dyeGN2Hejg5dOu7hFGMaAS8 qOGcqEexaKHhByrrSV6cKiMTWt32DqcL4KrHAhjonYHCBmVkFspoBwEozSeKopCf/uuK zfOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=iQYywyf7iBnsNVgDmdxLZWmYH4PU0zg4vQRXr7w8BhQ=; b=cD+r3DRjR2hCwPOJ2nvQWqITafVaZGxIls118Z4D6slV0sJwkM/bOd2ww8znc3DC5d d7mk+iE1qI3ak21Me9XnJYVQg04Xmbph+72Je5WfCALgrVUPJD8fZsuDsNRLO/B/jl1R y7ogMJtvlTrrPla48PpIfwnNjPk55GwXMoi7jOTk+ROZ2tPQQcaSBjKGfAlD/XZutitU 2UOVOihMGwJLchgfKfq3Xrug5k02rPT9KlY+LmUdOFMP5g+KNdFlkmKLiLGDeSZHgYO8 RbmTRuuhxr78EfwMHmKe5mSE5Pa1lIh4K44rqNF8himgooHlFlYcGlCZTnNy8HrvRFBB s7Xg== X-Gm-Message-State: AJIora+V6RZPI6nSIqiIJv+TyoXB2ZvD5Qg8Tt0dzRTUY5RO9M0+pq8r nIkzq1Js/FpXRI4fL02by9BUfQVVwGI= X-Received: by 2002:a17:90b:396:b0:1ef:99a4:3737 with SMTP id ga22-20020a17090b039600b001ef99a43737mr931150pjb.106.1657582544572; Mon, 11 Jul 2022 16:35:44 -0700 (PDT) Received: from lvondent-mobl4.. (c-71-56-157-77.hsd1.or.comcast.net. [71.56.157.77]) by smtp.gmail.com with ESMTPSA id q93-20020a17090a17e600b001e33e264fd6sm5446281pja.40.2022.07.11.16.35.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jul 2022 16:35:43 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH v7 6/7] Bluetooth: btusb: Add support for ISO packets Date: Mon, 11 Jul 2022 16:35:34 -0700 Message-Id: <20220711233535.3134546-6-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220711233535.3134546-1-luiz.dentz@gmail.com> References: <20220711233535.3134546-1-luiz.dentz@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Luiz Augusto von Dentz This enabled btusb driver to properly transmit ISO packets. Signed-off-by: Luiz Augusto von Dentz --- drivers/bluetooth/btusb.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index fb1a67189412..28fbc5837f79 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -1765,6 +1765,13 @@ static int btusb_send_frame(struct hci_dev *hdev, struct sk_buff *skb) hdev->stat.sco_tx++; return submit_tx_urb(hdev, urb); + + case HCI_ISODATA_PKT: + urb = alloc_bulk_urb(hdev, skb); + if (IS_ERR(urb)) + return PTR_ERR(urb); + + return submit_or_queue_tx_urb(hdev, urb); } return -EILSEQ; @@ -2258,6 +2265,13 @@ static int btusb_send_frame_intel(struct hci_dev *hdev, struct sk_buff *skb) hdev->stat.sco_tx++; return submit_tx_urb(hdev, urb); + + case HCI_ISODATA_PKT: + urb = alloc_bulk_urb(hdev, skb); + if (IS_ERR(urb)) + return PTR_ERR(urb); + + return submit_or_queue_tx_urb(hdev, urb); } return -EILSEQ; -- 2.35.3