mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
format: Add support for Dolby TrueHD and DTS-HD HBR passthrough
Add definitions and fixups for channel count Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
This commit is contained in:
parent
47ed9ae1f4
commit
cdeac17801
3 changed files with 15 additions and 1 deletions
|
|
@ -226,7 +226,11 @@ int pa_format_info_to_sample_spec_fake(const pa_format_info *f, pa_sample_spec *
|
|||
* formats, this function should return a non-zero values for these. */
|
||||
|
||||
ss->format = PA_SAMPLE_S16LE;
|
||||
ss->channels = 2;
|
||||
if ((f->encoding == PA_ENCODING_TRUEHD_IEC61937) ||
|
||||
(f->encoding == PA_ENCODING_DTSHD_IEC61937))
|
||||
ss->channels = 8;
|
||||
else
|
||||
ss->channels = 2;
|
||||
|
||||
if (map)
|
||||
pa_channel_map_init_stereo(map);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue