From patchwork Mon Oct 24 11:29:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 9102 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp456060wru; Mon, 24 Oct 2022 06:33:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7mnNcqhgyRlPhocTh8krMrb40oCMoY0khmLCJOnlSLcTKpC+/DxncHV7NaeAAo4sNdAF+V X-Received: by 2002:a17:90b:1648:b0:20b:f0ae:2169 with SMTP id il8-20020a17090b164800b0020bf0ae2169mr72395934pjb.173.1666618410782; Mon, 24 Oct 2022 06:33:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666618410; cv=none; d=google.com; s=arc-20160816; b=n5OuNzW3UPpOw5/wF70Bf4wXdMX7BfYPZ7JGFxy1y82nDEKvq2XcDzmOTrGCF9/LNW XDChUYnVpcLXpHuZg+j/7A2mByHfxHpQx2gEaoC8MInKkBWrOzgTyrE2MN/C//iqm0TD NP0ZkHVXGc5uTjciZRISrNagIyWXWacbt7BmX8s6vjkDIdGUKctaButZJFoNbHk1Xgib OjWb+f8j113DSTSXsHBvCVyX/R3dAlqxCIenvb2NrrB1A1fdLEKh+r8XPZg4G6z7/8p+ DRuSLyyXkXwTRDktn4vAqMr1BlBBhojrg4TWI/jPw1hhf8xgQ5EoP5zcyQr15py7zvAH lx3w== 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=w5GZXiJHYioq0tbQJXQLouzrEGmMzngoAiqEeU5AIBQ=; b=vUNedoaLUKOoBuXe2Nhgys9sO+j/RaFcgxKX45r1rbhvDBtJ02dMgRUx2FTkTp1Jll kvAtBkplF8wVqkkF20KI2U4dhw1oQYqR5bYKvHPsLZ9GrYRk/uoypLt1ufeOALhSJ08+ YBpXnFXV5toKNpnmQOh8jbuv69N83t07y63vmg0oh1rRd05RmyK8kvTWPy8Pb1GA1IQJ waDm/r8SZk0GdX83olnahsrdLwWD1qoPSshLPldv+JD+NSS2A+q8QMAmzrwTUuokjBp/ mcV7IyG3AGZDx1m9X8zPyWYXeTc3mb/iQN+BuTegfJ/h7P0OXMgjd1Uy4RId/O3E50BX 0zyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ziq3zqkK; 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 k14-20020a633d0e000000b0043a20d557a9si39337136pga.229.2022.10.24.06.33.14; Mon, 24 Oct 2022 06:33:30 -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=ziq3zqkK; 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 S235353AbiJXNOz (ORCPT + 99 others); Mon, 24 Oct 2022 09:14:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235724AbiJXNMb (ORCPT ); Mon, 24 Oct 2022 09:12:31 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7760FF5A7; Mon, 24 Oct 2022 05:24:37 -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 ADA24612D2; Mon, 24 Oct 2022 12:23:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BE309C43141; Mon, 24 Oct 2022 12:23:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666614216; bh=vW1MAh2Y8DexQ8ahN7RV2MAtzHxoN1y560yOxQM4TVo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ziq3zqkK4h3O8xywWySk3YuRz3A3iYn+PR5wYiEndiwxXJV2Hd4G2DGd97tjjH5UV TZgJmtDF31SMw6jxfjgJFSkoFF93cgPx1StQcOp+R8XnC0wUBlwME04obT7NzeoP0S M4vP921LzH46POsVu3Yns83TriZi8HVge66iV5VE= 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.10 149/390] ASoC: tas2764: Allow mono streams Date: Mon, 24 Oct 2022 13:29:06 +0200 Message-Id: <20221024113029.033986134@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024113022.510008560@linuxfoundation.org> References: <20221024113022.510008560@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?1747576066707557218?= X-GMAIL-MSGID: =?utf-8?q?1747576066707557218?= 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 37588804a6b5..bde92f080459 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,