From patchwork Thu Feb 11 12:18:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 61747 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp155056lbl; Thu, 11 Feb 2016 04:18:16 -0800 (PST) X-Received: by 10.98.16.69 with SMTP id y66mr66690995pfi.86.1455193096590; Thu, 11 Feb 2016 04:18:16 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u69si12314699pfa.253.2016.02.11.04.18.16; Thu, 11 Feb 2016 04:18:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752970AbcBKMSO (ORCPT + 7 others); Thu, 11 Feb 2016 07:18:14 -0500 Received: from mail-wm0-f44.google.com ([74.125.82.44]:34427 "EHLO mail-wm0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752956AbcBKMSK (ORCPT ); Thu, 11 Feb 2016 07:18:10 -0500 Received: by mail-wm0-f44.google.com with SMTP id 128so18616479wmz.1 for ; Thu, 11 Feb 2016 04:18:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=BjUS1CVQL5GI9skGRtCSk+90pps1dQ4O5uGDU01dF10=; b=GUNZtFAIHP2y11NpPrv6hZZ9jqIHFqwpQfBBND+v874IdE9HtOM7EteDPctu+ATnOx 0PSPUnlQw3DwpaigNHcqB5tp8IwZqSRyQvvOSTqonXM8lEk65TqMSm4myLbiNcUJBVoe VnG9Wv2bNCV3Ab7COQEXc9CdEvBl05LWWsQvs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=BjUS1CVQL5GI9skGRtCSk+90pps1dQ4O5uGDU01dF10=; b=Az+vRjoKvdYdY0VC4YwBXKl3+oVoGHLVjA0MID7aZrfqkHIA3zwVHDeP/wGHOO6AHX kDogubud5JqBbwJXuHkjb3hOgadbaykdFC8/owW5JYQrUttmYPCkxzaDlJgnLqA3MB8G xM5W5U09mxJA4cQdcuQIVU95zTVfwWnTEQSrq9d98tcSmELLjVXnIc8dHny0/zAx6SVJ fQW8gXfpMPjmP5w0JPZ190UtJruK93AKQdWTyk1Z2Q1AQeQCEhWDyBRPfmAwv3deCzCp A0+y92jvRHKxRm31XzsSmTcljMFVyB1ea767TB07Ttsn1L1ALyk2szRByUovWP+unHOn hGcg== X-Gm-Message-State: AG10YOS69PQEyrOnIhUf0F+t6EVVorANMvdZCQ7QRo2WnSSE+sG+d5JJyMzzR+rIDmqqGlrA X-Received: by 10.194.121.70 with SMTP id li6mr45572816wjb.33.1455193089904; Thu, 11 Feb 2016 04:18:09 -0800 (PST) Received: from localhost.localdomain (host-92-13-246-184.as43234.net. [92.13.246.184]) by smtp.gmail.com with ESMTPSA id qs1sm7366401wjc.2.2016.02.11.04.18.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 11 Feb 2016 04:18:09 -0800 (PST) From: Srinivas Kandagatla To: Patrick Lai , alsa-devel@alsa-project.org, Mark Brown Cc: Banajit Goswami , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, kwestfie@codeaurora.org, Srinivas Kandagatla Subject: [PATCH v3 09/14] ASoC: qcom: add mic related i2s control register defines Date: Thu, 11 Feb 2016 12:18:06 +0000 Message-Id: <1455193086-1845-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1455193007-1481-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1455193007-1481-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This patch adds mic related bitmasks and offsets in the i2c control register. Signed-off-by: Srinivas Kandagatla Acked-by: Kenneth Westfield --- sound/soc/qcom/lpass-lpaif-reg.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/sound/soc/qcom/lpass-lpaif-reg.h b/sound/soc/qcom/lpass-lpaif-reg.h index 95e22f1..6599794 100644 --- a/sound/soc/qcom/lpass-lpaif-reg.h +++ b/sound/soc/qcom/lpass-lpaif-reg.h @@ -47,6 +47,28 @@ #define LPAIF_I2SCTL_SPKMONO_STEREO (0 << LPAIF_I2SCTL_SPKMONO_SHIFT) #define LPAIF_I2SCTL_SPKMONO_MONO (1 << LPAIF_I2SCTL_SPKMONO_SHIFT) +#define LPAIF_I2SCTL_MICEN_MASK GENMASK(8, 8) +#define LPAIF_I2SCTL_MICEN_SHIFT 8 +#define LPAIF_I2SCTL_MICEN_DISABLE (0 << LPAIF_I2SCTL_MICEN_SHIFT) +#define LPAIF_I2SCTL_MICEN_ENABLE (1 << LPAIF_I2SCTL_MICEN_SHIFT) + +#define LPAIF_I2SCTL_MICMODE_MASK GENMASK(7, 4) +#define LPAIF_I2SCTL_MICMODE_SHIFT 4 +#define LPAIF_I2SCTL_MICMODE_NONE (0 << LPAIF_I2SCTL_MICMODE_SHIFT) +#define LPAIF_I2SCTL_MICMODE_SD0 (1 << LPAIF_I2SCTL_MICMODE_SHIFT) +#define LPAIF_I2SCTL_MICMODE_SD1 (2 << LPAIF_I2SCTL_MICMODE_SHIFT) +#define LPAIF_I2SCTL_MICMODE_SD2 (3 << LPAIF_I2SCTL_MICMODE_SHIFT) +#define LPAIF_I2SCTL_MICMODE_SD3 (4 << LPAIF_I2SCTL_MICMODE_SHIFT) +#define LPAIF_I2SCTL_MICMODE_QUAD01 (5 << LPAIF_I2SCTL_MICMODE_SHIFT) +#define LPAIF_I2SCTL_MICMODE_QUAD23 (6 << LPAIF_I2SCTL_MICMODE_SHIFT) +#define LPAIF_I2SCTL_MICMODE_6CH (7 << LPAIF_I2SCTL_MICMODE_SHIFT) +#define LPAIF_I2SCTL_MICMODE_8CH (8 << LPAIF_I2SCTL_MICMODE_SHIFT) + +#define LPAIF_I2SCTL_MIMONO_MASK GENMASK(3, 3) +#define LPAIF_I2SCTL_MICMONO_SHIFT 3 +#define LPAIF_I2SCTL_MICMONO_STEREO (0 << LPAIF_I2SCTL_MICMONO_SHIFT) +#define LPAIF_I2SCTL_MICMONO_MONO (1 << LPAIF_I2SCTL_MICMONO_SHIFT) + #define LPAIF_I2SCTL_WSSRC_MASK 0x0004 #define LPAIF_I2SCTL_WSSRC_SHIFT 2 #define LPAIF_I2SCTL_WSSRC_INTERNAL (0 << LPAIF_I2SCTL_WSSRC_SHIFT)