From patchwork Mon Oct 24 11:29:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 9328 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp465980wru; Mon, 24 Oct 2022 06:53:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6pZccofrkKPBtVBrKHzUd6S7/+v3CxOuyL4Fpvid08n0XPwsfxNoxqUFDGTSE5uLlkpiLJ X-Received: by 2002:a17:903:2346:b0:186:ba56:f520 with SMTP id c6-20020a170903234600b00186ba56f520mr768728plh.138.1666619635945; Mon, 24 Oct 2022 06:53:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666619635; cv=none; d=google.com; s=arc-20160816; b=MZp6oA1D6tcVt83nOAbFaNwyQLnej/VRE7Bl3YGiTuH7D1UOqufU3JgmYoDZlnzRsl fpvBMkxrMrVd9U64yHg/NvWRExcKoCr6qvWvJPVLbj8IBOyBERjzynRMPuURnhMwxILy FByl8m7E2A/hO45ubl+/BBVq/O5f6hU4LywWPd//C3553LmHqG6E/mGs3zM2HQAJsVVr 2vCjdvR7Oe+94cnvXZa+yKfeq2LhRIQiy84fdBIRTsbvnIoowB0JtoPSiC+M6JhkKUfA InlR3mevDIKp/bxzBJW0A9B3tvDXGPWLYMwW2ctZEfH/wd0SSV5CZQ3tBMLNOQOt0GmL yN8A== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=3cT8CCw3CvTvh2p7Nqu5OJPStDJPb1yznccUuYLZ8g8=; b=XY+Xj01MRcIyiEtXmCEtxhv1OYyrYAyw2sT5dzWj5S1S7lEQVIqO0Md2EpBnkoiyJF mP7tNSBiSuSUAW/90rlW7IDrav0EIj5eXrNczwSW1rCHWe52SYtwG75mJ8d2FsXBHp8/ 7jnmLJj1//1EYz92bJkUDTH6P0IUdfbCbQqwDO66rExsT7FBI+Hzolf2NZ60g4svkc6R DjrRwIa2r3lz8G1PYZBhljY7Z2/MNm3gmaV4OqOCf6W4KFxLYbBNVKES1Vf5CwWi0aMj e6UPNfhywtaNEggyXmrIRymAvOiBKCW5JczeoHVyZv6FGlZ28Hl75mXYzJZH4C1LYrVA JFtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qSS1FFGw; 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=linuxfoundation.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i11-20020a1709026acb00b0017f77d25b16si30628209plt.467.2022.10.24.06.53.41; Mon, 24 Oct 2022 06:53:55 -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=@linuxfoundation.org header.s=korg header.b=qSS1FFGw; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236634AbiJXNxA (ORCPT + 99 others); Mon, 24 Oct 2022 09:53:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236547AbiJXNwO (ORCPT ); Mon, 24 Oct 2022 09:52:14 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6CACBA25A; Mon, 24 Oct 2022 05:42:45 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 93FA4612BB; Mon, 24 Oct 2022 12:42:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A52B2C433D6; Mon, 24 Oct 2022 12:42:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666615356; bh=g2crMTeUZxtvVq5Uy/9NPi99aTOS+GRPn4fzyhGf+mA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qSS1FFGwzzRA5Vq9lwTxIRtULEn1VTEqAcoLp1aOHwXy+4/+76jetLnRbASjPhNst MP+Mw2AtKoFFCpVsV8VSDwjsJInvD6XKv1OG1CoKU6JIhpqxP+gPoYNQsK4OJJ5GJf FxtxCOzIzFHMr8PNs0jn6yUaQZao0FOgCU9qB1mk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?utf-8?q?Martin_Povi=C5=A1er?= , Mark Brown , Sasha Levin Subject: [PATCH 5.15 219/530] ASoC: tas2764: Allow mono streams Date: Mon, 24 Oct 2022 13:29:23 +0200 Message-Id: <20221024113055.007032429@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024113044.976326639@linuxfoundation.org> References: <20221024113044.976326639@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.6 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747577351516323683?= X-GMAIL-MSGID: =?utf-8?q?1747577351516323683?= From: Martin Povišer [ Upstream commit 23204d928a27146d13e11c9383632775345ecca8 ] The part is a mono speaker amp, but it can do downmix and switch between left and right channel, so the right channel range is 1 to 2. (This mirrors commit bf54d97a835d ("ASoC: tas2770: Allow mono streams") which was a fix to the tas2770 driver.) Fixes: 827ed8a0fa50 ("ASoC: tas2764: Add the driver for the TAS2764") Signed-off-by: Martin Povišer Link: https://lore.kernel.org/r/20220825140241.53963-2-povik+lin@cutebit.org Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/tas2764.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/tas2764.c b/sound/soc/codecs/tas2764.c index ec13ba01e522..d0b6c174186d 100644 --- a/sound/soc/codecs/tas2764.c +++ b/sound/soc/codecs/tas2764.c @@ -485,7 +485,7 @@ static struct snd_soc_dai_driver tas2764_dai_driver[] = { .id = 0, .playback = { .stream_name = "ASI1 Playback", - .channels_min = 2, + .channels_min = 1, .channels_max = 2, .rates = TAS2764_RATES, .formats = TAS2764_FORMATS,