summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.target2
-rw-r--r--audio/alsaaudio.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/Makefile.target b/Makefile.target
index a576796dfe..6a5ff9002e 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -456,7 +456,7 @@ VL_OBJS+= arm-semi.o
VL_OBJS+= pxa2xx.o pxa2xx_pic.o pxa2xx_gpio.o pxa2xx_timer.o pxa2xx_dma.o
VL_OBJS+= pxa2xx_lcd.o pxa2xx_mmci.o pxa2xx_pcmcia.o max111x.o
VL_OBJS+= spitz.o ads7846.o ide.o serial.o nand.o $(AUDIODRV)
-CPPFLAGS += -DHAS_AUDIO -DHIGH_LATENCY
+CPPFLAGS += -DHAS_AUDIO
endif
ifeq ($(TARGET_BASE_ARCH), sh4)
VL_OBJS+= shix.o sh7750.o sh7750_regnames.o tc58128.o
diff --git a/audio/alsaaudio.c b/audio/alsaaudio.c
index 2e59dfa4c4..3f9ffdbbcd 100644
--- a/audio/alsaaudio.c
+++ b/audio/alsaaudio.c
@@ -57,6 +57,8 @@ static struct {
int period_size_out_overriden;
int verbose;
} conf = {
+#define DEFAULT_BUFFER_SIZE 1024
+#define DEFAULT_PERIOD_SIZE 256
#ifdef HIGH_LATENCY
.size_in_usec_in = 1,
.size_in_usec_out = 1,
@@ -69,8 +71,6 @@ static struct {
.buffer_size_out = 400000,
.period_size_out = 400000 / 4,
#else
-#define DEFAULT_BUFFER_SIZE 1024
-#define DEFAULT_PERIOD_SIZE 256
.buffer_size_in = DEFAULT_BUFFER_SIZE * 4,
.period_size_in = DEFAULT_PERIOD_SIZE * 4,
.buffer_size_out = DEFAULT_BUFFER_SIZE,