Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Channel distortion when converting S16_LE -> S32_LE ('plug' plugin) #195

Closed
dh1dm opened this issue Nov 30, 2021 · 1 comment
Closed

Channel distortion when converting S16_LE -> S32_LE ('plug' plugin) #195

dh1dm opened this issue Nov 30, 2021 · 1 comment

Comments

@dh1dm
Copy link

dh1dm commented Nov 30, 2021

When using a Terretec EWX2496 (ICE1712) a sample format conversion
is required in some cases as S32_LE is the only supported format.
This can be done by using the 'plug' plugin (e.g. 'plughw:0,0').
However, the left audio channel is distorted in a varying intensity,
it sounds like a resolution loss in the lower bits.
Applications with native S32_LE support (e.g. Audacity) do not show this
effect.
I'd suppose that the responsible code is in 'alsa-lib/src/pcm/pcm_plug.c',
but up to now I could not track down this issue.

@dh1dm
Copy link
Author

dh1dm commented Dec 12, 2021

As the PCI bus is very rare nowadays, the remaining PCIe <-> PCI bridge based designs
are somewhat a HW niche. It is up to now not clear if the distortion is definitely generated
by the ALSA lib or if it is a bridge resource allocation or ASPM problem.
I've set CONFIG_PCIEASPM_PERFORMANCE=y and CONFIG_PCI_REALLOC_ENABLE_AUTO=y
and in a short test everything seems ok. However, it is not clear if this is a final solution.

@dh1dm dh1dm closed this as completed Dec 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant