Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp760188rwd; Thu, 1 Jun 2023 06:18:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5E9DDTcH+6LsMTZrpKrhWI+iNxIAJp7c9Jd3EsxtogW5SwmPM/1PhJNTu3qE8VFn8ip0UH X-Received: by 2002:a17:902:6903:b0:1af:a2a4:837f with SMTP id j3-20020a170902690300b001afa2a4837fmr5161894plk.26.1685625525491; Thu, 01 Jun 2023 06:18:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685625525; cv=none; d=google.com; s=arc-20160816; b=M+ll8MxjYOtzsqCChdx+3fIp6XzLNiTGtqJM/aLtPSvk3kskJKa5ikFlJbW5gnhn2Z zDpxkUfbL1rgMjFaRPekOEF9GXrarj8hCyqSJMl1cjq6g6ZqBiewTP2hpXuALL+Z2RyU HPjran+s/ouzR+GA2YDdjLfjumb7Ys/npmOe9H55yHGkO2pWkGTpvKLOlUOef9gKUwBd suTdUyt+HYPIoKNlaHVlJeXGj2busSndjdv1uxmV4Cqtgz/PCRRsg21ZBM8vpsg68szv qfsQW6JvWpnxTDuVX+ECCz20aML96Ty6W2NhOdLXVB/rDMbXKdUWH1AcDPmbxYGfy2AU LCyQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=w+80VYIfhjZ5fSjcUibNsG+b2Hi4A7lyy0lDCFEbZBs=; b=taryzQR2F+C18+n2vq1eQ8FTKc6xlfOqMj+b3kn6+QKF7CmVQrVytFQUsGr+ks3juS VpLcQLoAtMBVtjG7IeXXZF7Hx0RIOc9uqFUKFA4yrD3nbG2AMh6oXhRKD93LKcssCk1N 1b/VG8bAl5tkPvImlqn8ETONKoagnZLOlXA+OW6hHoVSTKax9/CReJ8l61V2le/rS23V kc1yESD+V7wTBGxKuCSyU3+3KU2McTjw3/8+HY3TLCVMamD0+rKwdAcuP6a3+tIY10zH vhXoOim8ihEAmZvAipm96hKHlknBr0PNcfMmGIC1lFivN0n6R+tVqWbZ8BAkZbxu8IB8 EaEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="RdSP/OEU"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y13-20020a170902b48d00b001ac8daed841si2560248plr.646.2023.06.01.06.18.32; Thu, 01 Jun 2023 06:18:45 -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=@gmail.com header.s=20221208 header.b="RdSP/OEU"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233381AbjFANGX (ORCPT + 99 others); Thu, 1 Jun 2023 09:06:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233266AbjFANGV (ORCPT ); Thu, 1 Jun 2023 09:06:21 -0400 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89069124 for ; Thu, 1 Jun 2023 06:06:19 -0700 (PDT) Received: by mail-pj1-x102c.google.com with SMTP id 98e67ed59e1d1-2568fc3d8a9so240430a91.2 for ; Thu, 01 Jun 2023 06:06:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685624779; x=1688216779; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=w+80VYIfhjZ5fSjcUibNsG+b2Hi4A7lyy0lDCFEbZBs=; b=RdSP/OEUyw387gUXs4br35uVFKo5guW8++Hou3cYfb7YCLhJMNQHx0nY5w8nffjBkM DddJF2l7xiFfCvYAErVvbOKXfXK87LvjsJyA1Wn1/uGZEg6vADkS6jE+tfwI+Yp9H3Jw 2pkiNKyMxdsBS+3ZLMANxPjzX0Pm/VO4EJkb9FGd2St73BTQStxSN1CXVYXLWE50MBsB fwYmcu2bUrLeWKCerok1e7fFLabA58hrgW56dnTDv6ls37XYC1yS7V/fVcMMkbLS9u3h qYOP+U4DY3n3gNtJavEp19/1aICn9Y/ZtpQf2jdHQE8+ylIove6pIe9U6hVMfZEbRSN7 1oFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685624779; x=1688216779; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=w+80VYIfhjZ5fSjcUibNsG+b2Hi4A7lyy0lDCFEbZBs=; b=BdAxgT/umuOsGo2W8LhJaZi4PshpzWTNbsTcgCAVgTsr8Tb/7GL6mgrvZu8MUITNzM BW1LAOEUq4nI+X2CNLo3MgN6Hlq49e3pfqqNmI9HwAsGFOYapFKnhGq031XWQqGvutMA 60rGI7t7Os+qYlfurHucZt1ac4XWR8idp1L2ZlFdF0ff786Mh8kPFZR/M7CkcVqir6Ot tzcksaI+hUM0rkot65hQlmRk4hKPDf7fWGYx0yccUox7oEsUnQEnuyK65TGtm1XnFXwP cqgq4DAgh/jhzULThnjcRsAtb7tT9/XVyBOLqrXkXGPfMG5NnQp+mHwgEOUcl9hRt04f I7zQ== X-Gm-Message-State: AC+VfDye4LHlJFhPuLy2sCa8ksnRd5kzuTtKdKPg/DGmPmCv9x5WunHG gWHHFXp0KqmiV1oh5amIRuo= X-Received: by 2002:a17:90b:17ca:b0:253:572f:79b2 with SMTP id me10-20020a17090b17ca00b00253572f79b2mr6352859pjb.36.1685624778892; Thu, 01 Jun 2023 06:06:18 -0700 (PDT) Received: from ryan-ThinkPad-T470.. (c-24-6-63-212.hsd1.ca.comcast.net. [24.6.63.212]) by smtp.gmail.com with ESMTPSA id s34-20020a17090a2f2500b0024df6bbf5d8sm1430096pjd.30.2023.06.01.06.06.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Jun 2023 06:06:18 -0700 (PDT) From: =?UTF-8?q?=E2=80=9CRyan?= To: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, ryans.lee@analog.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Cc: jairaj.arava@intel.com Subject: [PATCH 2/2] ASoC: max98363: limit the number of channel to 1 Date: Thu, 1 Jun 2023 06:06:00 -0700 Message-Id: <20230601130600.25344-2-ryan.lee.analog@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230601130600.25344-1-ryan.lee.analog@gmail.com> References: <20230601130600.25344-1-ryan.lee.analog@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 From: Ryan Lee MAX98363 is a mono amplifier. The number of channel needs to be always 1. Signed-off-by: Ryan Lee --- sound/soc/codecs/max98363.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/max98363.c b/sound/soc/codecs/max98363.c index 8aa9d9c67aa2..7f5062ac4523 100644 --- a/sound/soc/codecs/max98363.c +++ b/sound/soc/codecs/max98363.c @@ -246,7 +246,7 @@ static int max98363_sdw_dai_hw_params(struct snd_pcm_substream *substream, stream_config.frame_rate = params_rate(params); stream_config.bps = snd_pcm_format_width(params_format(params)); stream_config.direction = direction; - stream_config.ch_count = params_channels(params); + stream_config.ch_count = 1; if (stream_config.ch_count > runtime->hw.channels_max) { stream_config.ch_count = runtime->hw.channels_max; -- 2.34.1