From 575c153f4f5cc23442e194619874de8ad4e6dd9c Mon Sep 17 00:00:00 2001 From: malc Date: Tue, 28 Sep 2010 08:54:24 +0400 Subject: audio: Fix memory size for resampling buffer in DAC case Signed-off-by: malc --- audio/audio_template.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'audio') diff --git a/audio/audio_template.h b/audio/audio_template.h index 2f5224ba29..fd4469e638 100644 --- 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) { -- cgit v1.2.1