summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVinod Subbarayalu <vsubbarayalu@nvidia.com>2013-08-01 16:03:53 -0700
committerRiham Haidar <rhaidar@nvidia.com>2013-08-14 18:57:26 -0700
commitc594b04883ec9528114188c70bacdbcf4df23380 (patch)
tree8a337eba62d339b63a07e09bf92c0c9b230e3254 /include
parent6d41daab2b4d6ede2e16a0b0354631e8a6648d8b (diff)
audio:Support Tfa9887 at different samplerate
Configure Tfa9887 at 16k for voip+nvoice usecase. Add missing copyright info. Change-Id: I080e874510255f1b2a4bf7d8045ef8fa6e2faadc Signed-off-by: Vinod Subbarayalu <vsubbarayalu@nvidia.com> Reviewed-on: http://git-master/r/257042 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Scott Peterson <speterson@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/tfa9887.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/linux/tfa9887.h b/include/linux/tfa9887.h
index baa00ce20079..4633b32a3b68 100644
--- a/include/linux/tfa9887.h
+++ b/include/linux/tfa9887.h
@@ -1,3 +1,18 @@
+/*
+ * include/linux/tfa9887.h
+ *
+ * Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved.
+ *
+ * This software is licensed under the terms of the GNU General Public
+ * License version 2, as published by the Free Software Foundation, and
+ * may be copied, distributed, and modified under those terms.
+ *
+ * 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 __LINUX_TFA9887_H
#define __LINUX_TFA9887_H
@@ -73,6 +88,11 @@ int checkMTPEX(struct tfa9887_priv *tfa9887);
void setOtc(struct tfa9887_priv *tfa9887, unsigned short otcOn);
+int Tfa9887_setSampleRate(int sRate);
+
+int setSampleRate(struct tfa9887_priv *tfa9887, int sRate);
+
+
typedef enum Tfa9887_AmpInputSel {
Tfa9887_AmpInputSel_I2SLeft,
Tfa9887_AmpInputSel_I2SRight,