Asish Bhattacharya | 8e2277f | 2017-07-20 18:31:55 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2014-2015, 2017 The Linux Foundation. All rights reserved. |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 and |
| 6 | * only version 2 as published by the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | */ |
| 13 | |
| 14 | #ifndef _MSM_PCM_ROUTING_DEVDEP_H_ |
| 15 | #define _MSM_PCM_ROUTING_DEVDEP_H_ |
| 16 | |
| 17 | #include <sound/soc.h> |
| 18 | #include "msm-pcm-routing-v2.h" |
| 19 | |
| 20 | #ifdef CONFIG_SND_HWDEP |
| 21 | int msm_pcm_routing_hwdep_new(struct snd_soc_pcm_runtime *runtime, |
| 22 | struct msm_pcm_routing_bdai_data *msm_bedais); |
| 23 | void msm_pcm_routing_hwdep_free(struct snd_pcm *pcm); |
| 24 | #else |
| 25 | static inline int msm_pcm_routing_hwdep_new(struct snd_soc_pcm_runtime *runtime, |
| 26 | struct msm_pcm_routing_bdai_data *msm_bedais) |
| 27 | { |
| 28 | return 0; |
| 29 | } |
| 30 | |
| 31 | static inline void msm_pcm_routing_hwdep_free(struct snd_pcm *pcm) |
| 32 | { |
| 33 | } |
| 34 | #endif |
| 35 | #endif |