Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1292934imc; Mon, 11 Mar 2019 10:26:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqz1EQrRwUAOZDNc9uQ9cDdbI+IUxo4V1FdujFgpXdJ4ssFH3fOb1X8RT0wMktAiuiOX3CgV X-Received: by 2002:aa7:92da:: with SMTP id k26mr34388741pfa.216.1552325199459; Mon, 11 Mar 2019 10:26:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552325199; cv=none; d=google.com; s=arc-20160816; b=ddvKt5AjEtqNnWMKpxAzyRYNu3hM5z8s+/fli/4Gh7/Jav29kJUY+iSicMjKLd8rOq +XUz8IE2r7+R4G3FSMvjPG2adVqQhWa5efkJgHJvK4EgixJBvSi0AxSJlyfaLFfs30i5 jX8KHA9na8GJLmT/D2CuzaFGJuDQUXu9TZnTM0QI7gSUIRIUuLFvjBl+WMsAH45xcerP P/kiCDRFfe+o5i+Uw96bBE/t2Mxl9l/8zB3ZxyZE0BbMp9V43iuVx8k69WiRCIUHC3CT Ov2TX4ut/a32NBVYJOXSOwsNRMT8/ySuYRzoZ0MvjxeAcJvEayo75vQ+2xTMAnHziI2U oYng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature; bh=X5sGB91oFBFVYIHkyXSiAn+ENZMIm0hBqBhWrcKAEqM=; b=kZtLJ2rD06kbvTpM9t1KoNlJbCxEWHv4jTQfUrs04jMJXq0qkfOGEg/lUY4PIYEd8V zRPzji4Fihvo+hiaHqPv66RIkei46WorjYRLEtii+SQodKKzzOc0f4AXG9wUuzMPRwzV LVDXCB9qmppn3fcIJpchJqSKvwHhao4k7egYPo3t3ACWf+qru2CKm9xckHZ562LqcH0F yGdGlo7jmnHt4r4URngn0Seg7VP8ZA/fYslW0GP5YUFYn5ALwEzisaBJ6oVk9+A60oVi C4gXWBxQnMSmfO8NW9R6C2b9dF5I/LIMQnbPmcaaJ2VZbNVROQ21vHLRKI5NmIvHYijM ocKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b="GnMn/9OC"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z8si4994108pgp.527.2019.03.11.10.26.22; Mon, 11 Mar 2019 10:26:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b="GnMn/9OC"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727960AbfCKRZP (ORCPT + 99 others); Mon, 11 Mar 2019 13:25:15 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:50564 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728098AbfCKRYB (ORCPT ); Mon, 11 Mar 2019 13:24:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=X5sGB91oFBFVYIHkyXSiAn+ENZMIm0hBqBhWrcKAEqM=; b=GnMn/9OCB6JO p+AkwHLylZW6/oY8z9ot84Y3h3p1PgRzPCU1P3kUE3nUgUVRVx5G6pdlK91KNoesjyaODhgNrphSk sedQ5/FADpvnF2egXA4u2Lp+8tlhS0uTo11N+l1kwuB+WwH9vNUt3NwzQeudUwpnCe/0D+DTJi8P6 Rah6Y=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=debutante.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpa (Exim 4.89) (envelope-from ) id 1h3OeT-0005Mq-88; Mon, 11 Mar 2019 17:23:49 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id CB5321128896; Mon, 11 Mar 2019 17:23:48 +0000 (GMT) From: Mark Brown To: Olivier Moysan Cc: Mark Brown , lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-kernel@vger.kernel.org, olivier.moysan@st.com, arnaud.pouliquen@st.com, benjamin.gaignard@st.com, alsa-devel@alsa-project.org Subject: Applied "ASoC: stm32: i2s: change trigger traces" to the asoc tree In-Reply-To: <1552317990-24219-2-git-send-email-olivier.moysan@st.com> X-Patchwork-Hint: ignore Message-Id: <20190311172348.CB5321128896@debutante.sirena.org.uk> Date: Mon, 11 Mar 2019 17:23:48 +0000 (GMT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: stm32: i2s: change trigger traces has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From 52e7306ca2db565edc1503a74477f3547bc9e408 Mon Sep 17 00:00:00 2001 From: Olivier Moysan Date: Mon, 11 Mar 2019 16:26:28 +0100 Subject: [PATCH] ASoC: stm32: i2s: change trigger traces Update traces to log capture/playback stream start/stop. Signed-off-by: Olivier Moysan Signed-off-by: Mark Brown --- sound/soc/stm/stm32_i2s.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sound/soc/stm/stm32_i2s.c b/sound/soc/stm/stm32_i2s.c index 47c334de6b09..783b33497435 100644 --- a/sound/soc/stm/stm32_i2s.c +++ b/sound/soc/stm/stm32_i2s.c @@ -593,7 +593,8 @@ static int stm32_i2s_trigger(struct snd_pcm_substream *substream, int cmd, case SNDRV_PCM_TRIGGER_RESUME: case SNDRV_PCM_TRIGGER_PAUSE_RELEASE: /* Enable i2s */ - dev_dbg(cpu_dai->dev, "start I2S\n"); + dev_dbg(cpu_dai->dev, "start I2S %s\n", + playback_flg ? "playback" : "capture"); cfg1_mask = I2S_CFG1_RXDMAEN | I2S_CFG1_TXDMAEN; regmap_update_bits(i2s->regmap, STM32_I2S_CFG1_REG, @@ -638,6 +639,9 @@ static int stm32_i2s_trigger(struct snd_pcm_substream *substream, int cmd, case SNDRV_PCM_TRIGGER_STOP: case SNDRV_PCM_TRIGGER_SUSPEND: case SNDRV_PCM_TRIGGER_PAUSE_PUSH: + dev_dbg(cpu_dai->dev, "stop I2S %s\n", + playback_flg ? "playback" : "capture"); + if (playback_flg) regmap_update_bits(i2s->regmap, STM32_I2S_IER_REG, I2S_IER_UDRIE, @@ -654,8 +658,6 @@ static int stm32_i2s_trigger(struct snd_pcm_substream *substream, int cmd, break; } - dev_dbg(cpu_dai->dev, "stop I2S\n"); - ret = regmap_update_bits(i2s->regmap, STM32_I2S_CR1_REG, I2S_CR1_SPE, 0); if (ret < 0) { -- 2.20.1