Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp273592lqp; Mon, 10 Jun 2024 03:57:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXOnt0y1y1Ea8h+XCH5uGx09S7U8BVBmJwmi2dff2oE8Aux4v+03F4aRX5tf99sJHA6mqzvenukSi7Z0DkYN0BG+JZbtsnM7q3r/U3ghw== X-Google-Smtp-Source: AGHT+IHQDT5X7Uz+HZk6FydsZ3X0R0dlIhD+fOx0gHHBESguWO61vfettTnJIPWwO9WBg0gJZKkH X-Received: by 2002:a05:6808:398b:b0:3d2:2aa8:3b2c with SMTP id 5614622812f47-3d22aa83ec0mr3106089b6e.33.1718017034336; Mon, 10 Jun 2024 03:57:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718017034; cv=pass; d=google.com; s=arc-20160816; b=s5eAsvTPTS93c5NcXXfwN4/MaVX3ohvMK0kVGhfXm84WMfMlfveKqQ7f6hoWNxG/IE 747PqQgkPYie5RklWSPuM50rquqvDAH+RyZjYZexW3TSaXk0cpHAOvoYgwvLikQxLXmt U2qHrlXMcPAYSK+9K08KXfClK5yBYLsoQjkEU8MfPNTReOOU4KFpcdrmMF2o4t+vgUz+ w3kUsjU2FZcO3npZKQKh8e46d+SRQASQ0w+hkSW+Z4O4Gl0xPi4stOQYO4oyrF32ZnYj p4dS7CuUrnMsWVmz69HDnyy3mRiD2NA/wdPZoYT/mQ3h3iczaEmBj2lD9QS43tmUdIn2 8MvQ== 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=g6yCyP89ivmnfNuA3W23jGw7U6hrCiJLP5l+3RBmLiI=; fh=6R20zZXuG0cNqfqg/WdO4vcBsAgu/3wm9qfjTUIuc/s=; b=vP2lUf9kztKUYy+2oqmvAuoYgoeuoaWzsbWHTWBVPlbd7oANVccm/v1PQPZjl58iNV C9rpsyHDH4jXRWbgi++lp3eSdgtcd9U+jo6/KZ3YwGuZyUMgSSq2dxTZJ9IuGuqBhY2X qKwIn3Mtr4aASLeGvvVRl0Nqt8K0JwY9Wkdf9oUu5aKrifUVc/cKRW4moA1ZSdDNgLEY t8n1hjgUmND2O50TaWDNRDHULJfUY7FRHSi3d5oj+NlszXuu022YgZsvwWlWj4Y69UlL qnSQ7AsEn3x0ODF+d1OFyI3tnb96hmL5LZvQcQ4rbsJp5Ysdoho7VI3dgxGYTj6N/u5v P4ug==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=FB5j4Qg8; 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-208057-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208057-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-795603a74f6si341424685a.264.2024.06.10.03.57.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 03:57:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208057-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=FB5j4Qg8; 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-208057-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208057-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D2B701C21B96 for ; Mon, 10 Jun 2024 10:57:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 200EE7BB19; Mon, 10 Jun 2024 10:56:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="FB5j4Qg8" Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (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 E3BD94CE04; Mon, 10 Jun 2024 10:56:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.249 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718017018; cv=none; b=DBGpmh4277Ia6eDtnAQ4dG+FTyWlOlactCdPY/sCCN7B3Rwb1FYhszVIFphS1ar5aY0eoEyzHhRQAgT0fXZJVRuP+CdSctVb/V2QzOXxBaK7iPUvqO7YQiim6tnVfR3j6idcORTvt9/C8lSW6/SF79Q+Zks8AD7MYpqyKHgjRQw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718017018; c=relaxed/simple; bh=s6GltpUWy6i/0v2hpQmwa2Za56mJUx4Sw1vw90FRxsc=; h=From:Subject:Date:Message-ID:MIME-Version:Content-Type:To:CC; b=kfwdEX9BcoU8FBKOeOw8124nIPX1400fux4s3CuhYT9yscy2B+UtFE3xrwf/6nbxMpEZTyZItu9QpGD3qmP+9eb98BdjZQrnAp6RyvSLBZDV+rjraVdtLTC7Xoi5EEUKLjCM5q9oCWn6amgKGWdLuHuCfflbz/lrl5uYt+lwqLc= 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=FB5j4Qg8; arc=none smtp.client-ip=198.47.23.249 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 fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 45AAuQoC008994; Mon, 10 Jun 2024 05:56:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1718016986; bh=g6yCyP89ivmnfNuA3W23jGw7U6hrCiJLP5l+3RBmLiI=; h=From:Subject:Date:To:CC; b=FB5j4Qg8ERY5p4dB/XGDJKY8qTvYpvVTnYWFIMn+r7eT1J26TGvyXofFqSMadSjMM RQUEqzMDhgWOgyILYKNNZDcd7NUQiYRfyjysvppnS5k9rwCoCUb+It2SwYFi8ahfQn djYhQmAnSAMlHQ3EjcTw576sV9FzRzWKyPYm6kxc= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 45AAuQ5v061839 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 10 Jun 2024 05:56:26 -0500 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 10 Jun 2024 05:56:26 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE114.ent.ti.com (10.64.6.35) 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; Mon, 10 Jun 2024 05:56:26 -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 45AAuPIo110493; Mon, 10 Jun 2024 05:56:25 -0500 From: Jai Luthra Subject: [PATCH v2 0/2] Fixes for McASP and dmaengine_pcm Date: Mon, 10 Jun 2024 16:25:59 +0530 Message-ID: <20240610-asoc_next-v2-0-b52aaf5d67c4@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=H4sIAL/bZmYC/23MQQ7CIBCF4as0sxYDiEhdeQ/TmGY6tbMQDBBS0 3B3sWuX/8vLt0GiyJTg2m0QqXDi4FvoQwe4jP5JgqfWoKU20kojxhTw4WnNAqU9zYiql2ih/d+ RZl536z60XjjlED87XdRv/acUJaQg15/ROboYM90yHzG8YKi1fgFtMHDUnwAAAA== To: Lars-Peter Clausen , Jaroslav Kysela , Takashi Iwai , Liam Girdwood , Mark Brown , Peter Ujfalusi CC: , , , Devarsh Thakkar , Vignesh Raghavendra , Jayesh Choudhary , Jai Luthra X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1141; i=j-luthra@ti.com; h=from:subject:message-id; bh=s6GltpUWy6i/0v2hpQmwa2Za56mJUx4Sw1vw90FRxsc=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBmZtvTMkoQNhjarX3voFd3wuydzNZIKcYAZec8Q 3Xfdxo89GyJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZmbb0wAKCRBD3pH5JJpx RRRLEACwMKbkHMnr/l28xs4MwsrmS/JfWAXg1egEdofJpKWde2WnnaWxfMcmrWZR1iBzMDIhUwJ UclBkCd3/uMqkQsaP/WqS847oFSDvup00D5HQHWFxNTrd4XcZ+rwVeLNhmfzwfhktrvLa9EUZBR 4UudvsEunz1Nb278e3TEuo5NucWYuNFt6oLejzVlvb4GFIkoAMoRCdDCFbf3Jj8oxs4sCEayEow YD50QdDtAeJBWdZDNBI2Nvc/j3S3fBc8JganwPycOza7ddhQT9V7Z30qM/AGs9kxil/2T/KaZVd ZfkiXT3ywHCtUzqzfuCjxKyJ8w9l8oAV+vxEREc+ZKlJtvAkUrBMsfdP+R+xsYjt+1F/1rWRhaQ ZLFaS/yBljhR2klcQZaknnI1AqDyi0/MhmFUST9qk/6sMqN9c7yXBPjqB7+mPziiZsQK49wm9Hn uPFtJkYCYonrf+/2ioBSYqEPG/Ht3UaVRJYoshrtr4Iqqit2O52ZNo3w1T/Lr71NRAOb4K9V6Eq 5jqs84Ig5y2JTGzl9P7Fe6V12jMJxlqZ2vX4b4rAnzvwx2iOyajrNbmS0DT6e/2c/dKFlueo69j RDVXwUc71PpVRJ66bxyIvLlPticEathrj5VY+e3whFdCz61zXhynrd5wIlrZ0okI5+MwKgTvXnO OPdKgoEeVEGbFKQ== 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 --- Changes in v2: - Fix compiler warning for prepare callback by marking it static - Pass numevt directly to hw_rule_min_periodsize() - Link to v1: https://lore.kernel.org/r/20240604-asoc_next-v1-0-e895c88e744d@ti.com --- 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