From patchwork Mon Feb 12 12:37:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 128031 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp3175068ljc; Mon, 12 Feb 2018 04:47:37 -0800 (PST) X-Google-Smtp-Source: AH8x224r9ANwqtKVbMfkdoyVu0IR4PhZdmkp5NGcgNjW6mgDMP7eztX9a+tZ/8LEYVS4LMC5s2H5 X-Received: by 10.28.184.131 with SMTP id i125mr3800149wmf.44.1518439657808; Mon, 12 Feb 2018 04:47:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518439657; cv=none; d=google.com; s=arc-20160816; b=P6Q352L9H74PZLLuSMazyymUYys3TX3EIQc6FVZt6MuDYqLmmIgJrjKlV5KQiRqFpT ouN4Z/Xk92RmLQiUa3LlTrdeeXSDcrhF5XD0g500uQ7oBY6Yr/5jOAQ8+NjRxg+NULpp qt9bkDbeO+9EviD1OdXbGoNWNgZqXb5+qcnnWuw8YluF/4T67qkziwqxlNVjUtMTS8HX d69Nc89jc48hxNedjmA+4xqlHpf1HVIyVDo7IrBmSj1uvK/O6uFd97P65ydfTI/ebd0f P17jkU8/VrM3SxJLlJxlw6iKVoZho6J8dFfKNZ8of59RbwdznB110Rdd/jAPlvmKFXaE 6YBg== 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=fyuWXRE39xwjDdkdJFypvAZgc1yjdFRnuhnkV002JSE=; b=i04rOk1zL1JIyOtQKYqMLEBxLSBAKGwxcY3XoMB6Mgp2cWbo9bPA3zNu7IQfWDrZ9h 29KSwEpDi5FHSFHPLxA5hTeLQLCVXx7bnRGWcC17CpFwWEWAgT5yHjdagAgU7zmocp+j /oNLGWlppSAbEmbZr3hir8wt55w9Hns9M5vqmUhro8RDmT7rio3oJ1pk5D1JHFdkPcJR jXIeHgsjFk5VduHwi4EIEWX7JfuRQUoLn4VgDpNyAMbU/M2tWjWwIFMPt6X5T/3L7pmB OdYmfl/uQrYOUfc6GS4KyoXQm3Ra6EnvFmJoCtOBN7n+uFb9bT6D1buSnuhWMd0E1XUP 6HHw== 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=ddYxl6PL; 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 k17si5866301wrh.438.2018.02.12.04.47.37; Mon, 12 Feb 2018 04:47:37 -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=ddYxl6PL; 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 2104C267D85; Mon, 12 Feb 2018 13:46:20 +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 0CA82267D7C; Mon, 12 Feb 2018 13:46:18 +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 97C1A2674FD for ; Mon, 12 Feb 2018 13:37:41 +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=N/6YuaN+aqh115zUP/19tR2hmdtAVTgJ/1/jJECtRhI=; b=ddYxl6PL9jJX qve6pynJQg83pNa9PAih5/iSbMQxQSIllys2NY/24BzPqC3xcPIea8YCr/2L3tjFIrF/kArzrCjMi rZj6Girk3gvMvqs36dL2q/IFygkuOJ7wKjBScPhTNuFD0BQNdY3TqP7hti9zsZcErOr4RwhjRiI3c hLBMw=; 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 1elDMZ-00026Y-TW; Mon, 12 Feb 2018 12:37:39 +0000 Received: from broonie by debutante with local (Exim 4.90) (envelope-from ) id 1elDMZ-00045p-Fq; Mon, 12 Feb 2018 12:37:39 +0000 From: Mark Brown To: Kuninori Morimoto In-Reply-To: <87efm9wak1.wl%kuninori.morimoto.gx@renesas.com> Message-Id: Date: Mon, 12 Feb 2018 12:37:39 +0000 Cc: alsa-devel@alsa-project.org, Mark Brown Subject: [alsa-devel] Applied "ASoC: es7134: replace codec 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: es7134: replace codec 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 02009eea07c8d7f277f12400ba7dc8524dbf9498 Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Mon, 29 Jan 2018 04:32:37 +0000 Subject: [PATCH] ASoC: es7134: replace codec to component Now we can replace Codec to Component. Let's do it. Note: xxx_codec_xxx() -> xxx_component_xxx() .idle_bias_off = 0 -> .idle_bias_on = 1 .ignore_pmdown_time = 0 -> .use_pmdown_time = 1 - -> .endianness = 1 - -> .non_legacy_dai_naming = 1 Signed-off-by: Kuninori Morimoto Signed-off-by: Mark Brown --- sound/soc/codecs/es7134.c | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 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/codecs/es7134.c b/sound/soc/codecs/es7134.c index 3869025754d8..58515bb1a303 100644 --- a/sound/soc/codecs/es7134.c +++ b/sound/soc/codecs/es7134.c @@ -69,28 +69,24 @@ static const struct snd_soc_dapm_route es7134_dapm_routes[] = { { "AOUTR", NULL, "DAC" }, }; -static const struct snd_soc_codec_driver es7134_codec_driver = { - .component_driver = { - .dapm_widgets = es7134_dapm_widgets, - .num_dapm_widgets = ARRAY_SIZE(es7134_dapm_widgets), - .dapm_routes = es7134_dapm_routes, - .num_dapm_routes = ARRAY_SIZE(es7134_dapm_routes), - }, +static const struct snd_soc_component_driver es7134_component_driver = { + .dapm_widgets = es7134_dapm_widgets, + .num_dapm_widgets = ARRAY_SIZE(es7134_dapm_widgets), + .dapm_routes = es7134_dapm_routes, + .num_dapm_routes = ARRAY_SIZE(es7134_dapm_routes), + .idle_bias_on = 1, + .use_pmdown_time = 1, + .endianness = 1, + .non_legacy_dai_naming = 1, }; static int es7134_probe(struct platform_device *pdev) { - return snd_soc_register_codec(&pdev->dev, - &es7134_codec_driver, + return devm_snd_soc_register_component(&pdev->dev, + &es7134_component_driver, &es7134_dai, 1); } -static int es7134_remove(struct platform_device *pdev) -{ - snd_soc_unregister_codec(&pdev->dev); - return 0; -} - #ifdef CONFIG_OF static const struct of_device_id es7134_ids[] = { { .compatible = "everest,es7134", }, @@ -106,7 +102,6 @@ static struct platform_driver es7134_driver = { .of_match_table = of_match_ptr(es7134_ids), }, .probe = es7134_probe, - .remove = es7134_remove, }; module_platform_driver(es7134_driver);