From patchwork Tue Mar 29 07:39:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Kulhavy X-Patchwork-Id: 8683501 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E67AB9F44D for ; Tue, 29 Mar 2016 07:46:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 119072015A for ; Tue, 29 Mar 2016 07:46:07 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 6FB4A20263 for ; Tue, 29 Mar 2016 07:46:05 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 80CC72619E9; Tue, 29 Mar 2016 09:46:04 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 63DBD261685; Tue, 29 Mar 2016 09:44:21 +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 79B9D262607; Tue, 29 Mar 2016 09:44:19 +0200 (CEST) Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by alsa0.perex.cz (Postfix) with ESMTP id 578AC265913 for ; Tue, 29 Mar 2016 09:41:18 +0200 (CEST) Received: by mail-wm0-f49.google.com with SMTP id 20so13288479wmh.1 for ; Tue, 29 Mar 2016 00:41:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=barix-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=ktAYpyGwPAZSy6ThCCGz0MxuTArLclsXIZ92QIowTi0=; b=Qh3mpKIpqSLipkrWimwiRPit2N6MNf+H8eZqO5DUVtPsCAAsEAjjabIjcq5NdFtUvL oldJ789SKpIJV/7KPFlZOxOe/WutqF12VsVxr8UB0CUg/F9kl5jBJEZLK1fQ7iRkI9Vf Dhgynpc1HRZ2qtS7EraE1MaOhctkRPMTzXrj9jZAJmiWn4Loz3ghfiVNoGnAz5wHwKXP Quq+1MruIdvwIQF0/l37PTXCmgGDhXiYZGnhSNxkvdmqHmPx4Pm8F8yODI3rjxGZ9Tuc 7SkMwPU2erNc6Yo5YCuhGfbbOh928+Sejj4jVOveYbNUVo+B8n5GzO5GJOxKx95BbQjw tU5g== 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; bh=ktAYpyGwPAZSy6ThCCGz0MxuTArLclsXIZ92QIowTi0=; b=TafTCUDDbdtEpwshl9pReU/GE72ECESYjs7lvygHnbb9PkxO5G7dxDYdtjCvK1S9Jd VZF/4GLGvFQp8E8orztHBQ8m9pkJoU29HwN3JqtF9TPX6PqTmcUYRxaY/aPX40t6cftZ zSWQy4TP9lRDv7zMGShZk4kWH/bes8GANJH2i0CQ0mcQmb1GnpqnPFwAWEGdWRxCEQ7E 0JQ8708mUD2rebcPlXaddCMW4mRGpfZ33cD/XtM6+9Sd+67fOEsAyhly6l0W3ImAPY0r 1cMHvTIXat/P5YXrR08wXww+2xMDy9cdgtlxgKauHBLFskMkayKsSa5VKx0pnw4ZgBXD A6Mg== X-Gm-Message-State: AD7BkJK0yMiL9s6cMoyxhMTdviYrBb9wUZ8TfoDqzXMNZMHi9e7H4ZALsHtqms7A2NkC64BP X-Received: by 10.28.143.9 with SMTP id r9mr14031860wmd.37.1459237277901; Tue, 29 Mar 2016 00:41:17 -0700 (PDT) Received: from petr-laptop.barix.com (dynamic-31-25-120-010.ftth.glattnet.ch. [31.25.120.10]) by smtp.googlemail.com with ESMTPSA id ls5sm27875768wjb.33.2016.03.29.00.41.16 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 29 Mar 2016 00:41:17 -0700 (PDT) From: Petr Kulhavy To: cernekee@chromium.org, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org Date: Tue, 29 Mar 2016 09:39:34 +0200 Message-Id: <1459237178-12920-1-git-send-email-petr@barix.com> X-Mailer: git-send-email 1.9.1 Cc: Petr Kulhavy , devicetree@vger.kernel.org, alsa-devel@alsa-project.org Subject: [alsa-devel] [PATCH v2 1/5] Sound: SOC: TAS571x: added missing register literals 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 The list of TAS571x registers was incomplete. Added the missing register definitions up to register 0x25 Signed-off-by: Petr Kulhavy Reviewed-by: Kevin Cernekee --- v1: v2: sound/soc/codecs/tas571x.c | 4 ++++ sound/soc/codecs/tas571x.h | 22 ++++++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/sound/soc/codecs/tas571x.c b/sound/soc/codecs/tas571x.c index 39307ad..346d3da 100644 --- a/sound/soc/codecs/tas571x.c +++ b/sound/soc/codecs/tas571x.c @@ -57,6 +57,10 @@ static int tas571x_register_size(struct tas571x_private *priv, unsigned int reg) case TAS571X_CH1_VOL_REG: case TAS571X_CH2_VOL_REG: return priv->chip->vol_reg_size; + case TAS571X_INPUT_MUX_REG: + case TAS571X_CH4_SRC_SELECT_REG: + case TAS571X_PWM_MUX_REG: + return 4; default: return 1; } diff --git a/sound/soc/codecs/tas571x.h b/sound/soc/codecs/tas571x.h index 0aee471..cf800c3 100644 --- a/sound/soc/codecs/tas571x.h +++ b/sound/soc/codecs/tas571x.h @@ -13,6 +13,10 @@ #define _TAS571X_H /* device registers */ +#define TAS571X_CLK_CTRL_REG 0x00 +#define TAS571X_DEV_ID_REG 0x01 +#define TAS571X_ERR_STATUS_REG 0x02 +#define TAS571X_SYS_CTRL_1_REG 0x03 #define TAS571X_SDI_REG 0x04 #define TAS571X_SDI_FMT_MASK 0x0f @@ -27,7 +31,25 @@ #define TAS571X_MVOL_REG 0x07 #define TAS571X_CH1_VOL_REG 0x08 #define TAS571X_CH2_VOL_REG 0x09 +#define TAS571X_CH3_VOL_REG 0x0a +#define TAS571X_VOL_CFG_REG 0x0e +#define TAS571X_MODULATION_LIMIT_REG 0x10 +#define TAS571X_IC_DELAY_CH1_REG 0x11 +#define TAS571X_IC_DELAY_CH2_REG 0x12 +#define TAS571X_IC_DELAY_CH3_REG 0x13 +#define TAS571X_IC_DELAY_CH4_REG 0x14 +#define TAS571X_PWM_CH_SDN_GROUP_REG 0x19 /* N/A on TAS5717, TAS5719 */ +#define TAS571X_PWM_CH1_SDN_MASK (1<<0) +#define TAS571X_PWM_CH2_SDN_SHIFT (1<<1) +#define TAS571X_PWM_CH3_SDN_SHIFT (1<<2) +#define TAS571X_PWM_CH4_SDN_SHIFT (1<<3) + +#define TAS571X_START_STOP_PERIOD_REG 0x1a #define TAS571X_OSC_TRIM_REG 0x1b +#define TAS571X_BKND_ERR_REG 0x1c +#define TAS571X_INPUT_MUX_REG 0x20 +#define TAS571X_CH4_SRC_SELECT_REG 0x21 +#define TAS571X_PWM_MUX_REG 0x25 #endif /* _TAS571X_H */