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: 13805127 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AE49313C8E8; Mon, 16 Sep 2024 08:53:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.154.123 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726476815; cv=none; b=jdfg3+WUZmMKPSFqhLGvgmW+ObC+VwhAMoZOoUyv0u/v334wDuasGqn7gDiZIwYh2LTk3v5Nb2SAEbdb0Hj+fwqyPsc91WkD7XKiHP8qF60YGzJPmfHEUHzR8VZ+UYLi+Kjd4neA7MFtPREbQfsB6yLUJh6LB5uEbhIFVjQyUaQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726476815; c=relaxed/simple; bh=xWtunqZUwm+Iv5DfIc9zQa49fXxa5eCLE0PCO9l16Y4=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=kgQP8+vD2UV4D+v6TcKNq73aBG0ZkEm912+7eHjFhvZR20kC7+YdXsPDU9h5rC1IM4CuRlc57RtDo/8ulqNOLujJkyvWJAZFnzv7b4JgRHVZ5s4J0b7SQXArr+fnOcx7VA+dtHfgNsWkC/KsTpH9A9FQ2QbPTxXNIiUmU3EEK2c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=YamsPc1t; arc=none smtp.client-ip=68.232.154.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="YamsPc1t" 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> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 13805129 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D823A146586; Mon, 16 Sep 2024 08:53:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.154.123 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726476817; cv=none; b=C925ldfxewSJEGHx6KN/EQp7foPEyLNsVp748bFJPI9hwW0x6K9QENVWmsFmCWRCqWVlgmG6VdAbvj4Ybl1udKjDlqut9ADF0lz46Ic2m/2okhBCQ/rT+9yHtJwLTN0MtIpGsTyDbgACL9i3IGs89pFbAcubNmg9LsBnm55OX5Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726476817; c=relaxed/simple; bh=wLNyCCa3uGukd/YUJXnpdJORp6fFs7Bh0HkU+aXmQck=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=G4WyObsI1zPDFXJO4mf1Oc0xsAA8yZ0Frm/JoXA7g1Pv13pC+9ev2yrva48YeWR/QR+lixGMrAe6qENnAbrDrVNDwENBU5Phs/0I9vV21yhFe/5I84Wes2ALe56hdehTfHZ05qpK5t3NngGAj5aQksEu8CSpQGfTY8Mf7fqEMNw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=QCmkrWov; arc=none smtp.client-ip=68.232.154.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="QCmkrWov" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1726476816; x=1758012816; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=wLNyCCa3uGukd/YUJXnpdJORp6fFs7Bh0HkU+aXmQck=; b=QCmkrWovvqI6ZWimZhOmWs+4b7/HLomZy+Qp1OLnK8ft7b/735BcpeiX W6u7eWRuvjIdhw5uW/iJZFLIqThq04d1Uh1peh3GKORj/MQzrNMPn8kLA WPG3gKWIT1qjPXbMYVbzRoUlJpa+4apE6rH9U/tYT0sSRDsDHDVNLyea8 z2gtp291MBcOe1E3Y8Pgr0M64oHMYEOLzW1tST/efcwDihoNaNR0F+iLP EeYKzJWum9EhHc9NH598feWxh+51+FOW0ONwgpYI1raXIfRBy/+oWkrYL gdsT1bNpAgX4MCR9eSj3vNlaawuUdyChFsMrowosOvbjD8p4lXaqiJSNf g==; 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> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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,