mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
remove redundant code and pointers to handle sdw_stream_runtime by making use of qcom_snd_sdw_get_stream(). This removes need of machine specific shutdown and hw_params sdw callbacks and also need to store sdw_stream_runtime pointers in machine drivers. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com> Tested-by: Steev Klimaszewski <threeway@gmail.com> # Thinkpad X13s Link: https://patch.msgid.link/20251022143349.1081513-3-srinivas.kandagatla@oss.qualcomm.com Signed-off-by: Mark Brown <broonie@kernel.org>
17 lines
596 B
C
17 lines
596 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);
|
|
void qcom_snd_sdw_shutdown(struct snd_pcm_substream *substream);
|
|
int qcom_snd_sdw_prepare(struct snd_pcm_substream *substream,
|
|
bool *stream_prepared);
|
|
struct sdw_stream_runtime *qcom_snd_sdw_get_stream(struct snd_pcm_substream *stream);
|
|
int qcom_snd_sdw_hw_free(struct snd_pcm_substream *substream,
|
|
bool *stream_prepared);
|
|
#endif
|