projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
683aaa9
)
audio: Fix memory size for resampling buffer in DAC case
author
malc
<av1474@comtv.ru>
Tue, 28 Sep 2010 04:54:24 +0000
(08:54 +0400)
committer
malc
<av1474@comtv.ru>
Tue, 28 Sep 2010 04:56:59 +0000
(08:56 +0400)
Signed-off-by: malc <av1474@comtv.ru>
audio/audio_template.h
patch
|
blob
|
history
diff --git
a/audio/audio_template.h
b/audio/audio_template.h
index 2f5224ba2959d9c670c81de6c60fc8fc5db3774d..fd4469e6380ddd131d63d8393f46f9b54951d5db 100644
(file)
--- a/
audio/audio_template.h
+++ b/
audio/audio_template.h
@@
-108,11
+108,7
@@
static int glue (audio_pcm_sw_alloc_resources_, TYPE) (SW *sw)
{
int samples;
-#ifdef DAC
- samples = sw->hw->samples;
-#else
samples = ((int64_t) sw->hw->samples << 32) / sw->ratio;
-#endif
sw->buf = audio_calloc (AUDIO_FUNC, samples, sizeof (struct st_sample));
if (!sw->buf) {