Asish Bhattacharya | 8e2277f | 2017-07-20 18:31:55 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2012-2014, 2017 The Linux Foundation. All rights reserved. |
Asish Bhattacharya | 8e2277f | 2017-07-20 18:31:55 +0530 | [diff] [blame] | 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 | |
| 13 | #ifndef _MSM_DTS_SRS_TM_CONFIG_H_ |
| 14 | #define _MSM_DTS_SRS_TM_CONFIG_H_ |
| 15 | |
| 16 | #include <sound/soc.h> |
Laxminath Kasam | 605b42f | 2017-08-01 22:02:15 +0530 | [diff] [blame] | 17 | #include <dsp/apr_audio-v2.h> |
Asish Bhattacharya | 8e2277f | 2017-07-20 18:31:55 +0530 | [diff] [blame] | 18 | |
| 19 | struct param_outband; |
| 20 | |
| 21 | #ifdef CONFIG_DTS_SRS_TM |
| 22 | |
| 23 | union srs_trumedia_params_u { |
| 24 | struct srs_trumedia_params srs_params; |
| 25 | __u16 raw_params[1]; |
| 26 | }; |
| 27 | |
| 28 | void msm_dts_srs_tm_ion_memmap(struct param_outband *po_); |
| 29 | void msm_dts_srs_tm_init(int port_id, int copp_idx); |
| 30 | void msm_dts_srs_tm_deinit(int port_id); |
| 31 | void msm_dts_srs_tm_add_controls(struct snd_soc_platform *platform); |
| 32 | #else |
| 33 | static inline void msm_dts_srs_tm_ion_memmap(struct param_outband *po_) { } |
| 34 | static inline void msm_dts_srs_tm_init(int port_id, int copp_idx) { } |
| 35 | static inline void msm_dts_srs_tm_deinit(int port_id) { } |
| 36 | static inline void msm_dts_srs_tm_add_controls( |
| 37 | struct snd_soc_platform *platform) { } |
| 38 | |
| 39 | #endif |
| 40 | |
| 41 | #endif |