Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4630275iob; Sun, 8 May 2022 19:53:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKiu3uvEBwmY5IqM7DrocNGv//IIQqusXxsbkvXERs8HW8ONhDy0XoFxyIGmOas9YjUjUc X-Received: by 2002:a17:90b:1d03:b0:1dc:f0d0:f165 with SMTP id on3-20020a17090b1d0300b001dcf0d0f165mr9803045pjb.25.1652064782439; Sun, 08 May 2022 19:53:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652064782; cv=none; d=google.com; s=arc-20160816; b=aY2dUuwM/BwFJAALl8z9lZ7ENu3PEz4P1O2EypCsIJZWLTdvLMXPLiIIYbo46NI+wX I6bq4+M7oe3cCkCYWR8IJJC0UjK6ncHS7+mwEcYr+phv83q0ZAwmdz/hrvK/k4nsahNn Fh8UkhQxnfnuq97dRsP55fmoWe6u6FeDMDdBN3IKUY6xTtH3xOvGLCwsD9iKdmFapf+u HGVmP+t95fTflTqOxgZrSXbARF1plwSFYuV1RaH1qVSAbj+NJCrii/QJEkzh0/u1qzCp IVqsosa8hJup/klgbzf/ZBOGth9R8B6hlJQidXAUDbkCi/zU85uiNN8RwkWfrhhFs+Zp hMzA== 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=JBpgrjNMgWpTskmRnE/wkrvDdfqnLyxeNkic0pV8L7U=; b=G2+UfPlrqmhgdEuirG/EqKWw2RVkj1XfQFw0MwaFktIiT2Ood02kBL53zGhn9SBDgs ZqwcWbfiZQns8XIlBnD+7flzee/yLZ5hfnf8xN8ZmyF4BEs7/JDYJT6hlrkbSPLr22SY kPIRuk5bZdopmK7kmW9EnwJqRpbYq+J7xWeTqSe7x3tco2TFwKnIBQILckLj25KehU77 IvC1//CwcIWSlDtR9QKD4RPULf/UDAN07aOhJ+7nxnhD/LpY1Yh8u8H/Iv9J1CELXsPT yBMqMp60usK+eEqXhvLJI9RjVN5bAMrgvWEcnAlzywpX/qrm0J7g8Lwzf5LA00LM+bh4 6XKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Gg8V/ahn"; spf=softfail (google.com: domain of transitioning linux-bluetooth-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id f9-20020a655509000000b003c2699c8074si13682596pgr.563.2022.05.08.19.53.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 19:53:02 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-bluetooth-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Gg8V/ahn"; spf=softfail (google.com: domain of transitioning linux-bluetooth-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1DA4A81497; Sun, 8 May 2022 19:52:40 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1444636AbiEFWBi (ORCPT + 99 others); Fri, 6 May 2022 18:01:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1444629AbiEFWBh (ORCPT ); Fri, 6 May 2022 18:01:37 -0400 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BCFF3A1A1 for ; Fri, 6 May 2022 14:57:53 -0700 (PDT) Received: by mail-io1-xd30.google.com with SMTP id f4so9487622iov.2 for ; Fri, 06 May 2022 14:57:53 -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=JBpgrjNMgWpTskmRnE/wkrvDdfqnLyxeNkic0pV8L7U=; b=Gg8V/ahnd4/+llBu90pfvk+erWzcNnLTSLXwkuAQEWuKL+K6XjHiyZmgYG9Lee41JV qxnRG3vmb5buKe1aGw9qQP9Q1ulUwPL6Ffmpk027lGkOcTOsTwD/z3sqhPUJeNINirrf xhMeCI/3BLp4zlauI5njpZXGXEA+gM8nrpPxj7YCaK+QAlpZ+0C0dj4ZcXuKVblp3zTW 7y3XHZ7o5tA28q/1InfFUBEKsLZqCiNpu5Ag5w4F3TJ4JMYMGEL8DWJclJbuq4GSZVYL hKpkla7+KrV2doz8ioH28SVc5/CTuLlZ98brO98Qy475XCWieV62ub8a8uxmub6LT5Xr 9HUA== 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=JBpgrjNMgWpTskmRnE/wkrvDdfqnLyxeNkic0pV8L7U=; b=EOD8Z068bUpDSwsl3NYRXsvKBqD+RA3EPpkBQyhPVXoMyHpydjC1pRzpT+kuidvB3y EwOM4zHPZYq7J7bGgZzly3gcN6nVFIV9xXcfwDxKCxMFLgSzdsCVHwjx6DuJRH3c8cMb spGMDSWVFaXnVJSJ6D86DeQzrzmgGU3t40t8cdLBicMgK0GowG0Jjky+IBupT0mgff+x FC0aRwU4pDyRkl2U1FcxP0l9B75oi2R2V/VwXPCBzj4O65nT4zUCh3iLyx1fcXQaUo/x ivo3b59nOLRX4dh0RD2DG/x3P45AIYEsNkMEmMC8fxpmejHgYk6zNxI7ntWAaE+/CeEk fI2A== X-Gm-Message-State: AOAM531UOnx0j9W/iu+XSjsTn7dsRZjNkE4x8ClnrcWuaw84+ptNMBFY t4Bz0lbgu6D7e86Ii18KMz47HPmFn9w= X-Received: by 2002:a05:6638:168f:b0:323:e2d5:878b with SMTP id f15-20020a056638168f00b00323e2d5878bmr2390032jat.95.1651874272528; Fri, 06 May 2022 14:57:52 -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 s14-20020a5e980e000000b0065aab053448sm1572281ioj.21.2022.05.06.14.57.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 May 2022 14:57:51 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH v2 7/8] Bluetooth: btusb: Add support for ISO packets Date: Fri, 6 May 2022 14:57:42 -0700 Message-Id: <20220506215743.3870212-7-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220506215743.3870212-1-luiz.dentz@gmail.com> References: <20220506215743.3870212-1-luiz.dentz@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 e25fcd49db70..a1ee0b20bdf6 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -1762,6 +1762,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; @@ -2255,6 +2262,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.1