diff options
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; |