| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * pcm_local.h - a local header file for snd-pcm module. |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (c) Takashi Sakamoto <o-takashi@sakamocchi.jp> |
|---|
| 5 | | - * |
|---|
| 6 | | - * Licensed under the terms of the GNU General Public License, version 2. |
|---|
| 7 | 6 | */ |
|---|
| 8 | 7 | |
|---|
| 9 | 8 | #ifndef __SOUND_CORE_PCM_LOCAL_H |
|---|
| .. | .. |
|---|
| 20 | 19 | unsigned int k, struct snd_interval *c); |
|---|
| 21 | 20 | void snd_interval_mulkdiv(const struct snd_interval *a, unsigned int k, |
|---|
| 22 | 21 | 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); |
|---|
| 26 | 22 | |
|---|
| 27 | 23 | int snd_pcm_hw_constraint_mask(struct snd_pcm_runtime *runtime, |
|---|
| 28 | 24 | snd_pcm_hw_param_t var, u_int32_t mask); |
|---|
| .. | .. |
|---|
| 66 | 62 | #endif |
|---|
| 67 | 63 | |
|---|
| 68 | 64 | 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) |
|---|
| 69 | 74 | |
|---|
| 70 | 75 | #endif /* __SOUND_CORE_PCM_LOCAL_H */ |
|---|