xref: /linux/sound/soc/qcom/sdw.h (revision 76f623d2d4283cc36a9c8a5b585df74638f1efa5)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 // Copyright (c) 2018, The Linux Foundation. All rights reserved.
3 
4 #ifndef __QCOM_SND_SDW_H__
5 #define __QCOM_SND_SDW_H__
6 
7 #include <linux/soundwire/sdw.h>
8 
9 int qcom_snd_sdw_startup(struct snd_pcm_substream *substream);
10 int qcom_snd_sdw_prepare(struct snd_pcm_substream *substream,
11 			 struct sdw_stream_runtime *runtime,
12 			 bool *stream_prepared);
13 int qcom_snd_sdw_hw_params(struct snd_pcm_substream *substream,
14 			   struct snd_pcm_hw_params *params,
15 			   struct sdw_stream_runtime **psruntime);
16 int qcom_snd_sdw_hw_free(struct snd_pcm_substream *substream,
17 			 struct sdw_stream_runtime *sruntime,
18 			 bool *stream_prepared);
19 #endif
20