summaryrefslogtreecommitdiff
path: root/asoc/codecs/tas256x/os_layer/inc/tas256x-codec.h
diff options
context:
space:
mode:
authorvincenttew <vincenttew@google.com>2020-07-06 23:42:22 +0800
committervincenttew <vincenttew@google.com>2020-08-19 10:06:06 +0800
commita8d9a3c1f37d5930a67311965795e8b20bc24eee (patch)
treefa3cc4c590ef42d4218e8f4869160298c068b921 /asoc/codecs/tas256x/os_layer/inc/tas256x-codec.h
parent068e11564671d6bd60aab12d0708c0453ffa2503 (diff)
downloadmsm-extra-a8d9a3c1f37d5930a67311965795e8b20bc24eee.tar.gz
asoc: codecs: tas256x: upload tas 1.3.6 driver
Release Content as below : 1. Driver source code driver version 1.3.1 ~ 5 2. Release Note for 1.3.1 ~ 5 3. Driver Verification Report 4. Updated Mixer Control document 5. Checkpatch Tool Report. 6. Updated Driver Integration Guidelines 7. fix kernel4.19 build break 8. fix symbol not found build break after enable GKI 9. fix TDM config not correct after enable TX port New in this Release - Main Features supported for this Project. 1.3.1: o TDM 4 Channel Support for Rx & Tx Channels. o Support for Kernel 4.19 o Rx Slot mapping – can select any channel on TDM line. o Amp Output Level – Channel Gain of the device o Interrupt Issue fixed where , mixer control values were set to default values. · Checkpatch Errors Fixed. · Directory structure changes to separate source code with Tools. · Tools Added: o Register read/write/dump Utility has been added. o Customer specific customization can be done using configurable bin file. o Regression suite for Driver verification ( under development) o IV sense extraction Tool for IV sense and Vbat packed on the same channel. 1.3.5: - snd_soc_dai_set_fmtconfiguration support is available at machine driver as well in DTS File. - If snd_soc_dai_set_fmtconfiguration is added in Machine driver, there is no need to set it in DTS file. - If snd_soc_dai_set_fmtconfiguration has been done from DTS file (rx_frame_start, tx/rx_offset, tx/rx_edge) parameters should be set correctly in DTS as per TAS2562_TDM_configuration.pptx document shared with release. - Use channels in hw_params to differentiate between TDM and I2S instead of snd_soc_dai_set_tdm_slot, thus eliminating the need to modify machine driver. o Channels > 2 -> TDM o Channels <= 2 -> I2S - Driver Only Build has been done to support GKI o configthat depend to driver module it need to replace "#ifdef" to "#if IS_ENABLED()", to prevent function fail after enable GKI. o TAS driver modularization support added for driver only Build, below MACRO to be enabled for driver only build CONFIG_SND_SOC_TAS256X=m CONFIG_TAS256X_MISC=m CONFIG_PLATFORM_QCOM=m CONFIG_TAS256X_CODEC CONFIG_TAS256X_REGMAP o some symbol not found from others module has been Fixed o Coding style issue has been fixed. - Driver verification regression suite has been added. - Receiver Mode settings can be done using Mixer Control Commands and should be Enabled only during receiver mode and should be disabled by default when not in receiver mode application. 1.3.6: - Fixed circular Dependency Between q6afe module and snd_soc_tas256x module. - Fixed comment style from // to /**/ - Added Copy Right Information - Replaced #ifdef with #if IS_ENABLED() while checking configuration macros Bug: 160232737 Bug: 164335507 Signed-off-by: vincenttew <vincenttew@google.com> Change-Id: I6f339b33cffa02c5af7cd721e5acb09e3be9c3ae Signed-off-by: vincenttew <vincenttew@google.com>
Diffstat (limited to 'asoc/codecs/tas256x/os_layer/inc/tas256x-codec.h')
-rw-r--r--asoc/codecs/tas256x/os_layer/inc/tas256x-codec.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/asoc/codecs/tas256x/os_layer/inc/tas256x-codec.h b/asoc/codecs/tas256x/os_layer/inc/tas256x-codec.h
new file mode 100644
index 00000000..e8116b96
--- /dev/null
+++ b/asoc/codecs/tas256x/os_layer/inc/tas256x-codec.h
@@ -0,0 +1,30 @@
+/*
+ * =============================================================================
+ * Copyright (c) 2016 Texas Instruments Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License as published by the Free Software
+ * Foundation; version 2.
+ *
+ * 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.
+ *
+ * File:
+ * tas256x-codec.h
+ *
+ * Description:
+ * header file for tas256x-codec.c
+ *
+ * =============================================================================
+ */
+
+#ifndef _TAS256X_CODEC_H
+#define _TAS256X_CODEC_H
+
+#include "physical_layer/inc/tas256x.h"
+
+int tas256x_register_codec(struct tas256x_priv *p_tas256x);
+int tas256x_deregister_codec(struct tas256x_priv *p_tas256x);
+
+#endif /* _TAS256X_CODEC_H */