[alsa-devel] [PATCH 2/6] topology: Parse sig_bits of stream caps
mengdong.lin at linux.intel.com
mengdong.lin at linux.intel.com
Fri Nov 4 00:06:53 CET 2016
From: Mengdong Lin <mengdong.lin at linux.intel.com>
Add sig_bits to stream caps template of C API and parse it.
Signed-off-by: Mengdong Lin <mengdong.lin at linux.intel.com>
diff --git a/include/topology.h b/include/topology.h
index 0675b52..ccd8401 100644
--- a/include/topology.h
+++ b/include/topology.h
@@ -848,6 +848,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
diff --git a/src/topology/pcm.c b/src/topology/pcm.c
index 0a90cb9..6fdf047 100644
--- a/src/topology/pcm.c
+++ b/src/topology/pcm.c
@@ -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)
--
2.7.4
More information about the Alsa-devel
mailing list