Received: by 10.213.65.68 with SMTP id h4csp299940imn; Tue, 3 Apr 2018 21:23:04 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/GhtuD+LHAla56O0+jfg9OY/I7LPjaDzZCqUPJ9RH+GoSODAQmWSwUX0PSRc4Vuje94VZW X-Received: by 2002:a17:902:6849:: with SMTP id f9-v6mr17376145pln.139.1522815784546; Tue, 03 Apr 2018 21:23:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522815784; cv=none; d=google.com; s=arc-20160816; b=ld4NsvQvFzXm4bTtBPyrOcGThO7SM2oE1Zd5T7CHpoZ7nzTSxioCHe9yBGQ+lRPlR3 ZcNQotLtz78STpOZlJNVITL8r+vcfwhZiXnT4yjUM0qc6JpWPPpaKy2v1kAK07CHC6/c eLUICNsbWto4nxYwFB1qxWpEtGap7J2sRRNi70wrqZ48RIaY1lYrN2Ypz84JWszD8t8C ivPIq5eACdedZP8Ii3co9iSTw+9V81+VPMMo1akI9EZjzhzcbKK+dIzveNoINh+6NV8F 0E0gfOjvHEmmi5FXtb9qycTY8RHt2o22BoOMDwa4NeKANvXmZAc+NmXAmQEQ8wyuPcsM dupA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=+o0YwqGql5QipeimdgZa9a9p9LvBEWDN3stTXW+GfA0=; b=eUsW/gxYG7/S+n5AFoiBh5U6zlXNLSpcVBmNUkt0LLZAjee+fwf+T+FeHiIGzvQHx9 DpZZZSjTmg9eoitPsv07VExa0jb6kb2OJmbb6lX/7otLEzMS/PzyREcZmiH36qzjxEEW A04Ar/TcP4kbonLQQbe6PDd6XoMAboCNsX4Cz+/nOy4BDDLAFe1uj1+v6F9BUSjlcoDy B6AX4SSAzVlNKNQ46AOHi9y2neS/uXIig+32vbHNyOSITGUgRElyeEbEZKx/vTnbHI7s Cwy13b+/cSxcTVaAbqbhbIlDX5iIMM/HQ/yWriQcqK7ilBz50kYkd7fuyHdWFwgmW/pv Zqdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aiCdCCU+; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p7si1558538pff.118.2018.04.03.21.22.18; Tue, 03 Apr 2018 21:23:04 -0700 (PDT) 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=pass header.i=@gmail.com header.s=20161025 header.b=aiCdCCU+; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752033AbeDDETh (ORCPT + 99 others); Wed, 4 Apr 2018 00:19:37 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:33971 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751849AbeDDETb (ORCPT ); Wed, 4 Apr 2018 00:19:31 -0400 Received: by mail-wm0-f68.google.com with SMTP id w2so14380558wmw.1 for ; Tue, 03 Apr 2018 21:19:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=+o0YwqGql5QipeimdgZa9a9p9LvBEWDN3stTXW+GfA0=; b=aiCdCCU+d7CNzrf00V9ivOe1bxkvQEvattAHRqsYGmv1oac9N6605neXvx07s19xXb HXpMeYO/awZ0LUOIMl8O4R5pYXqi6H0CtuSDEsMorHuBDQH+BrAjXmWNcC6m1RBsuLke B+kz9v5GmESbDq5ItJ47YzIFThmjUcmPgu3FiJExQmPiEX4bjEYKfBUBGmAI4B4erVsh /fDO7sElP1xGtnuco/1y3uA4QSf5t092I7TLwSTZBK86dfO1Z0y6R6nyoQrBOG7IiPLp duuRCMtZ47nIqaAFYQkujdTdMYVdCTMJvaHLwzL2cpUPheZ4iBcGFWDqMlqhc5JeAf8t oYyQ== 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:in-reply-to :references; bh=+o0YwqGql5QipeimdgZa9a9p9LvBEWDN3stTXW+GfA0=; b=J3iTaJ5oPd2wTaZWyW21sVey5jH6fWH+emaimDlldTQcBPasBOZb+11f+FYeFL+aCV wqX49rYe4nCZn4uxfA+B5bsrQLqq+YMDCQwQ8Tkuu0fuC4wGz2jeL9B8bWROCHNdj+wg lXI8ztHcYrPC4szaqDT7teA41Pjgl2iw7RmDOGdUNx7h7TUQE2RpdzDh6RTb80JYiVMs rsF5EOD4WbHoeOSscK0T7KuugGOsBRKcd4vMg3T0D+/jGcfNn2b5T+x+xgn/Hh+r/M6F 31lbWLV59Yng060kOycwypdFAZFg9KJmQeIdK+Q9Do16l6RcfRsANM4thV8rqRTEQ02v U+6Q== X-Gm-Message-State: AElRT7HXjKnhJzRDKXkohsYYFJ4bfDYO6/ZHnyFqkoBuzmZYYFhg9kjN rBLhvuzQpyJEbTkJheyynWg= X-Received: by 10.80.171.130 with SMTP id u2mr18916380edc.259.1522815570817; Tue, 03 Apr 2018 21:19:30 -0700 (PDT) Received: from gentoo0.localdomain (x4dba7eb4.dyn.telefonica.de. [77.186.126.180]) by smtp.gmail.com with ESMTPSA id g24sm2866647edj.87.2018.04.03.21.19.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Apr 2018 21:19:30 -0700 (PDT) From: Kirill Marinushkin To: Mark Brown Cc: Pierre-Louis Bossart , Jaroslav Kysela , Takashi Iwai , Pan Xiuli , Liam Girdwood , linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, Kirill Marinushkin Subject: [PATCH v4 3/3] ASoC: topology: Add definitions for mclk_direction values Date: Wed, 4 Apr 2018 06:19:39 +0200 Message-Id: <20180404041939.23317-4-k.marinushkin@gmail.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20180404041939.23317-1-k.marinushkin@gmail.com> References: <20180404041939.23317-1-k.marinushkin@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Current comment makes not clear the direction of mclk. Previously, similar description caused a misunderstanding for bclk_master and fsync_master. This commit solves the potential confusion the same way it is solved for bclk_master and fsync_master. Signed-off-by: Kirill Marinushkin Acked-by: Pierre-Louis Bossart Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: Mark Brown Cc: Pan Xiuli Cc: Liam Girdwood Cc: linux-kernel@vger.kernel.org Cc: alsa-devel@alsa-project.org --- include/uapi/sound/asoc.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/uapi/sound/asoc.h b/include/uapi/sound/asoc.h index f3c4b46e39d8..b901cdbe532a 100644 --- a/include/uapi/sound/asoc.h +++ b/include/uapi/sound/asoc.h @@ -144,6 +144,10 @@ #define SND_SOC_TPLG_DAI_CLK_GATE_GATED 1 #define SND_SOC_TPLG_DAI_CLK_GATE_CONT 2 +/* DAI mclk_direction */ +#define SND_SOC_TPLG_MCLK_CO 0 /* for codec, mclk is output */ +#define SND_SOC_TPLG_MCLK_CI 1 /* for codec, mclk is input */ + /* DAI physical PCM data formats. * Add new formats to the end of the list. */ @@ -334,7 +338,7 @@ struct snd_soc_tplg_hw_config { __u8 invert_fsync; /* 1 for inverted frame clock, 0 for normal */ __u8 bclk_master; /* SND_SOC_TPLG_BCLK_ value */ __u8 fsync_master; /* SND_SOC_TPLG_FSYNC_ value */ - __u8 mclk_direction; /* 0 for input, 1 for output */ + __u8 mclk_direction; /* SND_SOC_TPLG_MCLK_ value */ __le16 reserved; /* for 32bit alignment */ __le32 mclk_rate; /* MCLK or SYSCLK freqency in Hz */ __le32 bclk_rate; /* BCLK freqency in Hz */ -- 2.13.6