mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-07 13:30:07 -05:00
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 <piotrx.maziarz@linux.intel.com> Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com> Reviewed-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
acbb0e3b17
commit
d93b346299
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue