From patchwork Mon Sep 16 08:52:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Simion X-Patchwork-Id: 13805168 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 1F196C3ABA2 for ; Mon, 16 Sep 2024 08:54:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: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:List-Owner; bh=ud4UDklpx9z+Aki2SieK4uzpRbLB5U+3oy0P7P30OVk=; b=i1m1fGA2JXOh84t6SGiFhAXjWV KZ6XKaSemCdQg3IKq4nxNce9MdLrs5wI6FITV9EZkfh7kNQuR+5SGy9nhegEQgeGAuY1JKiaUzlfU KBBDgeduC4aHnYfSnNJD8f6HBDyn6Cc5S1KzK52HQHZHVNLl50P7tLUvn0b/TFPOwz6iuM/P+GcaU Z+ThrzIkYBT72gjJbWb1YD8S/CGgvySjPCyq5P5Utmct0G9uH93U0nVuvZ9/y31tkW7uDGo+lp7wB W3uKLl4wn2WtI6M8bSY1e2fYCNkkJaKITStG2W1DEH9ynok3o76I8R5+8eh7IJDrt7b0NPWkdICIa 2JJPcUmA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sq7VJ-00000003UWB-0lLc; Mon, 16 Sep 2024 08:54:41 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sq7UD-00000003UMs-3uRI for linux-arm-kernel@lists.infradead.org; Mon, 16 Sep 2024 08:53:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1726476813; x=1758012813; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=xWtunqZUwm+Iv5DfIc9zQa49fXxa5eCLE0PCO9l16Y4=; b=YamsPc1tZfPXzjYYBMZvRBnU/oDEoG8z2AmG21SlT2aqpjYDIShAi6j7 JcY3rNI8sEeiI5bIg7dynEZblOYeWEnlV1ZxPyo3D9rHCFBFVq1NAyPVv ejUTxKsZ4Ca6+Ssk8Y3gcsGcVkkHaA6HCV0toDIL2B1vZJvzJXFwxQbBL 51B2tgrReoWlKlCcH3rG9mRcP4x4Zzgt2z6bYtMlZGUGbe4rzcrORX+db ZLNBvdfokInJfL+AjBnQ/l0aElkV0ItgSRDSqSESc4nGMxDU53oYfyd/F 3G4M/7O5aOHzGxsrA9wIh5Zilm3YAxkawxF4MCMwXAy/WXhbn+ez5oa5q Q==; X-CSE-ConnectionGUID: PamDwLmaS1u4auhQg+WCVA== X-CSE-MsgGUID: Xl7j1+o3Se2UIgOppZ5/Qg== X-IronPort-AV: E=Sophos;i="6.10,232,1719903600"; d="scan'208";a="32443040" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 16 Sep 2024 01:53:32 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 16 Sep 2024 01:53:12 -0700 Received: from ROB-ULT-M76677.microchip.com (10.10.85.11) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Mon, 16 Sep 2024 01:53:09 -0700 From: Andrei Simion To: , , , , , , CC: , , , , Codrin Ciubotariu , Andrei Simion Subject: [PATCH 1/2] ASoC: atmel: atmel_ssc_dai: Add stream names Date: Mon, 16 Sep 2024 11:52:14 +0300 Message-ID: <20240916085214.11083-2-andrei.simion@microchip.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240916085214.11083-1-andrei.simion@microchip.com> References: <20240916085214.11083-1-andrei.simion@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240916_015334_218552_4515962D X-CRM114-Status: UNSURE ( 9.29 ) X-CRM114-Notice: Please train this message. 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: Codrin Ciubotariu Add required stream names for DPCM and future use-cases. [andrei.simion@microchip.com: Adjust commit title. Reword commit message.] Signed-off-by: Codrin Ciubotariu Signed-off-by: Andrei Simion Reviewed-by: Alexandre Belloni --- sound/soc/atmel/atmel_ssc_dai.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/atmel/atmel_ssc_dai.c b/sound/soc/atmel/atmel_ssc_dai.c index 3763454436c1..7047f17fe7a8 100644 --- a/sound/soc/atmel/atmel_ssc_dai.c +++ b/sound/soc/atmel/atmel_ssc_dai.c @@ -836,6 +836,7 @@ static const struct snd_soc_dai_ops atmel_ssc_dai_ops = { static struct snd_soc_dai_driver atmel_ssc_dai = { .playback = { + .stream_name = "Playback", .channels_min = 1, .channels_max = 2, .rates = SNDRV_PCM_RATE_CONTINUOUS, @@ -843,6 +844,7 @@ static struct snd_soc_dai_driver atmel_ssc_dai = { .rate_max = 384000, .formats = ATMEL_SSC_FORMATS,}, .capture = { + .stream_name = "Capture", .channels_min = 1, .channels_max = 2, .rates = SNDRV_PCM_RATE_CONTINUOUS, From patchwork Mon Sep 16 08:52:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Simion X-Patchwork-Id: 13805170 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 3E389C3ABA2 for ; Mon, 16 Sep 2024 08:57:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: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:List-Owner; bh=bw6EHjyxP36hLkg3SD4hSkQvRQKNnMEspxJJBfETGgg=; b=lqQnspS2fqs9dTB1CJq8Xav889 Mh699p8CqStfti1A3wWeI3jPc5uBoq2Oo89sWru1fOdmbSYoQ6Gp2Vm1eDc9UFwyLXt513cb8JHmM lOxHOUBRASjEWglY5jQCj9PREp297e9YSE/SeHn6Pjvt5hWNT7dU7s9lH5HZdfS6CJ8tcsLOUuhdI AkOi0XkMloJIdK72BQeNebghD/qdX+j52mmg1tKIsA3uBNuJ+uAxYbZ52z7lZ/SHo4Nj8n1gis1PG w0ghEcltCA30we3MUBBGpofXEJL54GBomOc/bQiE+BTSUDR5nbfV+hgN3sX3gZ0hWGGb61QRR/CZD BCx3hWhQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sq7XP-00000003UpV-3mi1; Mon, 16 Sep 2024 08:56:51 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sq7UF-00000003UMs-2Ote for linux-arm-kernel@lists.infradead.org; Mon, 16 Sep 2024 08:53:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1726476815; x=1758012815; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=wLNyCCa3uGukd/YUJXnpdJORp6fFs7Bh0HkU+aXmQck=; b=qEVcyjhVT54ILqlDYVNBzMolVtfEGJvvMWISPeFHn/jFTkWjxPGRFfal 6TRfmE3I/JmxaosJSxslJEzXUXB8iWYsaxEd5P8mRp1NUb+3HEY49o3tB EzjtmuFdYeuW4+HppHlkeaLngPQCDtdjq7YTcQdqw7v0yE/A3TWH1UQr5 7geqjfDacX8bXd8eupQatcskRUcuuDHtHG5zacVco7L22ObdCbYGW5qtu hFJGbR9XBZ+GiW9ebJ/UK5zVuAZMwIiCvtGqjl58F0nh31igw9LMpPUVU /QIFAk90jQUqNLGO4Vm+WP+lAQ3+k3DcU17pmTWjlfESqwRJVQnwFrK7O w==; X-CSE-ConnectionGUID: PamDwLmaS1u4auhQg+WCVA== X-CSE-MsgGUID: PUDmAxjDRdG9WOIsrMHnQA== X-IronPort-AV: E=Sophos;i="6.10,232,1719903600"; d="scan'208";a="32443041" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 16 Sep 2024 01:53:33 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 16 Sep 2024 01:53:15 -0700 Received: from ROB-ULT-M76677.microchip.com (10.10.85.11) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Mon, 16 Sep 2024 01:53:12 -0700 From: Andrei Simion To: , , , , , , CC: , , , , Codrin Ciubotariu , Andrei Simion Subject: [PATCH 2/2] ASoC: atmel: atmel_ssc_dai: Drop S24_LE support due to single channel limitation Date: Mon, 16 Sep 2024 11:52:15 +0300 Message-ID: <20240916085214.11083-3-andrei.simion@microchip.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240916085214.11083-1-andrei.simion@microchip.com> References: <20240916085214.11083-1-andrei.simion@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240916_015335_705027_48267B5F X-CRM114-Status: GOOD ( 12.06 ) 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: Codrin Ciubotariu Drop S24_LE format because it is not supported if more than 2 channels (of TDM slots) are used. This limitation makes it impractical for use cases requiring more than 2 TDM slots, leading to potential issues in multi-channel configurations. [andrei.simion@microchip.com: Reword the commit title and the commit message.] Signed-off-by: Codrin Ciubotariu Signed-off-by: Andrei Simion --- sound/soc/atmel/atmel_ssc_dai.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/atmel/atmel_ssc_dai.c b/sound/soc/atmel/atmel_ssc_dai.c index 7047f17fe7a8..475e7579c64c 100644 --- a/sound/soc/atmel/atmel_ssc_dai.c +++ b/sound/soc/atmel/atmel_ssc_dai.c @@ -822,7 +822,7 @@ static int atmel_ssc_resume(struct snd_soc_component *component) } #define ATMEL_SSC_FORMATS (SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_S16_LE |\ - SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE) + SNDRV_PCM_FMTBIT_S32_LE) static const struct snd_soc_dai_ops atmel_ssc_dai_ops = { .startup = atmel_ssc_startup,