1 /* SPDX-License-Identifier: GPL-2.0 */ 2 // Copyright (c) 2018, The Linux Foundation. All rights reserved. 3 4 #ifndef __QCOM_SND_COMMON_H__ 5 #define __QCOM_SND_COMMON_H__ 6 7 #include <sound/soc.h> 8 #include <linux/soundwire/sdw.h> 9 10 int qcom_snd_parse_of(struct snd_soc_card *card); 11 int qcom_snd_wcd_jack_setup(struct snd_soc_pcm_runtime *rtd, 12 struct snd_soc_jack *jack, bool *jack_setup); 13 14 int qcom_snd_sdw_prepare(struct snd_pcm_substream *substream, 15 struct sdw_stream_runtime *runtime, 16 bool *stream_prepared); 17 int qcom_snd_sdw_hw_params(struct snd_pcm_substream *substream, 18 struct snd_pcm_hw_params *params, 19 struct sdw_stream_runtime **psruntime); 20 int qcom_snd_sdw_hw_free(struct snd_pcm_substream *substream, 21 struct sdw_stream_runtime *sruntime, 22 bool *stream_prepared); 23 #endif 24