From patchwork Fri Jul 13 15:10:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 141960 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp915316ljj; Sat, 14 Jul 2018 15:44:49 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfexRxK1t7a5pnINL52ueStxIccGa0c3EmhZxI25sRAU3TFr2edYNpSQJ8Dmz3JzEjYiS9H X-Received: by 2002:a1c:ec1b:: with SMTP id k27-v6mr6465539wmh.157.1531608289021; Sat, 14 Jul 2018 15:44:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531608289; cv=none; d=google.com; s=arc-20160816; b=qHrJWz8h6VMkWqJKfWijNcnugf9Z8gcXvtZsiD+F4Fm+eD5np4Ntq7z/w2zNFaCIhJ 47yNkh/t3goBuEOfttBhsb5/b2hQcrdo3WsHC1DDPVVoGUjnx++HcqftPnWZmF1xaz3e 7oMQ2X7rh4Jt4El2lu9CbcpuwqPYJ96uDy8/h/Riupx+UiB7oJ+ptqk77TXjRSmdl6Ap rPBNc94YhfUG5T1pHx0B18uMTJEgQTJBMElHtpdhnW5+hl8lN3GCvlKaqOOHxaTigsCE Ec9YEYALb/YbTf/yEudcxzRVfmfh8Ky32Ak0+84fQJ7RYaUNE0tmxkAIzYyX1NnJRYRD A7gw== 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=Fpuxa2MXKHPgsiwhrBzNmB2xD60815kkBmwpyGuSe58=; b=QKe3Ztahg9pPnpFV658qvB5Kfda0BZGH3imm6iUf1IM2IM3/ypHGBP5wZnLqM+6BpN ypUU+z5TfXC20Bth9VJ+Lgx4hGUZgCyGZfJHo/MSRGm0yJvx/7q3UJOPZwzR2PtvVPrv VuSHaTCiwKLIuyEoM+LyqPhLEXDe3u1yrmrG2uBOZn+eCDrTcyLgJ3dSi3Vp225Igy+2 R0q9uyB49K6bujNZzBAjwiqIbw6tQWH6NpUcDoc5crf/oOck/WzkjYW49bGIhZyWqLV7 sGjDJZIptnBpCfOZZOJ8DUHrMV9D13KiIKUYksdO2zK/9gZsxgGjh5OlcrWBpyAK0DLW v34A== 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=Iu1CptQ3; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id x16-v6si25935396wrg.335.2018.07.14.15.44.48; Sat, 14 Jul 2018 15:44:49 -0700 (PDT) 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=Iu1CptQ3; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 906DE267750; Sun, 15 Jul 2018 00:44:34 +0200 (CEST) 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 EF8A6267730; Sun, 15 Jul 2018 00:44:27 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.7 required=5.0 tests=DATE_IN_PAST_24_48, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, SPF_PASS 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 AAA5F267736 for ; Sun, 15 Jul 2018 00:44:24 +0200 (CEST) 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=iR+fP8BZCR7/DqNBtUM4toatBcPpiY1+J6p8KsPC1DA=; b=Iu1CptQ3kL73 yrX0MPHVVKVbE109NbAUhKfZ2/bd0HXzacs5l2t7YCUZAl337BiTqLMVxlG44GjlUsyIPWdx+Ol6Y VYfCUfhY8EcYN3TPDs+k2e5TsPgYPLbzVBc/NVyjKiaB5IV2JHWicvup46OLFBQ9T9ZFSnRDrglk4 uCD7E=; Received: from [2a00:23c4:5d8e:0:97c8:1971:bc17:6a1a] (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 1feTH6-0006i1-2B; Sat, 14 Jul 2018 22:44:24 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id 715CD440083; Fri, 13 Jul 2018 16:10:20 +0100 (BST) From: Mark Brown To: Kuninori Morimoto In-Reply-To: <87woxx3q5g.wl%kuninori.morimoto.gx@renesas.com> Message-Id: <20180713151020.715CD440083@finisterre.ee.mobilebroadband> Date: Fri, 13 Jul 2018 16:10:20 +0100 (BST) Cc: alsa-devel@alsa-project.org, Mark Brown Subject: [alsa-devel] Applied "ASoC: doc: 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: doc: 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 a3ac7727f3a226b0569431de62a4e9bb4c770b2b Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Wed, 28 Mar 2018 02:14:22 +0000 Subject: [PATCH] ASoC: doc: replace codec to component Now we can replace Codec to Component. Let's do it. Signed-off-by: Kuninori Morimoto Signed-off-by: Mark Brown --- Documentation/sound/soc/codec.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.18.0 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/Documentation/sound/soc/codec.rst b/Documentation/sound/soc/codec.rst index f87612b94812..58f625fe3d39 100644 --- a/Documentation/sound/soc/codec.rst +++ b/Documentation/sound/soc/codec.rst @@ -179,12 +179,12 @@ i.e. static int wm8974_mute(struct snd_soc_dai *dai, int mute) { - struct snd_soc_codec *codec = dai->codec; - u16 mute_reg = snd_soc_read(codec, WM8974_DAC) & 0xffbf; + struct snd_soc_component *component = dai->component; + u16 mute_reg = snd_soc_component_read32(component, WM8974_DAC) & 0xffbf; if (mute) - snd_soc_write(codec, WM8974_DAC, mute_reg | 0x40); + snd_soc_component_write(component, WM8974_DAC, mute_reg | 0x40); else - snd_soc_write(codec, WM8974_DAC, mute_reg); + snd_soc_component_write(component, WM8974_DAC, mute_reg); return 0; }