summaryrefslogtreecommitdiff
path: root/src/pulsecore/core-format.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pulsecore/core-format.c')
-rw-r--r--src/pulsecore/core-format.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/pulsecore/core-format.c b/src/pulsecore/core-format.c
index 9d3c8d601..c3db2678a 100644
--- a/src/pulsecore/core-format.c
+++ b/src/pulsecore/core-format.c
@@ -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);