]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: iec958: set channel status bits according to rate and format
authorMatthias Reichl <hias@horus.com>
Mon, 13 Jul 2020 21:17:04 +0000 (23:17 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 14 Jul 2020 10:52:07 +0000 (12:52 +0200)
commit36e4b296d2f4ad0034f7028256c64b8af003068d
tree24a179fe336157d02899dd1e14991aa1a31600e9
parent8defc5c2a65345a1aee613ebf0999d203c2e0433
pcm: iec958: set channel status bits according to rate and format

This mimics snd_pcm_create_iec958_consumer in the kernel.

The rate and wordlength bits will only be modified if they are
set to "not indicated", which is now the default if no status
option is used.

This allows applications to override parameters determined from
the stream or implement channel status bits extensions without
needing to change pcm_iec958 code.

Signed-off-by: Matthias Reichl <hias@horus.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm_iec958.c