[PATCH] format: Fix rate for HBR passthrough formats

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In high bitrate mode, we force 192kHz/8ch as the sample format, which is
the expectation for HBR formats (as that is what allows for the largest
possible packet size).
---
 src/pulsecore/core-format.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/pulsecore/core-format.c b/src/pulsecore/core-format.c
index 862a74b5d..096acc3a2 100644
--- a/src/pulsecore/core-format.c
+++ b/src/pulsecore/core-format.c
@@ -248,6 +248,9 @@ int pa_format_info_to_sample_spec_fake(const pa_format_info *f, pa_sample_spec *
 
     if (f->encoding == PA_ENCODING_EAC3_IEC61937)
         ss->rate *= 4;
+    else if ((f->encoding == PA_ENCODING_TRUEHD_IEC61937) ||
+             (f->encoding == PA_ENCODING_DTSHD_IEC61937))
+        ss->rate = 192000;
 
     return 0;
 }
-- 
2.17.0



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux