mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-10-31 18:09:19 +00:00
943d07fb4c
Update slimbus_1 tx dai link to use tasha_tx3 as the codec dai. Slimbus_1 tx is used as backend dai link in echo cancellation usecases, for vbat monitor feature on tasha. Also, added support to configure slimbus_1 tx backend hw params. Change-Id: I5b711b088a4bb3c1e58eb009977e8958b11ece0a Signed-off-by: Venkata Narendra Kumar Gutta <vgutta@codeaurora.org>
75 lines
3.2 KiB
C
75 lines
3.2 KiB
C
/* Copyright (c) 2015, 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 __MSM8952_SLIMBUS_AUDIO
|
|
#define __MSM8952_SLIMBUS_AUDIO
|
|
|
|
enum codecs {
|
|
TOMTOM_CODEC,
|
|
TASHA_CODEC,
|
|
MAX_CODECS,
|
|
};
|
|
|
|
struct ext_intf_cfg {
|
|
atomic_t quat_mi2s_clk_ref;
|
|
atomic_t quin_mi2s_clk_ref;
|
|
atomic_t auxpcm_mi2s_clk_ref;
|
|
};
|
|
|
|
int msm_slim_0_rx_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
|
|
struct snd_pcm_hw_params *params);
|
|
int msm_slim_0_tx_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
|
|
struct snd_pcm_hw_params *params);
|
|
int msm_slim_1_tx_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
|
|
struct snd_pcm_hw_params *params);
|
|
int msm_slim_4_tx_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
|
|
struct snd_pcm_hw_params *params);
|
|
int msm_slim_5_rx_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
|
|
struct snd_pcm_hw_params *params);
|
|
int msm_slim_5_tx_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
|
|
struct snd_pcm_hw_params *params);
|
|
int msm_snd_hw_params(struct snd_pcm_substream *substream,
|
|
struct snd_pcm_hw_params *params);
|
|
int msm8952_slimbus_2_hw_params(struct snd_pcm_substream *substream,
|
|
struct snd_pcm_hw_params *params);
|
|
int msm_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
|
|
struct snd_pcm_hw_params *params);
|
|
int msm_quin_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
|
|
struct snd_pcm_hw_params *params);
|
|
int msm_btsco_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
|
|
struct snd_pcm_hw_params *params);
|
|
int msm_proxy_rx_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
|
|
struct snd_pcm_hw_params *params);
|
|
int msm_proxy_tx_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
|
|
struct snd_pcm_hw_params *params);
|
|
int msm_audrx_init(struct snd_soc_pcm_runtime *rtd);
|
|
int msm_mi2s_snd_hw_params(struct snd_pcm_substream *substream,
|
|
struct snd_pcm_hw_params *params);
|
|
int msm_snd_cpe_hw_params(struct snd_pcm_substream *substream,
|
|
struct snd_pcm_hw_params *params);
|
|
int msm_quat_mi2s_snd_startup(struct snd_pcm_substream *substream);
|
|
void msm_quat_mi2s_snd_shutdown(struct snd_pcm_substream *substream);
|
|
|
|
int msm_quin_mi2s_snd_startup(struct snd_pcm_substream *substream);
|
|
void msm_quin_mi2s_snd_shutdown(struct snd_pcm_substream *substream);
|
|
|
|
int msm_auxpcm_be_params_fixup(struct snd_soc_pcm_runtime *rtd,
|
|
struct snd_pcm_hw_params *params);
|
|
int msm_prim_auxpcm_startup(struct snd_pcm_substream *substream);
|
|
void msm_prim_auxpcm_shutdown(struct snd_pcm_substream *substream);
|
|
|
|
struct snd_soc_card *populate_snd_card_dailinks(struct device *dev);
|
|
int msm_slim_4_tx_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
|
|
struct snd_pcm_hw_params *params);
|
|
int msm895x_wsa881x_init(struct snd_soc_dapm_context *dapm);
|
|
void msm895x_free_auxdev_mem(struct platform_device *pdev);
|
|
#endif
|