From: Piotr Maziarz Date: Mon, 31 Aug 2020 09:09:01 +0000 (+0200) Subject: topology: decode: Print sig_bits field in PCM capabilities section X-Git-Tag: v1.2.4~27 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=d93b3462996a20951bc0ca753d0304bbbb9850fc;p=alsa-lib.git topology: decode: Print sig_bits field in PCM capabilities section Not printing this field makes data loss while converting from binary to standard ALSA configuration file. Signed-off-by: Piotr Maziarz Reviewed-by: Cezary Rojewski Reviewed-by: Amadeusz Sławiński Reviewed-by: Pierre-Louis Bossart Signed-off-by: Jaroslav Kysela --- diff --git a/src/topology/pcm.c b/src/topology/pcm.c index db401145..49c5eaba 100644 --- a/src/topology/pcm.c +++ b/src/topology/pcm.c @@ -604,6 +604,9 @@ int tplg_save_stream_caps(snd_tplg_t *tplg ATTRIBUTE_UNUSED, if (err >= 0 && sc->buffer_size_max) err = tplg_save_printf(dst, pfx, "\tbuffer_size_max %u\n", sc->buffer_size_max); + if (err >= 0 && sc->sig_bits) + err = tplg_save_printf(dst, pfx, "\tsig_bits %u\n", + sc->sig_bits); if (err >= 0) err = tplg_save_printf(dst, pfx, "}\n"); return err;