From patchwork Mon Feb 12 12:28:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 127995 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp3161731ljc; Mon, 12 Feb 2018 04:30:30 -0800 (PST) X-Google-Smtp-Source: AH8x225TJdsiAuqIJdtQgKwUEC7GD259dALsZIdfKCCnCDgxavcZZI7uKLXbQy/BPVnpoHs8+F0q X-Received: by 10.223.192.139 with SMTP id d11mr9047920wrf.260.1518438630033; Mon, 12 Feb 2018 04:30:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518438630; cv=none; d=google.com; s=arc-20160816; b=nG6J+zrAc2rj6Vonpcrcu2t56pGRLxpLePfciD+72VNPmYeSbFn454MRU2T/9cqhmX QeXq6mp6WYPonO2u0PMXMeWM52jLUsX7GqakIIBOtJ8B1vkaYgjdXHEqbtb45J1F5JlK FqWZTV9S43lkpLSStusSoSq5y8klsRHhsCCN0qsoJk+TqicSzpbwx5VvCqrl+FmXMb7v CHpumNl9ySzDDZ/qECuiL+qEfVjDmHucIQ2kBaOmI0o4lZOXWGhkMdHbMVV61uyNg46Z TIQngOzzfhpGcwep008PCdvjzzaMcskYEQBQmTkaHfN9xufMPyAb3VFsXk7KQgva0V2Q ps6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:date:message-id:in-reply-to:to:from :dkim-signature:delivered-to:arc-authentication-results; bh=QdCSHn5a/YkAwf3hePiBg2KCYj/0CiXdc2bAJehRNgM=; b=qU8XNyH8ReO0z1kBMbaiXyAspB/MVaJ7Rvj6D5tgPXW5l2M3Q7q4JLDefiUYEso+k4 4Iy2r5zJQKmUNQCb/IsScsiw70kXIlwXe5+HwrcawCYqp5CIY9zdWXWDTcert6SEp7+L GhIeVBa1XBvIt95Kh8vyBQkmvSslfbuh0/Ln5HbGBzUXsf0Y9SBeumyalnRgu/TPS7dt fhFGJo4j92tTmv5OEUvW8MBDW3WD5XRxmeWqLoyGb4qtXEQNZ7J0hBLaUltV1tBL6sCn TrNR5c4E/g5/yluYVVR5MCT+WtlyvNnaWAYwSN82mB8hhaEzbHGZRzDE7rfla4eDNwxR bpLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=qnpHVKuP; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id v4si6371269wre.426.2018.02.12.04.30.29; Mon, 12 Feb 2018 04:30:30 -0800 (PST) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=qnpHVKuP; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id BCFC7267429; Mon, 12 Feb 2018 13:28:44 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 97BC82673EF; Mon, 12 Feb 2018 13:28:41 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, SPF_PASS, T_RP_MATCHES_RCVD autolearn=disabled version=3.4.0 Received: from heliosphere.sirena.org.uk (heliosphere.sirena.org.uk [172.104.155.198]) by alsa0.perex.cz (Postfix) with ESMTP id E190D267396 for ; Mon, 12 Feb 2018 13:28:31 +0100 (CET) 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=caGQFw1elUMiwEp8e+e/KGqSkRVRP/9wIE1h/+HF6B0=; b=qnpHVKuPW/ID VKa2tw+TwLsjfw+RN+woTKQefoMFHNxr418Ldv34npoPJZvSk7xN070T6dqNM61IYFsEUBmbksMTc uTRi/ef6RDW390U2oX5PxZjlIEZZDwjVzt9Kf8XLb62bzBBuhbrPWC9SBE3Ol12XmVjm5onW91jSy cjLSs=; Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1elDDg-0001y7-Lm; Mon, 12 Feb 2018 12:28:28 +0000 Received: from broonie by debutante with local (Exim 4.90) (envelope-from ) id 1elDDg-0002wK-7U; Mon, 12 Feb 2018 12:28:28 +0000 From: Mark Brown To: Kuninori Morimoto In-Reply-To: <87h8rrew3c.wl%kuninori.morimoto.gx@renesas.com> Message-Id: Date: Mon, 12 Feb 2018 12:28:28 +0000 Cc: alsa-devel@alsa-project.org, Mark Brown , Simon Subject: [alsa-devel] Applied "ASoC: au1x: dma: replace platform to component" to the asoc tree X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org The patch ASoC: au1x: dma: replace platform to component 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 781a9fcccae535d3f46cd05177366c7e67aa01ef Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Mon, 29 Jan 2018 02:50:54 +0000 Subject: [PATCH] ASoC: au1x: dma: replace platform to component Now platform can be replaced to component, let's do it. Signed-off-by: Kuninori Morimoto Signed-off-by: Mark Brown --- sound/soc/au1x/dma.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) -- 2.16.1 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/au1x/dma.c b/sound/soc/au1x/dma.c index 19457e2b351e..efff1e293a1b 100644 --- a/sound/soc/au1x/dma.c +++ b/sound/soc/au1x/dma.c @@ -21,6 +21,8 @@ #include "psc.h" +#define DRV_NAME "au1x_dma" + struct pcm_period { u32 start; u32 relative_end; /* relative to start of buffer */ @@ -174,7 +176,8 @@ static const struct snd_pcm_hardware alchemy_pcm_hardware = { static inline struct alchemy_pcm_ctx *ss_to_ctx(struct snd_pcm_substream *ss) { struct snd_soc_pcm_runtime *rtd = ss->private_data; - return snd_soc_platform_get_drvdata(rtd->platform); + struct snd_soc_component *component = snd_soc_rtdcom_lookup(rtd, DRV_NAME); + return snd_soc_component_get_drvdata(component); } static inline struct audio_stream *ss_to_as(struct snd_pcm_substream *ss) @@ -297,7 +300,8 @@ static int alchemy_pcm_new(struct snd_soc_pcm_runtime *rtd) return 0; } -static struct snd_soc_platform_driver alchemy_pcm_soc_platform = { +static struct snd_soc_component_driver alchemy_pcm_soc_component = { + .name = DRV_NAME, .ops = &alchemy_pcm_ops, .pcm_new = alchemy_pcm_new, }; @@ -312,8 +316,8 @@ static int alchemy_pcm_drvprobe(struct platform_device *pdev) platform_set_drvdata(pdev, ctx); - return devm_snd_soc_register_platform(&pdev->dev, - &alchemy_pcm_soc_platform); + return devm_snd_soc_register_component(&pdev->dev, + &alchemy_pcm_soc_component, NULL, 0); } static struct platform_driver alchemy_pcmdma_driver = {