summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorKyle Repinski <repinski23@gmail.com>2015-03-20 19:55:54 -0500
committerZiyan <jaraidaniel@gmail.com>2016-01-15 12:27:30 +0100
commit2c4955eb175aeec8993996fcd74a63d74f3ea11c (patch)
tree501477fa43136d1ad4dda83ac233c713ced17a5c /audio
parent8f32315cd6df137be596c70952165343e2cd1b68 (diff)
downloaddevice_samsung_tuna-2c4955eb175aeec8993996fcd74a63d74f3ea11c.zip
device_samsung_tuna-2c4955eb175aeec8993996fcd74a63d74f3ea11c.tar.gz
device_samsung_tuna-2c4955eb175aeec8993996fcd74a63d74f3ea11c.tar.bz2
audio: Use separate sampling rate for MM-UL (input stream).
Fixes MM-UL not working.
Diffstat (limited to 'audio')
-rw-r--r--audio/audio_hw.c7
1 files changed, 6 insertions, 1 deletions
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,