mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 16:29:59 +00:00
![Maxime Ripard](/assets/img/avatar_default.png)
In some situations, like a codec probe, we need to provide an IEC status default but don't have access to the sampling rate and width yet since no stream has been configured yet. Each and every driver has its own default, whereas the core iec958 code also has some buried in the snd_pcm_create_iec958_consumer functions. Let's split these functions in two to provide a default that doesn't rely on the sampling rate and width, and another function to fill them when available. Signed-off-by: Maxime Ripard <maxime@cerno.tech> Reviewed-by: Takashi Iwai <tiwai@suse.de> Link: https://lore.kernel.org/r/20210525132354.297468-3-maxime@cerno.tech
20 lines
597 B
C
20 lines
597 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __SOUND_PCM_IEC958_H
|
|
#define __SOUND_PCM_IEC958_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
int snd_pcm_create_iec958_consumer_default(u8 *cs, size_t len);
|
|
|
|
int snd_pcm_fill_iec958_consumer(struct snd_pcm_runtime *runtime, u8 *cs,
|
|
size_t len);
|
|
|
|
int snd_pcm_fill_iec958_consumer_hw_params(struct snd_pcm_hw_params *params,
|
|
u8 *cs, size_t len);
|
|
|
|
int snd_pcm_create_iec958_consumer(struct snd_pcm_runtime *runtime, u8 *cs,
|
|
size_t len);
|
|
|
|
int snd_pcm_create_iec958_consumer_hw_params(struct snd_pcm_hw_params *params,
|
|
u8 *cs, size_t len);
|
|
#endif
|