Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp2047382imb; Sun, 3 Mar 2019 16:07:13 -0800 (PST) X-Google-Smtp-Source: APXvYqw10DIFZkdH9vNSk5dxmLICXoRLB83nEXvQ8zHRE1KL2wkOLcYhF1XCK6fiebW5f4xuWubu X-Received: by 2002:a63:c10b:: with SMTP id w11mr7837080pgf.39.1551658033883; Sun, 03 Mar 2019 16:07:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551658033; cv=none; d=google.com; s=arc-20160816; b=D+TRv/2ASWj+8cKVEqs6oMzKZxRvlIUZyFSJpSTRw14SOjGhccp453EuyO7Uc79Ub8 obJz514Ll48r21CtWFVkUbPy1MBdUPyBVhriRuJ2FKRXTNPC1dlmg8KYXKjmVOUsaG4v DB8j8UiaoFP1RnztdugTMN2rFsYXJ8NI41mR2wDDOhkLfFDxhQ/MzoxtK8iSsvQUIo8Z HIOV6fOl2jRQenl5pt5KyJvsHkETXVKsgV9tg9wGEasekKaAidm5iAHyXYqzdn2xMp52 VDjq1cCTEfS/lKpGOmjq3m6tPoG21hWJql545kymcuiajeZxXOx+n49IVZr5q+yMRsJ5 fjEA== 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=GWqqA8xw92m6MgwvODIDMHRfxSfdZxbytWMFV6QbuRg=; b=HkqkHBBoWV680Vi1ZwXyfkCBHseBw2yenbve2NxAoxILfx1jXF60av/6+hE9pHywjJ eC0OszpWMo+9rhlh97V2E2EgzhpG7sA55lY9SsTGYT02DkfvRKGTFj7FCxCWwhczj10J EboNS+tLqWpND6qErFFKNP3iFG6BsSjo1Ef38c/3P1BzQ7LhFgpz/n2ow1fL19bInYGl jXY9pTdrDwddQNWL1c3crLEIWy6qMYXzzvY6z5DhOh5+onuFEWFE1WKqUvmTli6jOWc1 7R8o99zcgvhdtK0trVwkozjdd1ICuc4j6gjwSnDPHYaCObva10WvvX3qSREyxzyzKOV5 FXOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b="nLuDI/AW"; 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 cn7si4365284plb.194.2019.03.03.16.06.58; Sun, 03 Mar 2019 16:07:13 -0800 (PST) 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="nLuDI/AW"; 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 S1726196AbfCDAGX (ORCPT + 99 others); Sun, 3 Mar 2019 19:06:23 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:53508 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726098AbfCDAGV (ORCPT ); Sun, 3 Mar 2019 19:06:21 -0500 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=GWqqA8xw92m6MgwvODIDMHRfxSfdZxbytWMFV6QbuRg=; b=nLuDI/AWWYFC Nz3R2xRhFDVECLMW5XbLUSeOSrUgv9V80RxdsCKAXQvRYZTU+dTQKsO/2uOnbw6fKbUoQSK1lTi33 wGzyx9DtSpwno5Qb/WcXGZOzx1bszjHzSR7pKQoWPaHwRnutN330LjJ13b/DMPDObJ2Q8BE80Cbo+ Jmn9Q=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=finisterre.ee.mobilebroadband) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1h0b7L-0007OF-3S; Mon, 04 Mar 2019 00:06:03 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id 66378440082; Mon, 4 Mar 2019 00:06:02 +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: sai: fix exposed capabilities in spdif mode" to the asoc tree In-Reply-To: <1551359965-25228-3-git-send-email-olivier.moysan@st.com> X-Patchwork-Hint: ignore Message-Id: <20190304000602.66378440082@finisterre.ee.mobilebroadband> Date: Mon, 4 Mar 2019 00:06:02 +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: sai: fix exposed capabilities in spdif mode 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 b8468192971807c43a80d6e2c41f83141cb7b211 Mon Sep 17 00:00:00 2001 From: Olivier Moysan Date: Thu, 28 Feb 2019 14:19:22 +0100 Subject: [PATCH] ASoC: stm32: sai: fix exposed capabilities in spdif mode Change capabilities exposed in SAI S/PDIF mode, to match actually supported formats. In S/PDIF mode only 32 bits stereo is supported. Signed-off-by: Olivier Moysan Signed-off-by: Mark Brown --- sound/soc/stm/stm32_sai_sub.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sound/soc/stm/stm32_sai_sub.c b/sound/soc/stm/stm32_sai_sub.c index 506360b7bc01..e418f446e03b 100644 --- a/sound/soc/stm/stm32_sai_sub.c +++ b/sound/soc/stm/stm32_sai_sub.c @@ -682,6 +682,14 @@ static int stm32_sai_startup(struct snd_pcm_substream *substream, sai->substream = substream; + if (STM_SAI_PROTOCOL_IS_SPDIF(sai)) { + snd_pcm_hw_constraint_mask64(substream->runtime, + SNDRV_PCM_HW_PARAM_FORMAT, + SNDRV_PCM_FMTBIT_S32_LE); + snd_pcm_hw_constraint_single(substream->runtime, + SNDRV_PCM_HW_PARAM_CHANNELS, 2); + } + ret = clk_prepare_enable(sai->sai_ck); if (ret < 0) { dev_err(cpu_dai->dev, "Failed to enable clock: %d\n", ret); -- 2.20.1