mirror of
https://github.com/torvalds/linux.git
synced 2024-12-02 00:51:44 +00:00
d32bac9cb0
Newer Qualcomm SoC soundcards will need to allocate Soundwire stream runtime in their startup op. The code will be exactly the same for all soundcards, so add a helper for that. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20231128165638.757665-1-krzysztof.kozlowski@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
20 lines
676 B
C
20 lines
676 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
// Copyright (c) 2018, The Linux Foundation. All rights reserved.
|
|
|
|
#ifndef __QCOM_SND_SDW_H__
|
|
#define __QCOM_SND_SDW_H__
|
|
|
|
#include <linux/soundwire/sdw.h>
|
|
|
|
int qcom_snd_sdw_startup(struct snd_pcm_substream *substream);
|
|
int qcom_snd_sdw_prepare(struct snd_pcm_substream *substream,
|
|
struct sdw_stream_runtime *runtime,
|
|
bool *stream_prepared);
|
|
int qcom_snd_sdw_hw_params(struct snd_pcm_substream *substream,
|
|
struct snd_pcm_hw_params *params,
|
|
struct sdw_stream_runtime **psruntime);
|
|
int qcom_snd_sdw_hw_free(struct snd_pcm_substream *substream,
|
|
struct sdw_stream_runtime *sruntime,
|
|
bool *stream_prepared);
|
|
#endif
|