From patchwork Mon Jan 18 08:46:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 365487 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp2060453jap; Mon, 18 Jan 2021 00:49:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJy2dt2MDsuaeKkbSaEgF7jS2jGtuUFmZsW6zqHvPbt7NYwR+hw+TdxPEagff5HVnuuZHOrR X-Received: by 2002:a17:907:3e06:: with SMTP id hp6mr16932753ejc.254.1610959756744; Mon, 18 Jan 2021 00:49:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610959756; cv=none; d=google.com; s=arc-20160816; b=IEyFh/ZwsRbbT1JzjPt2YqIxYi/jYpqj5pIPlBCJLSmNYKu5ncTIiG9SbUcZaNBT0t GTVOdubZes3BSbjM+vxBfrjMj+JeaRbYDWxy9+fDMkFxLDvdZ9E+P3f2nY7ZHrrAY6n/ 3Sad3EVTuoICLTz91MIiFZtAqVMgmZDhlPp7MpMpm+sC7ydU4ufF8owYv2IGgobMX4pb cwLsya33woHsBC6exsWgPVYwuLgZy6manHf2nFmch1unUXYLYhzNKY73dYz5E4gQu5nz YGiEWsJ5u2XmV4c2ATuw67qTTSLAfDx3hGEN+o4U3o1vUxNgkI3NxIjD9kSMVpnUscwf douw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=+UUgEPXEmfwW21zan6h2nz/5V5Oq0e9V8hYSvH8Oa/8=; b=BJsjW20T44JC0Vj9jfD41HXxkCQZWI0dRMw03aIl9ocoZJ/th2g4D7DbelosASIFG2 PHIgyjjFkgI7ppcn+/4gw2DYCe8hvISm9KItK68fPr0AcUeNUXSstOJ9CLcDKPpCJ3QU 8pvP9DRVVtXBcYXgQfFoCxZoVm1Dq+1+gKJsEfOBAQ9lMaIzB3DBjxIBB1oD5Wr3R3Zk RLXVoIXNMXKw2aGJxsaLDpp+3NYajbnVwzLCEk3LDp9bCxZ0haD1YLB8iRyhYSvi+KtH ibUZRFabeZJM60teQEmTlR5knXJgK4bsbDiOPg3lSxrJ559UZudw+qHQT2k2voKxPJNP Vgyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=YS95PRrG; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t14si7889997edd.161.2021.01.18.00.49.16; Mon, 18 Jan 2021 00:49:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=YS95PRrG; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387800AbhARIr5 (ORCPT + 3 others); Mon, 18 Jan 2021 03:47:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387750AbhARIrn (ORCPT ); Mon, 18 Jan 2021 03:47:43 -0500 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22F6DC061574 for ; Mon, 18 Jan 2021 00:47:03 -0800 (PST) Received: by mail-wr1-x42a.google.com with SMTP id v15so11938467wrx.4 for ; Mon, 18 Jan 2021 00:47:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+UUgEPXEmfwW21zan6h2nz/5V5Oq0e9V8hYSvH8Oa/8=; b=YS95PRrGzaLyXZ+zlY6FP6GxzPoMfD7ld7GD4yHFWlfKtC86vUyZFogJdZWO8GloqH ZaraiQRLUarG9P/92GBE8hl6eOsnwHG5WsKNdeY6c/KtlJxGvvNGgB9WPTJeRRO/Z3Be kPjrPGUO6LWHcDVnf9AVLjZ7pq9IIckfzD8XC9Z2Dv2WhNCjvNN3qnbPcx/Bd307kYDK 1MKqHEkkvtSDyoPX4NFAbOAsmrYTt/GlDvE+zaMPCayxlSAQgf06NCsjdyaS8+n4wpp0 w3FYURCP0EkUS3/pDK6BbcCCTrnR1lUYeCMazaEO023t0gc4eU/fhauEKvO3iN1/jaV0 F4Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+UUgEPXEmfwW21zan6h2nz/5V5Oq0e9V8hYSvH8Oa/8=; b=jLYXEe/05X3VJFWdRktIQtymHTonmXFcq3n+pVBUfZ63VsDhSrKQuaBzOZ6ayVm3tm u4fEeh8ywT23xNdnIHdR78qOsrJ/rAi7pvLUTZLsJRy4nJbRoitsPcQ2zlAMh2Yrexrk 9NM+5o4y1rOWWHJPPEFhbywlSR4GcdQC3EIFnh2+1vbxRGCkeGz/+QUVtPwgw4EsCgek Gr+zEs45sE3HnJulmALwwxcUuzKo8WwzRkRk1upqDZPdl0nAdofudGGie77/lv8cMuFj b0xWBnSXgxpv/UbBKBSlAEQzRerJ0L+L3+FgJ2CBR81nn8KLROuKT/zbTDHD/fOAUkgt B2qQ== X-Gm-Message-State: AOAM5307aG2cQlfSWExo4uGtkbW5MxUI2NI05fz3Dm2gVrGcMiKPfN4d cjRfG9TCe1FnOKt5VBo2RTQhnQ== X-Received: by 2002:a5d:457a:: with SMTP id a26mr25143180wrc.53.1610959621930; Mon, 18 Jan 2021 00:47:01 -0800 (PST) Received: from starbuck.lan (82-65-169-74.subs.proxad.net. [82.65.169.74]) by smtp.googlemail.com with ESMTPSA id y63sm26224518wmd.21.2021.01.18.00.47.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jan 2021 00:47:01 -0800 (PST) From: Jerome Brunet To: Felipe Balbi , Greg Kroah-Hartman Cc: Jerome Brunet , Ruslan Bilovol , Jack Pham , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/4] usb: gadget: audio fixes and clean ups Date: Mon, 18 Jan 2021 09:46:38 +0100 Message-Id: <20210118084642.322510-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-Patchwork-Bot: notify Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org This patchset is a collection of fixes and clean ups found while working on the uac2 gadget. Details are provided in each change. Changes since v2: [3] * Slightly amend comment on dequeue error as requested by Felipe * Drop applied patch Changes since v1: [1] * Jack's patch added to the series (no more deps) * Warning [2] on Patch 3 fixed [1]: https://lore.kernel.org/r/20201221173531.215169-1-jbrunet@baylibre.com [2]: https://lore.kernel.org/r/202012291638.QiDQi3Gs-lkp@intel.com [3]: https://lore.kernel.org/r/20210106133652.512178-1-jbrunet@baylibre.com Jack Pham (1): usb: gadget: u_audio: Free requests only after callback Jerome Brunet (3): usb: gadget: u_audio: factorize ssize to alsa fmt conversion usb: gadget: u_audio: remove struct uac_req usb: gadget: u_audio: clean up locking drivers/usb/gadget/function/u_audio.c | 135 ++++++++++++-------------- 1 file changed, 62 insertions(+), 73 deletions(-) -- 2.29.2