mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-09 13:29:59 -05:00
source, sink: Support weird sample rates
This fixes assertion failures that manifest themselves with cards that support only weird rates such as 37286Hz. Tested with snd-pcsp. Signed-off-by: Alexander E. Patrakov <patrakov@gmail.com> BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=48109
This commit is contained in:
parent
d3d09c949d
commit
42c814b9f3
5 changed files with 30 additions and 45 deletions
|
|
@ -418,9 +418,6 @@ int pa_modargs_get_alternate_sample_rate(pa_modargs *ma, uint32_t *alternate_rat
|
|||
!pa_sample_rate_valid(*alternate_rate))
|
||||
return -1;
|
||||
|
||||
if (!((rate_local % 4000 == 0) || (rate_local % 11025 == 0)))
|
||||
return -1;
|
||||
|
||||
*alternate_rate = rate_local;
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue