From 2c4955eb175aeec8993996fcd74a63d74f3ea11c Mon Sep 17 00:00:00 2001 From: Kyle Repinski Date: Fri, 20 Mar 2015 19:55:54 -0500 Subject: audio: Use separate sampling rate for MM-UL (input stream). Fixes MM-UL not working. --- audio/audio_hw.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/audio/audio_hw.c b/audio/audio_hw.c index 90748e4..0715fff 100644 --- a/audio/audio_hw.c +++ b/audio/audio_hw.c @@ -218,6 +218,11 @@ #define MM_FULL_POWER_SAMPLING_RATE 48000 // affects MULTIPLIER_FACTOR #endif +/* sampling rate when using MM-UL */ +#ifndef MM_UL_SAMPLING_RATE +#define MM_UL_SAMPLING_RATE 48000 +#endif + /* sampling rate when using VX port for narrow band */ #define VX_NB_SAMPLING_RATE 8000 /* sampling rate when using VX port for wide band */ @@ -356,7 +361,7 @@ struct pcm_config pcm_config_hdmi_multi = { struct pcm_config pcm_config_mm_ul = { .channels = 2, - .rate = MM_FULL_POWER_SAMPLING_RATE, + .rate = MM_UL_SAMPLING_RATE, .period_size = CAPTURE_PERIOD_SIZE, .period_count = CAPTURE_PERIOD_COUNT, .format = PCM_FORMAT_S16_LE, -- cgit v1.1