From: Peter Meerwald <p.meerwald@xxxxxxxxxxxxxxxxxx> CID 1323599 if ioctl(SNDCTL_DSP_SETFMT) is successful, use the format --- src/modules/oss/oss-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/oss/oss-util.c b/src/modules/oss/oss-util.c index 42ee7f5..ad03ddc 100644 --- a/src/modules/oss/oss-util.c +++ b/src/modules/oss/oss-util.c @@ -189,7 +189,7 @@ int pa_oss_auto_format(int fd, pa_sample_spec *ss) { } else ss->format = PA_SAMPLE_U8; } else - ss->format = f == AFMT_S16_LE ? PA_SAMPLE_S16LE : PA_SAMPLE_S16BE; + ss->format = f; } else ss->format = PA_SAMPLE_S16NE; } -- 1.7.9.5