blob: c00461b84bf0093c4c16da28e8c9d1c26d837646 [file] [log] [blame]
Asish Bhattacharya8e2277f2017-07-20 18:31:55 +05301/*
2 * Copyright (c) 2012-2014, 2017 The Linux Foundation. All rights reserved.
Asish Bhattacharya8e2277f2017-07-20 18:31:55 +05303 * 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 Kasam605b42f2017-08-01 22:02:15 +053017#include <dsp/apr_audio-v2.h>
Asish Bhattacharya8e2277f2017-07-20 18:31:55 +053018
19struct param_outband;
20
21#ifdef CONFIG_DTS_SRS_TM
22
23union srs_trumedia_params_u {
24 struct srs_trumedia_params srs_params;
25 __u16 raw_params[1];
26};
27
28void msm_dts_srs_tm_ion_memmap(struct param_outband *po_);
29void msm_dts_srs_tm_init(int port_id, int copp_idx);
30void msm_dts_srs_tm_deinit(int port_id);
31void msm_dts_srs_tm_add_controls(struct snd_soc_platform *platform);
32#else
33static inline void msm_dts_srs_tm_ion_memmap(struct param_outband *po_) { }
34static inline void msm_dts_srs_tm_init(int port_id, int copp_idx) { }
35static inline void msm_dts_srs_tm_deinit(int port_id) { }
36static inline void msm_dts_srs_tm_add_controls(
37 struct snd_soc_platform *platform) { }
38
39#endif
40
41#endif