blob: 8a0b967003292bd9b863bd5c2b1661f51785a803 [file] [log] [blame]
Asish Bhattacharya8e2277f2017-07-20 18:31:55 +05301/*
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
21int msm_pcm_routing_hwdep_new(struct snd_soc_pcm_runtime *runtime,
22 struct msm_pcm_routing_bdai_data *msm_bedais);
23void msm_pcm_routing_hwdep_free(struct snd_pcm *pcm);
24#else
25static 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
31static inline void msm_pcm_routing_hwdep_free(struct snd_pcm *pcm)
32{
33}
34#endif
35#endif