From patchwork Wed Nov 17 11:00:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olivier Moysan X-Patchwork-Id: 12692886 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BA6FFC433EF for ; Wed, 17 Nov 2021 11:03:03 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 842586126A for ; Wed, 17 Nov 2021 11:03:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 842586126A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=foss.st.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=UZKZCctfRuIRJOd+kUZ9FfLdHij/i13qR0CCcp+dzQE=; b=fS6837JBi60Dbb 70hejPz0lqkKscgtsET+kUKvdb+ThxpwXYKeaJYu5W5m3sE3rRnTUGMnBojQJYqEPjAfDzd+/JEvc ldGJpGoqQAWBnAX1G89MdyBB0bIUhu74JjWfJbmjWacrzPdocy/AsQDrWdmAMxWYw5VqCFJQ78ov4 szrIzAxzn4TZzopA4d7fJowcMDte4sROo0HiJQ+bkniKvwOMSmRgnVJwMYkwyzjNYbzjDrxY8qrSf uCz3AX3+xr/qbcMFtNFMgviOrfZbWRnlkF9wlsKUeQ2SfIULNgzs0cjIhVEnW8LiKwtw6kzocOxKc JqnGddHhKjwX+Znb6vZQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mnIgs-004Wgd-6t; Wed, 17 Nov 2021 11:01:22 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mnIgo-004WfO-Fd for linux-arm-kernel@lists.infradead.org; Wed, 17 Nov 2021 11:01:19 +0000 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 1AH7M65Y014827; Wed, 17 Nov 2021 12:01:06 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=selector1; bh=1/Q21ux/FGI1kNRl1aPygtxOq6sHNR7PApw2cIasDJk=; b=cvoCf88sQ1fE7S+lU40DR7GmGIKEecZoHhIn+2hvhGTXeanJQ5K22JP6xVi3F2aWHeZg jJG0BQHz6bLC/ElfBdNr2uhAxEgLJrqORtrlPCjClDXDxIzBFpZ0x/ZIY4lRb4BL1AF5 7ztA2b5qy14O5dpkL2i4tI6rxl6hCLBmieNgudP6+iTbqKqk9+hzR9q8BQtTyFMifTXO eq0QXW6e+h/5FqUKyCoOptBuhRoAedJ22bW16RZXQJjuR/8CJLIK7lKKmN5i5DwvZc6C kdj9NHMwjgJyCieFlGH3tOSgmaU9anSMQ7se8rg8frUA0gLQiQZIH1YY8D5INcdUMbEP yA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3ccq6auuhe-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 17 Nov 2021 12:01:05 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 12A78100038; Wed, 17 Nov 2021 12:01:04 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag2node2.st.com [10.75.127.5]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 2063B21B05F; Wed, 17 Nov 2021 12:01:04 +0100 (CET) Received: from localhost (10.75.127.47) by SFHDAG2NODE2.st.com (10.75.127.5) with Microsoft SMTP Server (TLS) id 15.0.1497.26; Wed, 17 Nov 2021 12:01:03 +0100 From: Olivier Moysan To: Alexandre Torgue , Arnaud Pouliquen , Jaroslav Kysela , "Liam Girdwood" , Mark Brown , "Maxime Coquelin" , Olivier Moysan , Takashi Iwai CC: , , , , Olivier Moysan Subject: [PATCH] ASoC: stm32: sai: increase channels_max limit Date: Wed, 17 Nov 2021 12:00:31 +0100 Message-ID: <20211117110031.19345-1-olivier.moysan@foss.st.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.75.127.47] X-ClientProxiedBy: SFHDAG1NODE3.st.com (10.75.127.3) To SFHDAG2NODE2.st.com (10.75.127.5) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-11-17_04,2021-11-17_01,2020-04-07_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211117_030118_828764_A41A6FF6 X-CRM114-Status: GOOD ( 16.36 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Olivier Moysan The SAI peripheral supports up to 16 channels in TDM mode (8L+8R). The driver currently supports TDM over two channels. Increase SAI DAI playback/record channels_max, to also allow up to 16 channels in TDM mode. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_sai_sub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/stm/stm32_sai_sub.c b/sound/soc/stm/stm32_sai_sub.c index 9c3b8e209656..95cd38a502bb 100644 --- a/sound/soc/stm/stm32_sai_sub.c +++ b/sound/soc/stm/stm32_sai_sub.c @@ -1294,7 +1294,7 @@ static struct snd_soc_dai_driver stm32_sai_playback_dai = { .id = 1, /* avoid call to fmt_single_name() */ .playback = { .channels_min = 1, - .channels_max = 2, + .channels_max = 16, .rate_min = 8000, .rate_max = 192000, .rates = SNDRV_PCM_RATE_CONTINUOUS, @@ -1312,7 +1312,7 @@ static struct snd_soc_dai_driver stm32_sai_capture_dai = { .id = 1, /* avoid call to fmt_single_name() */ .capture = { .channels_min = 1, - .channels_max = 2, + .channels_max = 16, .rate_min = 8000, .rate_max = 192000, .rates = SNDRV_PCM_RATE_CONTINUOUS,