2 * tc358749x.h TC358749XBG ALSA SoC audio codec driver
4 * Copyright (c) 2016 Fuzhou Rockchip Electronics Co., Ltd
5 * Author: Roy <luoxiaotan@rock-chips.com>
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms and conditions of the GNU General Public License,
9 * version 2, as published by the Free Software Foundation.
11 * This program is distributed in the hope it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.*
23 #define TC358749X_FORCE_MUTE 0x8600
25 #define FORCE_DMUTE_MASK BIT(0)
26 #define FORCE_AMUTE_MASK BIT(4)
28 #define TC358749X_FS_SET 0x8621
29 #define FS_SET_MASK 0xf
40 struct tc358749x_priv {
41 struct regmap *regmap;
42 struct i2c_client *client;
44 struct gpio_desc *gpio_power;
45 struct gpio_desc *gpio_power18;
46 struct gpio_desc *gpio_power33;
47 struct gpio_desc *gpio_csi_ctl;
48 struct gpio_desc *gpio_reset;
49 struct gpio_desc *gpio_stanby;
50 struct gpio_desc *gpio_int;