projects
/
profile
/
ivi
/
pulseaudio-panda.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f2026d
)
decrease maximum allowed sample frequency for ALSA devices to 5%, since 48000 would...
author
Lennart Poettering
<lennart@poettering.net>
Wed, 31 May 2006 00:05:38 +0000
(
00:05
+0000)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 31 May 2006 00:05:38 +0000
(
00:05
+0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@995
fefdeb5f
-60dc-0310-8127-
8f9354f1896f
src/modules/alsa-util.c
patch
|
blob
|
history
diff --git
a/src/modules/alsa-util.c
b/src/modules/alsa-util.c
index
99c1cfa
..
5b6d72e
100644
(file)
--- a/
src/modules/alsa-util.c
+++ b/
src/modules/alsa-util.c
@@
-284,7
+284,7
@@
int pa_alsa_set_hw_params(snd_pcm_t *pcm_handle, pa_sample_spec *ss, uint32_t *p
pa_log_info(__FILE__": device doesn't support %u Hz, changed to %u Hz.", ss->rate, r);
/* If the sample rate deviates too much, we need to resample */
- if (r < ss->rate*.9
|| r > ss->rate*1.1
)
+ if (r < ss->rate*.9
5 || r > ss->rate*1.05
)
ss->rate = r;
}