From patchwork Mon Sep 9 08:35:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Simion X-Patchwork-Id: 13796460 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 7D7E9ECE585 for ; Mon, 9 Sep 2024 08:43:42 +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=mCRQslGI8g+JhyybFaRiQhoQoVlPwbP4JIPdw51/UPA=; b=0JMgR9TvZK6yg68IxAK5xtgtNj Va6El7PN8nfSg5VN84UpAPmHSp4uxNnI8TD1r/Ilq/WA/Cytsrihu+ljeZeovkPmfPRDl2cpKKkaf PcVbY2NBeoLp3+fUgRjJnWa56qYcl1KATk5tGz9s7UW/Q5tUIUBs5Z/0FG+RQi09fu1C2ZUAtqYmV a0x8urP8sKbci5lHER1vP9QgALvFBds9TRxWdoA2odDWAAd7+YUNZ3Aqw5qr38z/Y39sP0R5no2YD C5djbOYtv/KoILGiRpQUt5/qC5ajPBET00vR3NImnIgDvy/g4bH851lzmEZjAmOVV3nyb6PRSohTM KNuFhqLQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1snZzg-000000019W4-3DMN; Mon, 09 Sep 2024 08:43:32 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1snZsX-000000018FZ-0jrs for linux-arm-kernel@lists.infradead.org; Mon, 09 Sep 2024 08:36:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1725870969; x=1757406969; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=n/pIzbx0MgOH7Vt1ursNZ7uh5AqRZVYjSubczslHHrQ=; b=F7n2WiMLl4+posaREv3FjRTO+SsFkaxfD9/iRORubecgXfdyK3T5EV0G o/luRr+UU24+ivGvDXyedf6EALaYuS6u++jgmKJzNqEPJdl9xcGZQWtgW v9/chhWi4kgTQWih78gPy77lye6kXGRZUhGMqgwINksg34Jcgztj+fFvz OFREm4x12MlWetENUXNwEr42B0HDSk0m/m/Kf8sCRojYg1tNkBBIVtgCR s8IpGzNOnI9a9XnuMFi51SKAcuXgFodmvNVRrBq0RXzYEOguaUJrMDhbd 2RsuygROfk4DuxlimxNR7YOG+1mh5SwkTjEsrAn1ph9CmM9QL/k2FMMhc w==; X-CSE-ConnectionGUID: 3+qBZ8ypT7qJuXQunlVkIA== X-CSE-MsgGUID: q5fUTtzfSs+p1sYbOgJ7MQ== X-IronPort-AV: E=Sophos;i="6.10,213,1719903600"; d="scan'208";a="198940348" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 09 Sep 2024 01:36:05 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.87.72) by chn-vm-ex02.mchp-main.com (10.10.87.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 9 Sep 2024 01:35:45 -0700 Received: from ROB-ULT-M76677.microchip.com (10.10.85.11) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Mon, 9 Sep 2024 01:35:41 -0700 From: Andrei Simion To: , , , , , , , , , CC: , , , , Codrin Ciubotariu , Andrei Simion Subject: [PATCH 1/2] ASoC: atmel: mchp-i2s-mcc: Remove interface name from stream_name Date: Mon, 9 Sep 2024 11:35:29 +0300 Message-ID: <20240909083530.14695-2-andrei.simion@microchip.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240909083530.14695-1-andrei.simion@microchip.com> References: <20240909083530.14695-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-20240909_013609_525692_20A1BE32 X-CRM114-Status: GOOD ( 12.66 ) 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 Remove the interface name from the stream_name. The interface name (and the index of the interface) can be set in DT using the sound-name-prefix string property. [andrei.simion@microchip: Adjust the commit title] Signed-off-by: Codrin Ciubotariu Signed-off-by: Andrei Simion --- sound/soc/atmel/mchp-i2s-mcc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/atmel/mchp-i2s-mcc.c b/sound/soc/atmel/mchp-i2s-mcc.c index 35a56b266b8d..f40508668ac5 100644 --- a/sound/soc/atmel/mchp-i2s-mcc.c +++ b/sound/soc/atmel/mchp-i2s-mcc.c @@ -936,14 +936,14 @@ static const struct snd_soc_dai_ops mchp_i2s_mcc_dai_ops = { static struct snd_soc_dai_driver mchp_i2s_mcc_dai = { .playback = { - .stream_name = "I2SMCC-Playback", + .stream_name = "Playback", .channels_min = 1, .channels_max = 8, .rates = MCHP_I2SMCC_RATES, .formats = MCHP_I2SMCC_FORMATS, }, .capture = { - .stream_name = "I2SMCC-Capture", + .stream_name = "Capture", .channels_min = 1, .channels_max = 8, .rates = MCHP_I2SMCC_RATES, From patchwork Mon Sep 9 08:35:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Simion X-Patchwork-Id: 13796461 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 2A21AECE57E for ; Mon, 9 Sep 2024 08:43:43 +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=qhNkW0dhlfzgsWUjeyGs7jdDpoC2AFPIfsr6M3QILRE=; b=Tmpba6ueooBm1B2MEGvbbJxu7g TsKoS2ZK3TyeoNLfMVzyrbr4N2xt9Q0O39K01Ayopen9tW134SvLd2EQFCkfHL/h9gJL7eNAbB1Q0 MTSl3v1MatUGKEMUG2dhZkJEB1dz7xAWIvXN9ArQo8MDbpo58kelQOOVyr6KfEuDyH20Lp1PQsufp Pt9izUj1t4Uv3Vkc/TFeLfUvmFMhrjC3zYLXvTLXUxYsryAR3133IDu6MSHRgjkwHuXYQ47lJ3eSM BkFnMN0qU5HOFla6cbobE4WJZpokz+nAoSY9/aV0KgZmjr1IYGe3d4Mh7j1qXxY8tflbWVY1/hisk jOkc6HMA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1snZzf-000000019V8-2gib; Mon, 09 Sep 2024 08:43:31 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1snZsX-000000018G3-1h9B for linux-arm-kernel@lists.infradead.org; Mon, 09 Sep 2024 08:36:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1725870969; x=1757406969; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=2lafLKjnorwqVWKIDeS2ovxiuaU21GohdSm/0wFNtvY=; b=kIAB8yP3f3tnLZ7JLpwUH7ZYqzAbcYU7UhsEklGyVpOaI4Iy+t7dxQNZ +y6RaX6Obs6yROPMlJBS9OtQ6adrCvqAhB4gG/T18/CIgRZq2VuqdCu1r mBlv4L9SrzqFNmv5Tq96KX17bLmNoImI3u+bm/W++QXHLQWPohZp10rgN 6YmpTQEYHE8Pko1hmaPkSa/m1E/M+5XLpz/audo4x9/wV5meQ6y931GtN qxafFMPFFXvoxH2NeydnDssrFO2Y59eXdp+9jDTIgny/YHgumC1KDV3Am FKLerFqL7tlw8I7MgBm6lcTu8Vu11YVjhEXCrqRr9nYn7VrQo+uTkE88J Q==; X-CSE-ConnectionGUID: 3+qBZ8ypT7qJuXQunlVkIA== X-CSE-MsgGUID: wyzCDRFkRbylqCWlGPF3Ow== X-IronPort-AV: E=Sophos;i="6.10,213,1719903600"; d="scan'208";a="198940351" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 09 Sep 2024 01:36:06 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.87.72) by chn-vm-ex02.mchp-main.com (10.10.87.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 9 Sep 2024 01:35:48 -0700 Received: from ROB-ULT-M76677.microchip.com (10.10.85.11) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Mon, 9 Sep 2024 01:35:45 -0700 From: Andrei Simion To: , , , , , , , , , CC: , , , , Codrin Ciubotariu , Andrei Simion Subject: [PATCH 2/2] ASoC: dt-bindings: microchip,sama7g5-i2smcc: Add 'sound-name-prefix' property Date: Mon, 9 Sep 2024 11:35:30 +0300 Message-ID: <20240909083530.14695-3-andrei.simion@microchip.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240909083530.14695-1-andrei.simion@microchip.com> References: <20240909083530.14695-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-20240909_013609_529609_6F4F4D5A X-CRM114-Status: UNSURE ( 8.69 ) 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 'sound-name-prefix' property to differentiate between interfaces in DPCM use-cases. Property is optional. [andrei.simion@microchip.com: Adjust the commit title and message. Reword the description for 'sound-name-prefix'.] Signed-off-by: Codrin Ciubotariu Signed-off-by: Andrei Simion --- .../bindings/sound/microchip,sama7g5-i2smcc.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/microchip,sama7g5-i2smcc.yaml b/Documentation/devicetree/bindings/sound/microchip,sama7g5-i2smcc.yaml index fb630a184350..ad34df67c7c0 100644 --- a/Documentation/devicetree/bindings/sound/microchip,sama7g5-i2smcc.yaml +++ b/Documentation/devicetree/bindings/sound/microchip,sama7g5-i2smcc.yaml @@ -52,6 +52,13 @@ properties: - const: gclk minItems: 1 + sound-name-prefix: + pattern: "^I2SMCC[0-9]$" + $ref: /schemas/types.yaml#/definitions/string + description: + Unique prefixes for the sink/source names of the component, ensuring + distinct identification among multiple instances. + dmas: items: - description: TX DMA Channel