mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
topology: Parse sig_bits of stream caps
Add sig_bits to stream caps template of C API and parse it. Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
6945156a67
commit
f94ed5cf75
2 changed files with 2 additions and 0 deletions
|
|
@ -879,6 +879,7 @@ struct snd_tplg_stream_caps_template {
|
|||
unsigned int period_size_max; /*!< max period size bytes */
|
||||
unsigned int buffer_size_min; /*!< min buffer size bytes */
|
||||
unsigned int buffer_size_max; /*!< max buffer size bytes */
|
||||
unsigned int sig_bits; /*!< number of bits of content */
|
||||
};
|
||||
|
||||
/** \struct snd_tplg_pcm_template
|
||||
|
|
|
|||
|
|
@ -572,6 +572,7 @@ static void tplg_add_stream_caps(struct snd_soc_tplg_stream_caps *caps,
|
|||
caps->period_size_max = caps_tpl->period_size_max;
|
||||
caps->buffer_size_min = caps_tpl->buffer_size_min;
|
||||
caps->buffer_size_max = caps_tpl->buffer_size_max;
|
||||
caps->sig_bits = caps_tpl->sig_bits;
|
||||
}
|
||||
|
||||
int tplg_add_pcm_object(snd_tplg_t *tplg, snd_tplg_obj_template_t *t)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue