Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp2047444imb; Sun, 3 Mar 2019 16:07:19 -0800 (PST) X-Google-Smtp-Source: APXvYqzMmdoPwF/k4l5ivz6nD9rZSew8QBTY6FhF8wbZ2mQWyCmfy7EjxGnYZ2YkvwM8hVeBXhS6 X-Received: by 2002:a65:620f:: with SMTP id d15mr16019655pgv.112.1551658039341; Sun, 03 Mar 2019 16:07:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551658039; cv=none; d=google.com; s=arc-20160816; b=y9GJ3kQ2iuW/OZTMZhusnROR9ZMOic4V2irgGPD15MoQcokmS9LQ056npUblvOp6TQ ZJ7+cuasnkyKTemGlXoD5e9kaBISdlLciCIo9kir7UxqKh8t8nhUOCkLFCKvlwASkTr7 wEKk2JHdBHLaAimYAf/ySILTuixJiBRB0Gq/GFKmJHjNIXi9h9D4ya35hBPWwmsFDJ2q uSpGguxx0zaC1tmf7dCgjmUUz3CX6p/MOMwRb4uoAWejIsgF7pekkuVZ5gQ1RiblHv6r xJvId9jIN+Y3UM3HUUCJEYjAl8rd+zHIeOAP61lT5v5FASpAbl/0voJXEK7txsJkXVpL Slhw== 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=jL9zR7pVpIlkQnB7M/wqdQlZcR9XoqbIBRwErowufzI=; b=f/TLhxGUoieSKor6Imw1k0mMLPv4yZ/7eQsNPR5UOSpCM5a/2o+V3wpGr3xauULLoa /1EvWuykGyXfz4ipybNZRjckBlUi/xkwTZXe6q5x+B+bvuKF1GPAFPaHk0dxwteKRwHx +HrEppbmTevNoMBpgeSuhxZtxZmv5wSuwKcXiODxtsToBRbcYm+Kk0fYZhNAFCDxfy4u b0Rf8bIfpQ2zyj+qDe/6KqtL1qIa1GN4ty0Usj+zwhdwQzI6FvrC2XnykG+QpHv4rGwj InHztJMKH6liMuvQ9PA+7BiUNE/ISgMTJfxYSE117VAszLhrPQuiglTrK5gB/GQ1o4Ce 6LVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=gdLufBTq; 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 w24si4114725ply.32.2019.03.03.16.07.04; Sun, 03 Mar 2019 16:07:19 -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=gdLufBTq; 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 S1726224AbfCDAGY (ORCPT + 99 others); Sun, 3 Mar 2019 19:06:24 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:53502 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726177AbfCDAGV (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=jL9zR7pVpIlkQnB7M/wqdQlZcR9XoqbIBRwErowufzI=; b=gdLufBTq27bi DbbghfRHI6F4T30wbv8gdA2jMJXj2MGu/SFHFAr6YGGy1qbaIlOxJP85hVvWu+7KUpMF0F+CqlK0E PikeZVCsFnThht3NbONHYcdhEJwPPYgoBaOalV8qi5DYPDw7TfJ3jMNmmf/srcTgO3jNF+zNg5Lgs n0eGY=; 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 1h0b7P-0007OP-2y; Mon, 04 Mar 2019 00:06:07 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id 7B327440082; Mon, 4 Mar 2019 00:06:06 +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 iec958 controls indexation" to the asoc tree In-Reply-To: <1551359965-25228-2-git-send-email-olivier.moysan@st.com> X-Patchwork-Hint: ignore Message-Id: <20190304000606.7B327440082@finisterre.ee.mobilebroadband> Date: Mon, 4 Mar 2019 00:06:06 +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 iec958 controls indexation 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 5f8a1000c3e630c3ac06f1d664eeaa755bce8823 Mon Sep 17 00:00:00 2001 From: Olivier Moysan Date: Thu, 28 Feb 2019 14:19:21 +0100 Subject: [PATCH] ASoC: stm32: sai: fix iec958 controls indexation Allow indexation of sai iec958 controls according to device id. Signed-off-by: Olivier Moysan Signed-off-by: Mark Brown --- sound/soc/stm/stm32_sai_sub.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sound/soc/stm/stm32_sai_sub.c b/sound/soc/stm/stm32_sai_sub.c index f9297228c41c..506360b7bc01 100644 --- a/sound/soc/stm/stm32_sai_sub.c +++ b/sound/soc/stm/stm32_sai_sub.c @@ -100,7 +100,7 @@ * @slot_mask: rx or tx active slots mask. set at init or at runtime * @data_size: PCM data width. corresponds to PCM substream width. * @spdif_frm_cnt: S/PDIF playback frame counter - * @snd_aes_iec958: iec958 data + * @iec958: iec958 data * @ctrl_lock: control lock */ struct stm32_sai_sub_data { @@ -1068,11 +1068,12 @@ static int stm32_sai_pcm_new(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *cpu_dai) { struct stm32_sai_sub_data *sai = dev_get_drvdata(cpu_dai->dev); + struct snd_kcontrol_new knew = iec958_ctls; if (STM_SAI_PROTOCOL_IS_SPDIF(sai)) { dev_dbg(&sai->pdev->dev, "%s: register iec controls", __func__); - return snd_ctl_add(rtd->pcm->card, - snd_ctl_new1(&iec958_ctls, sai)); + knew.device = rtd->pcm->device; + return snd_ctl_add(rtd->pcm->card, snd_ctl_new1(&knew, sai)); } return 0; -- 2.20.1