Received: by 2002:a05:7208:2202:b0:86:316c:7444 with SMTP id s2csp2361163rbb; Tue, 4 Jun 2024 03:07:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUJy8FH1kzd8AgtiM56NEHvY3/rnaoKeqGwnIWfd94gCDtzFG72Ms1c4SgM2AvnT5VzVraN9tqJ1m0ZkfiqUJ3RfwPFb1xJP9HKaIinSw== X-Google-Smtp-Source: AGHT+IFCi/Z/oNX0MW2zDQIY+Lf9hb4JJrYP8J0UCAkoP+VABCXCb38yrGztsm/4LpcCkaAUKfNm X-Received: by 2002:a05:6358:7e03:b0:193:f809:9d46 with SMTP id e5c5f4694b2df-19b48ad6c12mr1557878455d.2.1717495487312; Tue, 04 Jun 2024 03:04:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717495487; cv=pass; d=google.com; s=arc-20160816; b=P6A8I/GfljyOgmtGC6gi2bl2nYAb1PL5M5BNdlwM0j5trZPNr7XeS9dhKrmOyhDoTB cu29ErHjQRxV50VWeDIOvRxsLGsXmKEO5rkAuVW7sqBW6OZYmPft4kJs7oX9H5kvFp0k 1Vw/4i7yWQR9PhFWPB/zI23/xYXbUWFVUIneo2UYw5fRBDOq4RIN5FvqSOteJ4P9Vo7p myrXae7a8q3TJ4sle6ryiYWpFVLY6O8R/LIGW6NYK7D41Zr1I2WcooUFQlhxIhFB9VIi 167SMtxW6SBDaAWJtioYByl4mF6fC9I2Eq1aUVkGALLC6SBCbpPbF5xVrQjDeo/4yILw H7QQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=lEeeA5XVGydla/KRte/WAZAqdb4muiovvZrIFmRss1s=; fh=V5vho12Kf9dv17QyxKjapuUZUlYiJrlwMcPelMyy+gY=; b=Qab7ZKTkj8T02+Iaqbx07rlU2bSIaNOo0w8fhZaRN5h4GXBT2D7kQs4MSiosWqfYph /wRkIjUwS9rFodIL2CqOR98rooWSL93t1X4vtJPa9iojZ0diqEYgJ4hHMtpBk7T76IMu PwFhjDJiC6yTKe+qJ8aN1Woaq/Cidc/2DCDBzDiTZuXILkVX8OQyA7VOTqT90vqVX0bK RtnHW98BnFnNtdM9XLVKwW+QXRiSQD51N0Cv5YJ6UBG6HhlPks/7nfk1UWLHBqJScDx4 jysc9462Uowcriw5e7q1FbZhzuLVKJu1Q00dqB4BhUk6JWbV/++HouN90RkpMrsaUBb9 hEoA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=JLLNPyxR; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-200398-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200398-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c3542e3a32si7968100a12.156.2024.06.04.03.04.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 03:04:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200398-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=JLLNPyxR; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-200398-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200398-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id F1361B21228 for ; Tue, 4 Jun 2024 10:04:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 53749144D20; Tue, 4 Jun 2024 10:04:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="JLLNPyxR" Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) (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 0295D1448D7; Tue, 4 Jun 2024 10:04:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.248 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717495461; cv=none; b=d0d0EsICpNLmCWgnN6qglVTN3hUOY7vDKxZo99aSZ9i34ueOpTNvwMaaYqXAuVi2wMJ6nxrUQ7lLrpcnExKnLYoBU5PC11XZHkvQzx/zcQ3kcrbQAH5Z8rFlzz0vFXD4g1Gs4EuB/PeyYX1/rb/AqXC1T6cH1OugOiE+AXCHgsI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717495461; c=relaxed/simple; bh=mT1/rVVdWV+5QoTSApPnuEEIlkiQJf0kw1vPslyrMIY=; h=From:Subject:Date:Message-ID:MIME-Version:Content-Type:To:CC; b=Zz/x3vPuFJjVPrcYdF2hzxPQamaCIlqveV90kqxGDw0DVvcMN7yIYT+A74WVA+556xtHWJkNX72+8fg/R7Gt5tHU3TQgKcALOd4fhCutGEISfk2TiD1Z8NdJJz5XYdueoSQEoWjfuiacfsgVRz+aYS/Ytugvfnt9hL4lCbJ3C88= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=JLLNPyxR; arc=none smtp.client-ip=198.47.23.248 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 454A2DmO090283; Tue, 4 Jun 2024 05:02:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1717495333; bh=lEeeA5XVGydla/KRte/WAZAqdb4muiovvZrIFmRss1s=; h=From:Subject:Date:To:CC; b=JLLNPyxR1w5+lmhYx9ZbWHXKfrSIa7/v6lEB+XvtUusMK0Yuzknk+sbqSrAVYd1xk OiV92W0Z46cWH1GVjAo5FErQPN+MQkde10gOxWMnZRLyfR6KpkSYXQjzdK2UuyB0+m z2o/Y3KWPkbiUFi/MgZ6nKASyUFW3An8WmnexC1A= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 454A2CJU007010 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 4 Jun 2024 05:02:12 -0500 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 4 Jun 2024 05:02:12 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 4 Jun 2024 05:02:12 -0500 Received: from localhost (jluthra.dhcp.ti.com [172.24.227.116]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 454A2BRB130365; Tue, 4 Jun 2024 05:02:12 -0500 From: Jai Luthra Subject: [PATCH 0/2] Fixes for McASP and dmaengine_pcm Date: Tue, 4 Jun 2024 15:31:49 +0530 Message-ID: <20240604-asoc_next-v1-0-e895c88e744d@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAA3mXmYC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDMwMT3cTi/OT4vNSKEt1kAzPjtORkQ0uDZDMloPqCotS0zAqwWdGxtbU AE2GY9VsAAAA= To: Lars-Peter Clausen , Jaroslav Kysela , Takashi Iwai , Liam Girdwood , Mark Brown , Peter Ujfalusi CC: , , , Jai Luthra X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=915; i=j-luthra@ti.com; h=from:subject:message-id; bh=mT1/rVVdWV+5QoTSApPnuEEIlkiQJf0kw1vPslyrMIY=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBmXuYgB8FlkmaUfeYeISFrnAiKrV3JaFHoPcw3e zYjan9orCqJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZl7mIAAKCRBD3pH5JJpx RXaTD/9mm61MjSw+c7tSjgOLv58uadvLpqkDpKp5w8Twl1roQ+6Y/taGUyWg27a1LrAa1LYObpk rlHA30idq7AIFHTFvj1cBE8GUekfbnzqXYlbjsBqV11/A8qAAwCf/U/AoqHq9TqDb8xSSTHgT3c GhTPbvpsxp5VQDKU5jQu23LEstByqjE1IIvkQxodPNl56G+BlOmKyhnewT7fi5xwzgH/fSnxaRH Ak2BKvE4mwjNBk0dtKt9q7hnrLdqVmhMy6gQGLZbJYj2p+Yl0Ql2OayzDKF1Ak8346YIJXvfHf7 rMxS47tzEFll+D2fRHQTbu1ICPJK78jg2quD0rwOPXRFFEfNI+8UuGfxFdfLGvj+GiOV3Auy3Rd vS+NwJwJ5NnnV50viG/mjbARnLVlTSljB5yIHP85PcNLIq678IjLL9ad42O8UKkusHIhYLB8veY Uasuz0kLgig8uvxk3YtewOiTQlkIXIPp9RlYlNp4PasX8V+hGrLbfUXqYN2TfMKslvxZyL2PRLU m2aZBx3FWwLR3n47o7yBcoDIqU1nIHCJBDLDhjpAaKYG0R252XBXiYmvyEuHZAPnUt/R4aSu86i IiwHTfJ12nBbkLxagoaHh7TEXHChwLM95Gw/Un88WY+ffEYAVjpBAhNlbJKeAaSj3a7pnBjg08w Ja3MzA2SG36zlaw== X-Developer-Key: i=j-luthra@ti.com; a=openpgp; fpr=4DE0D818E5D575E8D45AAFC543DE91F9249A7145 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 This series fixes two patches: 1. Fix the dmaengine API usage by calling dmaengine_synchronize() after dmaengine_terminate_async() when xrun events occur in application 2. Use the McASP AFIFO property from DT to refine the period size, instead of hardcoding minimum to 64 samples Signed-off-by: Jai Luthra --- Jai Luthra (2): ALSA: dmaengine: Synchronize dma channel in prepare() ASoC: ti: davinci-mcasp: Set min period size using FIFO config include/sound/dmaengine_pcm.h | 1 + sound/core/pcm_dmaengine.c | 10 ++++++++++ sound/soc/soc-generic-dmaengine-pcm.c | 8 ++++++++ sound/soc/ti/davinci-mcasp.c | 9 +++++++-- 4 files changed, 26 insertions(+), 2 deletions(-) --- base-commit: d97496ca23a2d4ee80b7302849404859d9058bcd change-id: 20240604-asoc_next-c063fcc190c6 Best regards, -- Jai Luthra