From patchwork Mon Feb 19 06:05:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kirill Marinushkin X-Patchwork-Id: 10227167 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1EFD360392 for ; Mon, 19 Feb 2018 06:05:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0EC84287A6 for ; Mon, 19 Feb 2018 06:05:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 01F8D28911; Mon, 19 Feb 2018 06:05:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6C343287A6 for ; Mon, 19 Feb 2018 06:05:56 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 42F6F26733D; Mon, 19 Feb 2018 07:05:55 +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 8ED4F267344; Mon, 19 Feb 2018 07:05:54 +0100 (CET) Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) by alsa0.perex.cz (Postfix) with ESMTP id 8A8D2266E7D for ; Mon, 19 Feb 2018 07:05:51 +0100 (CET) Received: by mail-wr0-f193.google.com with SMTP id l43so8421451wrc.2 for ; Sun, 18 Feb 2018 22:05:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=jTBCDl8fyNpUeEfEI/O+lSNArI+cQ4RLSRWBWAp5Xog=; b=iH2PQBlCbRpIM2+9taucDOy+YuOBQkf3xz0mhP+yZIq1e9vPzoikutZ+kwNCgalNgh Bxg8Z0WmLLJBIf/A2IHuolxg2h1XwAYg9etXA6Kr5FIKx2WitS9kPNAp+EcfwuyIrRZ6 +e9XF/gupBpO+N3arYvsu3mYk/2sTnPbWOQ0r4hJZM+UVXr8JlZdaIBRfAUsmfkW0am2 ssfgJU8/ezamrN/ZwIE50XoPy5ynRi0nYCzErfCMt523Vs2rGa9kIANC4wXPusugZjI1 W0/XyYp03Yv+oa42/tPTE23579Rg/EvlxVmdTagkI5zJC4WI62bG55fSrkuNuwSLcaM6 ZuSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=jTBCDl8fyNpUeEfEI/O+lSNArI+cQ4RLSRWBWAp5Xog=; b=FPKzc79KI7VUj5dEZ2InmvnT2VX2XfaoiwgOFfp9WXSoY9jfyAJIc+IikNdLVNoCWG myCqF9yWT/Iu60V/3LPnCQjpIJc96hMdl+5ebp0oY9i15Jb4gmPPP6ojXKMe92idJhG6 8xawAEFSM/MmTdUSfH5g3ZYfLjUY7TC4dn8oTbGq/ABOpuokWGVkhYCT2GQyT0dyQP+Y Hdqx6iuGKEwbSW8ykxO5xnvHI+rNphfgs/WnJaDB0Pq217Cwtit+pO44tqDQFDzUzOan XX1MGUg8zjM/ECicUrwAfA5W9U5KMKbst4zNTNAaD8rtvGQsv2cMrp2uPSx1QOMHBonM vPIg== X-Gm-Message-State: APf1xPCCjt+P+zLqLxJMKtISp5YGUUa/LfWBoBnLrRChMVKQlZYAo+TY Y5dF9XmVV/v9MHkdR0wNzhw= X-Google-Smtp-Source: AH8x226iZlrS0OVix3re3ev6jZnHmN7OYjx4Hlc9Yqnfz/aG4TPCTFeFaPeqtUpGIKCo075vbpu0MQ== X-Received: by 10.223.139.11 with SMTP id n11mr12352700wra.91.1519020351348; Sun, 18 Feb 2018 22:05:51 -0800 (PST) Received: from gentoo0.localdomain (x4e3351bc.dyn.telefonica.de. [78.51.81.188]) by smtp.gmail.com with ESMTPSA id k45sm443496wrf.62.2018.02.18.22.05.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Feb 2018 22:05:50 -0800 (PST) From: Kirill Marinushkin To: linux-kernel@vger.kernel.org Date: Mon, 19 Feb 2018 07:05:30 +0100 Message-Id: <20180219060531.17276-1-k.marinushkin@gmail.com> X-Mailer: git-send-email 2.13.6 Cc: alsa-devel@alsa-project.org, Takashi Iwai , Kirill Marinushkin Subject: [alsa-devel] [PATCH 1/2] ASoC: topology: Rename clock_gated to clock_cont in snd_soc_tplg_hw_config 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 X-Virus-Scanned: ClamAV using ClamSMTP In kernel `soc-dai.h`, DAI clock gating is defined as following: ~~~~ \#define SND_SOC_DAIFMT_CONT (1 << 4) /* continuous clock */ \#define SND_SOC_DAIFMT_GATED (0 << 4) /* clock is gated */ ~~~~ Therefore, the corresponding field of struct snd_soc_tplg_hw_config should be inverted compared to the current logic: clock_count = 1 => SND_SOC_DAIFMT_CONT clock_count = 0 => SND_SOC_DAIFMT_GATED Signed-off-by: Kirill Marinushkin Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: alsa-devel@alsa-project.org Cc: linux-kernel@vger.kernel.org --- include/uapi/sound/asoc.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/uapi/sound/asoc.h b/include/uapi/sound/asoc.h index 69c37ecbff7e..10188850dede 100644 --- a/include/uapi/sound/asoc.h +++ b/include/uapi/sound/asoc.h @@ -312,7 +312,9 @@ struct snd_soc_tplg_hw_config { __le32 size; /* in bytes of this structure */ __le32 id; /* unique ID - - used to match */ __le32 fmt; /* SND_SOC_DAI_FORMAT_ format value */ - __u8 clock_gated; /* 1 if clock can be gated to save power */ + __u8 clock_cont; /* 1 if clock is continuous, and can not be + * gated to save power + */ __u8 invert_bclk; /* 1 for inverted BCLK, 0 for normal */ __u8 invert_fsync; /* 1 for inverted frame clock, 0 for normal */ __u8 bclk_master; /* 1 for master of BCLK, 0 for slave */