Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp892463iog; Fri, 17 Jun 2022 16:41:39 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tXc8I7ouaLNfZOSsLfxP6evgZY160hmFSkKm10ePoIPDscTSsavgTY0L0CVSUa9YH/wTNI X-Received: by 2002:a17:906:aad9:b0:711:d024:4b9b with SMTP id kt25-20020a170906aad900b00711d0244b9bmr11654277ejb.490.1655509299355; Fri, 17 Jun 2022 16:41:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655509299; cv=none; d=google.com; s=arc-20160816; b=xmoFVG0NB4hY2PcdFfQRijXX++TYfLZF7ru/hg/YObjW/QXzUlDI9hGXwn4dc5FNs9 ammqIdURuh6eSWPRRdR1B0lwhyOC2gLkCIzWp46F3zNk1p6QXIGWGNzU4R4IF0wvS/Zp szCQKEir17CgzdzhLH1uRhULSiINnA2Rln1No2YbD8D7gsZA8Exre6og2h+tJbw/IgzV UdkovuU91ZWNllpkhWa4VpNwXQ26LqqE+ID967pQ96ng1KQ+vPp/r9qS1eS6b4DSFWrW 4QNgEggxhqMNANCHnwcNLCJh1G4OooY9wfco0m2R6mgL7lR74QdroHIFV1ankMCRqBv2 s32Q== 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:date :message-id:subject:references:in-reply-to:cc:to:from:dkim-signature; bh=t7130/Leho490P2vdLbjIWMkucl3ldLMx0XZOQsS6eQ=; b=gXqUNAo1xn2AYk8zPByQZiUroYCfkKjrCkkJAgDcdobI3d9p5NDvOqc/5m53o0rJSe Ss+RpPJUBAuF4QGkZQ6ms5F3uz3+zDZfLOk9hNvyBonoa2d7SwGY6b08aU91b8J3wkpd RKkFUnMvhHTR5406xuGGQhincY11JULtmqZqfczRGsI+bBuxeC5kyn4BqhnYqTWacdfV lIQx4J6sv0yUyRxxlnjOlyDNsowiIbusqDrsrH8CMBtOyzah1GWv1CSjR23H1HVRIU+i PmjJwJuo1/9XxJnbyxHAZzRPaHBsaDloUuUAPeMKXIg2ishKi8tmK1wq8cWxX6HBz8xr C2YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="pk/mbNWt"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z4-20020a056402274400b0042df5c053eesi3310758edd.407.2022.06.17.16.41.13; Fri, 17 Jun 2022 16:41:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@kernel.org header.s=k20201202 header.b="pk/mbNWt"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383658AbiFQXUQ (ORCPT + 99 others); Fri, 17 Jun 2022 19:20:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1383674AbiFQXT5 (ORCPT ); Fri, 17 Jun 2022 19:19:57 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBFF566FA3 for ; Fri, 17 Jun 2022 16:19:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 818AFB82C0A for ; Fri, 17 Jun 2022 23:19:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2EE71C3411E; Fri, 17 Jun 2022 23:19:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655507987; bh=1ZQAmxpThkE2DLyss9Wc6dIO9PFD69OSF6CfY8xWydE=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=pk/mbNWthNkCEDjD0aDVFlePtSIelO8IwNo1zp+ymn6vxb6jwtPjiTcQHjhxEnKxU JxTBSgjXTPWMnhMlT1XdJdAzLpManKtq9/bIJpIvguJNtpwreUEhMTL4KubdOiyutq fZ7qTTBmuGX+Vrj9r9Dr2cpDa+uoTrshQNvfc5RfmkpopGqoV35m7aQI1pN6rCZvfg aPf09t16WuzEbf3jLneas3RM3Xk0SBWOHXQO0cj1CxC9rIDC2UszxC3wNiiBUDrpSq +Fz++F6tVQgbJP1sOu8PxJnBcodeucpFeQDkoee/wDPTRUcc9TyVcJcKUWAMha7Isj wuTRSuMrI+hOw== From: Mark Brown To: sbinding@opensource.cirrus.com, lgirdwood@gmail.com Cc: alsa-devel@alsa-project.org, patches@opensource.cirrus.com, linux-kernel@vger.kernel.org In-Reply-To: <20220617153606.2619457-1-sbinding@opensource.cirrus.com> References: <20220617153606.2619457-1-sbinding@opensource.cirrus.com> Subject: Re: [PATCH v1] ASoC: ops: Fix integer detection for when max possible values > 1 Message-Id: <165550798591.994018.15249156290558800333.b4-ty@kernel.org> Date: Sat, 18 Jun 2022 00:19:45 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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-kernel@vger.kernel.org On Fri, 17 Jun 2022 16:36:06 +0100, Stefan Binding wrote: > The standard snd_soc_info_volsw() allows a two value control to be > defined as an integer control only if the control name ends in > "Volume". It achieves this by creating a substring if it contains > " Volume", and ensuring this exists at the end of the name. The > volume substring is then used to decide whether the type is a > SNDRV_CTL_ELEM_TYPE_INTEGER or SNDRV_CTL_ELEM_TYPE_BOOLEAN. > However this volume substring is only computed for a two value > control. > This means for controls where there are more than two possible > values, the substring is never created, so in this case the > substring remains NULL, and the condition yields > SNDRV_CTL_ELEM_TYPE_BOOLEAN, even though there are more than 2 > possible values. > If there are more than 2 possible values for the control, > then it should always be an integer control. > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: ops: Fix integer detection for when max possible values > 1 commit: 442302003bd2b151e12d52b0af9a7dac131bf931 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark