Laxminath Kasam | fb36dc1 | 2016-11-28 23:04:47 +0530 | [diff] [blame] | 1 | /* Copyright (c) 2015-2017, The Linux Foundation. All rights reserved. |
Banajit Goswami | 0530e2f | 2016-12-09 21:34:37 -0800 | [diff] [blame] | 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | */ |
| 12 | |
Neeraj Upadhyay | 4993442 | 2016-12-27 19:03:35 +0530 | [diff] [blame] | 13 | #ifndef __SDM660_EXTERNAL |
| 14 | #define __SDM660_EXTERNAL |
Banajit Goswami | 0530e2f | 2016-12-09 21:34:37 -0800 | [diff] [blame] | 15 | |
| 16 | int msm_snd_hw_params(struct snd_pcm_substream *substream, |
| 17 | struct snd_pcm_hw_params *params); |
| 18 | int msm_ext_slimbus_2_hw_params(struct snd_pcm_substream *substream, |
| 19 | struct snd_pcm_hw_params *params); |
| 20 | int msm_btsco_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd, |
| 21 | struct snd_pcm_hw_params *params); |
| 22 | int msm_proxy_rx_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd, |
| 23 | struct snd_pcm_hw_params *params); |
| 24 | int msm_proxy_tx_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd, |
| 25 | struct snd_pcm_hw_params *params); |
| 26 | int msm_audrx_init(struct snd_soc_pcm_runtime *rtd); |
| 27 | int msm_snd_cpe_hw_params(struct snd_pcm_substream *substream, |
| 28 | struct snd_pcm_hw_params *params); |
| 29 | struct snd_soc_card *populate_snd_card_dailinks(struct device *dev, |
| 30 | int snd_card_val); |
| 31 | int msm_ext_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd, |
| 32 | struct snd_pcm_hw_params *params); |
| 33 | #ifdef CONFIG_SND_SOC_EXT_CODEC |
| 34 | int msm_ext_cdc_init(struct platform_device *, struct msm_asoc_mach_data *, |
| 35 | struct snd_soc_card **, struct wcd_mbhc_config *); |
Laxminath Kasam | 54dc88a | 2016-12-22 19:44:52 +0530 | [diff] [blame] | 36 | void msm_ext_register_audio_notifier(struct platform_device *pdev); |
Laxminath Kasam | c1a8f7c | 2017-01-23 13:33:31 +0530 | [diff] [blame] | 37 | void msm_ext_cdc_deinit(struct msm_asoc_mach_data *pdata); |
Banajit Goswami | 0530e2f | 2016-12-09 21:34:37 -0800 | [diff] [blame] | 38 | #else |
| 39 | inline int msm_ext_cdc_init(struct platform_device *pdev, |
| 40 | struct msm_asoc_mach_data *pdata, |
| 41 | struct snd_soc_card **card, |
| 42 | struct wcd_mbhc_config *wcd_mbhc_cfg_ptr1) |
| 43 | { |
| 44 | return 0; |
| 45 | } |
| 46 | |
Laxminath Kasam | 54dc88a | 2016-12-22 19:44:52 +0530 | [diff] [blame] | 47 | inline void msm_ext_register_audio_notifier(struct platform_device *pdev) |
Banajit Goswami | 0530e2f | 2016-12-09 21:34:37 -0800 | [diff] [blame] | 48 | { |
| 49 | } |
Laxminath Kasam | fb36dc1 | 2016-11-28 23:04:47 +0530 | [diff] [blame] | 50 | inline void msm_ext_cdc_deinit(void) |
| 51 | { |
| 52 | } |
Banajit Goswami | 0530e2f | 2016-12-09 21:34:37 -0800 | [diff] [blame] | 53 | #endif |
| 54 | #endif |