diff options
author | Sunny Kapdi <sunnyk@codeaurora.org> | 2013-01-22 13:21:26 -0800 |
---|---|---|
committer | Steve Kondik <shade@chemlab.org> | 2013-01-28 22:37:31 -0800 |
commit | 69f86c8d0f1f2d1adfd04f94bfd4580a3bc61d4c (patch) | |
tree | 16110c3eefabc86870d88f5aa199e7a8733a75ee /btif/src/btif_media_task.c | |
parent | b1f0fed3b40572b0ae2a2f7522e93de4190409b7 (diff) | |
download | external_bluetooth_bluedroid-69f86c8d0f1f2d1adfd04f94bfd4580a3bc61d4c.zip external_bluetooth_bluedroid-69f86c8d0f1f2d1adfd04f94bfd4580a3bc61d4c.tar.gz external_bluetooth_bluedroid-69f86c8d0f1f2d1adfd04f94bfd4580a3bc61d4c.tar.bz2 |
Bluetooth: Change Sampling Frequency to 48 kHz
Change Default Sampling Frequency to 48 kHz by default to
match Audio Source.
CRs-fixed: 436686
Change-Id: I0a4aa9ca61964e76220c77fa60c281f7a5df58b4
Diffstat (limited to 'btif/src/btif_media_task.c')
-rwxr-xr-x | btif/src/btif_media_task.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/btif/src/btif_media_task.c b/btif/src/btif_media_task.c index 8978cf6..bda0d9f 100755 --- a/btif/src/btif_media_task.c +++ b/btif/src/btif_media_task.c @@ -1,6 +1,7 @@ /****************************************************************************** * * Copyright (C) 2009-2012 Broadcom Corporation + * Copyright (c) 2013, Linux Foundation. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -764,8 +765,12 @@ void btif_a2dp_setup_codec(void) GKI_disable(); - /* for now hardcode 44.1 khz 16 bit stereo */ + /* for now hardcode 44/48 khz 16 bit stereo */ +#ifdef SAMPLE_RATE_48K + media_feeding.cfg.pcm.sampling_freq = 48000; +#else media_feeding.cfg.pcm.sampling_freq = 44100; +#endif media_feeding.cfg.pcm.bit_per_sample = 16; media_feeding.cfg.pcm.num_channel = 2; media_feeding.format = BTIF_AV_CODEC_PCM; |