hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/sound/core/pcm_local.h
....@@ -1,9 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * pcm_local.h - a local header file for snd-pcm module.
34 *
45 * Copyright (c) Takashi Sakamoto <o-takashi@sakamocchi.jp>
5
- *
6
- * Licensed under the terms of the GNU General Public License, version 2.
76 */
87
98 #ifndef __SOUND_CORE_PCM_LOCAL_H
....@@ -20,9 +19,6 @@
2019 unsigned int k, struct snd_interval *c);
2120 void snd_interval_mulkdiv(const struct snd_interval *a, unsigned int k,
2221 const struct snd_interval *b, struct snd_interval *c);
23
-
24
-int snd_pcm_hw_constraints_init(struct snd_pcm_substream *substream);
25
-int snd_pcm_hw_constraints_complete(struct snd_pcm_substream *substream);
2622
2723 int snd_pcm_hw_constraint_mask(struct snd_pcm_runtime *runtime,
2824 snd_pcm_hw_param_t var, u_int32_t mask);
....@@ -66,5 +62,14 @@
6662 #endif
6763
6864 void __snd_pcm_xrun(struct snd_pcm_substream *substream);
65
+void snd_pcm_group_init(struct snd_pcm_group *group);
66
+void snd_pcm_sync_stop(struct snd_pcm_substream *substream, bool sync_irq);
67
+
68
+#ifdef CONFIG_SND_DMA_SGBUF
69
+struct page *snd_pcm_sgbuf_ops_page(struct snd_pcm_substream *substream,
70
+ unsigned long offset);
71
+#endif
72
+
73
+#define PCM_RUNTIME_CHECK(sub) snd_BUG_ON(!(sub) || !(sub)->runtime)
6974
7075 #endif /* __SOUND_CORE_PCM_LOCAL_H */