Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8142512ybl; Tue, 24 Dec 2019 16:09:56 -0800 (PST) X-Google-Smtp-Source: APXvYqy1IB4eQU+tOx/kTncaaKSBVZfHt0ehtR+C2GlpbRCduhoADsfUGOvZJJ1rf0Y85cZhuvLA X-Received: by 2002:a9d:5885:: with SMTP id x5mr40439134otg.132.1577232596422; Tue, 24 Dec 2019 16:09:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577232596; cv=none; d=google.com; s=arc-20160816; b=BVL//lUarxa8ptlnlaLzaY9O57ekYGhoeCt9U+BFScrEnOcbQTQRrxMcEDNQ06/EQQ 7e5NPz5N3dJFeb5X2W85bTnMfevuihhr1riiacIyRleW5gE3PpWVXy5LJkV3LAG14ZV1 BxEbDU3c6OmGEhZnfiZXoWImpwWY6NjdesMqZko/wf4nVMJHRzmZ+3E2UqJWDbpSO1Ko Hh9qN47e+PyIJmpP2AoFBcWglOnH8ntSqh+T/XjpcD9671DMJz/6G9THpsgK94f8THsv JjzAUmz9zEh6khkv0gKU5Pt6AoP/odbIoE4VBU/iMLA4RJpSsOUJcIpZ+kXXg1l/X5xP /7+Q== 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=p26wgisYxxYMSvvPgu9UbmNcMRVE/Th6vTcPV+OsQJw=; b=XHahDHn01VQ6YtT4hwM1ij8wXQjFjMp2EGalXpNl4E6Nihu2/GtE4hmjBKQoeAe1kB oMFXZN5NzomMuSxPA//56mJY9oKmula0Ej4dWB9JnQhG5fS5gB7xItyHOhJ/2wLN1Mq6 y+b9kp+6bKVJEYeZ7NvU0sQyHrJvBa9usyT34412+WSbOxhO9iJDq0aLuSduobxEOMsM 2Q4wiMHxtYcQ+/d3DfFQeI7a0CKCf8PKitjQA2YW3Qr+oFM0ff0W6kuROTvogOvHeup1 PR1q3cMklOs5Z4rqTeL48LYOs9PzLVfBzyg/6syoNXqibRKXQreoZrDi4GmksFEO8HBt gWfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=uc+NypEq; 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 z18si9584478otk.206.2019.12.24.16.09.44; Tue, 24 Dec 2019 16:09:56 -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=uc+NypEq; 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 S1726882AbfLYAJG (ORCPT + 99 others); Tue, 24 Dec 2019 19:09:06 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:33046 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726322AbfLYAJF (ORCPT ); Tue, 24 Dec 2019 19:09:05 -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=p26wgisYxxYMSvvPgu9UbmNcMRVE/Th6vTcPV+OsQJw=; b=uc+NypEqzyEH a/y3n70VYmrfyw0xoV9fXTRRzr8AdE5JrJgqd/SMmC9nbPVxPJBTE17J3JvfDvBsNMgaBJFMjzT2n zRfNWiGYAizT4dCr9lYUqH1hZGNkXG1lnK5jTs3K2oLfBPasmIdvpqC1aJDZrey9KmzG2k9ZuM1s6 NjyZM=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=fitzroy.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ijuET-0007KY-Rf; Wed, 25 Dec 2019 00:08:57 +0000 Received: by fitzroy.sirena.org.uk (Postfix, from userid 1000) id 5140BD01963; Wed, 25 Dec 2019 00:08:57 +0000 (GMT) From: Mark Brown To: Angus Ainslie (Purism) Cc: alsa-devel@alsa-project.org, broonie@kernel.org, kernel@puri.sm, Liam Girdwood , linux-kernel@vger.kernel.org, Mark Brown , robh@kernel.org Subject: Applied "ASoC: gtm601: add Broadmobi bm818 sound profile" to the asoc tree In-Reply-To: <20191223154712.18581-2-angus@akkea.ca> Message-Id: X-Patchwork-Hint: ignore Date: Wed, 25 Dec 2019 00:08:57 +0000 (GMT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: gtm601: add Broadmobi bm818 sound profile has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.6 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 057a317a8d94136b76a3cc6f7be53ee2b85dc115 Mon Sep 17 00:00:00 2001 From: "Angus Ainslie (Purism)" Date: Mon, 23 Dec 2019 07:47:11 -0800 Subject: [PATCH] ASoC: gtm601: add Broadmobi bm818 sound profile The Broadmobi bm818 uses stereo sound at 48Khz sample rate Signed-off-by: Angus Ainslie (Purism) Link: https://lore.kernel.org/r/20191223154712.18581-2-angus@akkea.ca Signed-off-by: Mark Brown --- sound/soc/codecs/gtm601.c | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/gtm601.c b/sound/soc/codecs/gtm601.c index d454294c8d06..7f05ebcb88d1 100644 --- a/sound/soc/codecs/gtm601.c +++ b/sound/soc/codecs/gtm601.c @@ -13,7 +13,7 @@ #include #include #include -#include +#include #include #include #include @@ -47,6 +47,24 @@ static struct snd_soc_dai_driver gtm601_dai = { }, }; +static struct snd_soc_dai_driver bm818_dai = { + .name = "bm818", + .playback = { + .stream_name = "Playback", + .channels_min = 2, + .channels_max = 2, + .rates = SNDRV_PCM_RATE_48000, + .formats = SNDRV_PCM_FMTBIT_S16_LE, + }, + .capture = { + .stream_name = "Capture", + .channels_min = 2, + .channels_max = 2, + .rates = SNDRV_PCM_RATE_48000, + .formats = SNDRV_PCM_FMTBIT_S16_LE, + }, +}; + static const struct snd_soc_component_driver soc_component_dev_gtm601 = { .dapm_widgets = gtm601_dapm_widgets, .num_dapm_widgets = ARRAY_SIZE(gtm601_dapm_widgets), @@ -60,13 +78,19 @@ static const struct snd_soc_component_driver soc_component_dev_gtm601 = { static int gtm601_platform_probe(struct platform_device *pdev) { + const struct snd_soc_dai_driver *dai_driver; + + dai_driver = of_device_get_match_data(&pdev->dev); + return devm_snd_soc_register_component(&pdev->dev, - &soc_component_dev_gtm601, >m601_dai, 1); + &soc_component_dev_gtm601, + (struct snd_soc_dai_driver *)dai_driver, 1); } #if defined(CONFIG_OF) static const struct of_device_id gtm601_codec_of_match[] = { - { .compatible = "option,gtm601", }, + { .compatible = "option,gtm601", .data = (void *)>m601_dai }, + { .compatible = "broadmobi,bm818", .data = (void *)&bm818_dai }, {}, }; MODULE_DEVICE_TABLE(of, gtm601_codec_of_match); -- 2.20.1