From patchwork Sat Oct 22 07:23:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 7509 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp1104993wrr; Sat, 22 Oct 2022 01:33:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM64HihGrna5aICbZpNEx9RaN42B9PY6v3pfZMXrnjq6bLDTsvThUTp4NkJfZN+sNm65//aA X-Received: by 2002:a17:90b:4a51:b0:20d:4ded:3c26 with SMTP id lb17-20020a17090b4a5100b0020d4ded3c26mr62015991pjb.23.1666427631392; Sat, 22 Oct 2022 01:33:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666427631; cv=none; d=google.com; s=arc-20160816; b=tCVRGyzJ300332zRkCx7mVd+l79Z5r1KJujA25p7YHeHqoSS/7bFHOQgCy1JKODZOI 6G6TpTNYp2TSDFg2zIJ9oDukHphwtqyXRNMaZ5Vyti7Jtd95d3fvBXGgcxUFCsGSnl68 9HTzJFPcBB7//WneVLkxWGNpR5wdRzu6FdmnPb+ewxKtzyFqa/jXR8pVflXD3HxM6XDX xHA4maHHQO2ffo8CbsrGU0FuxK2xKqACND2kFPVTumY2V8Y2UehypSFXJ17MN+ccK8JL SwWmnio4QmJtoC30UvxqmgsJ7qVfcpsYs4BS9cqM7bvou29WLSlBcnOQtrWm9A/BQksj r60w== 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=Wea5tuZCyejUUOeFShn9tag2ou3s3i3YEvhxpCHwNao=; b=NSk0T9OtQehTIa4NZ+jY9skXwFVVq4fE8sKChyjDb50y7d0N2y7iVmMWtA7ESP3Fg/ yM1zsUqLnztmdYPfDIXPcoTjtfuQFJcmaTIpPTznikPmqhoCI0Zd91InA4FvhE4DOAyZ N/ooM5D0oTzRFzMwD9pGYlDwyZt3yF3W2b8Lj/+PIW5UEVyTG9hbSgGfdEHAb25IE+8q iLlHg9TPR2cO+x8FmzaGoMVaX+mxEXsJd26a9HDv9DSHvHfWbMmV1cZsycN/ddl5e75k msdu+L52q11q4IsBqXB/1uARnJ8Mww9H/yrol/7eA4oOWi1WIo5Y+/Bihi9B8VP1K+cE F9Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wdzYe1GF; 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 j4-20020a056a00234400b005436ab3283csi23892063pfj.43.2022.10.22.01.33.36; Sat, 22 Oct 2022 01:33:51 -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=wdzYe1GF; 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 S233553AbiJVIUU (ORCPT + 99 others); Sat, 22 Oct 2022 04:20:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233681AbiJVITF (ORCPT ); Sat, 22 Oct 2022 04:19:05 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 881A22CCA0F; Sat, 22 Oct 2022 00:58:03 -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 A70FE60AD9; Sat, 22 Oct 2022 07:47:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8FA7AC433D6; Sat, 22 Oct 2022 07:47:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666424879; bh=7+fjVzf8Ald8bczHdsBDYgEKHhhR9GoYNcP6Ek+3Dd4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wdzYe1GFCY3mPdCF8tvgk/r+UbybuwvunTZuljf5yxptOZXTl3AfaCQ/Agw8nBv3h +A0ksoDWsFFgFs7nJxSazFr39wqp4Rzib0/qzfnhVPh0+3+96JK6NwRSKzHFiOytu0 EFsXxk0BiNzUhZuEkJFv/hTnCD7+sEwwNFPInDmo= 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.19 311/717] ASoC: tas2764: Allow mono streams Date: Sat, 22 Oct 2022 09:23:10 +0200 Message-Id: <20221022072507.487813118@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221022072415.034382448@linuxfoundation.org> References: <20221022072415.034382448@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.3 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?1747376019962807403?= X-GMAIL-MSGID: =?utf-8?q?1747376019962807403?= 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 4cb788f3e5f7..00df36fb3ede 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,