From patchwork Thu Jun 29 13:58:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sascha Hauer X-Patchwork-Id: 13297058 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 8C7A1EB64D9 for ; Thu, 29 Jun 2023 13:59:53 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 2093E1F1; Thu, 29 Jun 2023 15:59:00 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 2093E1F1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1688047190; bh=LX65sx3ebIwtVGlnvjEDeuEZKzll8UngfF+qA6/0ZMw=; h=From:To:Cc:Subject:Date:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=ZYf922/RvzAnwtYhcZnFis/mnxGcnPjeOJoxMPNnQfo+aSzAekaN9Hr5p5hWdn5KR 1Wz5V8ydyrvU+Zkg43wf41U2s1Nj9ca5PGy5A4K/aFr2wIJ+uyITQyVWlVw1kIPdMY KaJj1BjgsofsiZG07z3I2XdyEcCvFlelulhfGCy8= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 5183EF80431; Thu, 29 Jun 2023 15:58:36 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 0A41DF80212; Thu, 29 Jun 2023 15:58:36 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 4CF87F8027B; Thu, 29 Jun 2023 15:58:31 +0200 (CEST) Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 220DEF80169 for ; Thu, 29 Jun 2023 15:58:25 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 220DEF80169 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qEsAC-0002Of-MN; Thu, 29 Jun 2023 15:58:24 +0200 Received: from [2a0a:edc0:0:1101:1d::28] (helo=dude02.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1qEsAB-00Aujm-8U; Thu, 29 Jun 2023 15:58:23 +0200 Received: from sha by dude02.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1qEsAA-00B7Nm-EJ; Thu, 29 Jun 2023 15:58:22 +0200 From: Sascha Hauer To: alsa-devel@alsa-project.org Cc: Shengjiu Wang , Xiubo Li , Fabio Estevam , Nicolin Chen , Liam Girdwood , Mark Brown , Sascha Hauer Subject: [PATCH 0/2] ASoC: fsl_sai: Fill Tx FIFO to avoid initial underruns Date: Thu, 29 Jun 2023 15:58:18 +0200 Message-Id: <20230629135820.2631908-1-s.hauer@pengutronix.de> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: sha@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: alsa-devel@alsa-project.org Message-ID-Hash: XPTAZWSJVQFNA3LFQKE2HKANRZPL3MMS X-Message-ID-Hash: XPTAZWSJVQFNA3LFQKE2HKANRZPL3MMS X-MailFrom: sha@pengutronix.de X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: This series fixes initial underruns that can occur in the TX queue of the fsl_sai interface when starting playback. These patches are around here for quite some time and have proven useful. Time to upstream them. Sascha Ahmad Fatoum (2): ASoC: fsl_sai: refactor TDM slots calculation into helper function ASoC: fsl_sai: Fill Tx FIFO to avoid initial underruns sound/soc/fsl/fsl_sai.c | 38 +++++++++++++++++++++++++++++++++----- sound/soc/fsl/fsl_sai.h | 1 + 2 files changed, 34 insertions(+), 5 deletions(-)