Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9b37ac95 authored by Tanya Dixit's avatar Tanya Dixit
Browse files

asoc: codecs: Tanggu TX RX changes



Tanggu codec driver changes for RX and TX
widgets, dapm sequences and routes update.

CRs-Fixed: 2281591
Change-Id: I769255e80c8569f7d954a5e5e5c62b8048d62b0b
Signed-off-by: default avatarTanya Dixit <tdixit@codeaurora.org>
parent 759426ec
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -52,6 +52,8 @@ COMMON_INC := -I$(AUDIO_ROOT)/$(COMMON_DIR)
# for WCD937X Codec
# for WCD937X Codec
ifdef CONFIG_SND_SOC_WCD937X
ifdef CONFIG_SND_SOC_WCD937X
	WCD937X_OBJS += wcd937x.o
	WCD937X_OBJS += wcd937x.o
	WCD937X_OBJS += wcd937x-regmap.o
	WCD937X_OBJS += wcd937x-tables.o
endif
endif


ifdef CONFIG_SND_SOC_WCD937X_SLAVE
ifdef CONFIG_SND_SOC_WCD937X_SLAVE
+58 −0
Original line number Original line Diff line number Diff line
/* Copyright (c) 2018, The Linux Foundation. All rights reserved.

 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * only version 2 as published by the Free Software Foundation.

 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#ifndef _WCD937X_INTERNAL_H
#define _WCD937X_INTERNAL_H

#include "../wcd-mbhc-v2.h"

#define WCD937X_MAX_MICBIAS 3

extern struct regmap_config wcd937x_regmap_config;

struct wcd937x_priv {
	struct device *dev;

	int variant;
	struct snd_soc_codec *codec;
	struct device_node *rst_np;
	struct regmap *regmap;

	struct swr_device *rx_swr_dev;
	struct swr_device *tx_swr_dev;

	s32 micb_ref[WCD937X_MAX_MICBIAS];
	s32 pullup_ref[WCD937X_MAX_MICBIAS];

	struct fw_info *fw_data;
	struct device_node *wcd_rst_np;

	s32 dmic_0_1_clk_cnt;
	s32 dmic_2_3_clk_cnt;
	s32 dmic_4_5_clk_cnt;
	/* mbhc module */
	struct wcd_mbhc mbhc;
	struct blocking_notifier_head notifier;
	struct mutex micb_lock;

	u32 hph_mode;

	u32 rx_clk_cnt;
};

struct wcd937x_pdata {
	struct device_node *rst_np;
	struct device_node *rx_slave;
	struct device_node *tx_slave;
};

#endif
+446 −0

File added.

Preview size limit exceeded, changes collapsed.

+462 −0

File added.

Preview size limit exceeded, changes collapsed.

+432 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading