From 69f86c8d0f1f2d1adfd04f94bfd4580a3bc61d4c Mon Sep 17 00:00:00 2001 From: Sunny Kapdi Date: Tue, 22 Jan 2013 13:21:26 -0800 Subject: 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 --- btif/co/bta_av_co.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'btif/co/bta_av_co.c') diff --git a/btif/co/bta_av_co.c b/btif/co/bta_av_co.c index 6089532..98f3708 100644 --- a/btif/co/bta_av_co.c +++ b/btif/co/bta_av_co.c @@ -1,6 +1,7 @@ /****************************************************************************** * * Copyright (C) 2004-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. @@ -69,7 +70,11 @@ const UINT8 bta_av_co_cp_scmst[BTA_AV_CP_INFO_LEN] = "\x02\x02\x00"; /* SBC codec capabilities */ const tA2D_SBC_CIE bta_av_co_sbc_caps = { +#ifdef SAMPLE_RATE_48K + (A2D_SBC_IE_SAMP_FREQ_48), /* samp_freq */ +#else (A2D_SBC_IE_SAMP_FREQ_44), /* samp_freq */ +#endif (A2D_SBC_IE_CH_MD_MONO | A2D_SBC_IE_CH_MD_STEREO | A2D_SBC_IE_CH_MD_JOINT | A2D_SBC_IE_CH_MD_DUAL), /* ch_mode */ (A2D_SBC_IE_BLOCKS_16 | A2D_SBC_IE_BLOCKS_12 | A2D_SBC_IE_BLOCKS_8 | A2D_SBC_IE_BLOCKS_4), /* block_len */ (A2D_SBC_IE_SUBBAND_4 | A2D_SBC_IE_SUBBAND_8), /* num_subbands */ @@ -79,8 +84,12 @@ const tA2D_SBC_CIE bta_av_co_sbc_caps = }; #if !defined(BTIF_AV_SBC_DEFAULT_SAMP_FREQ) +#ifdef SAMPLE_RATE_48K +#define BTIF_AV_SBC_DEFAULT_SAMP_FREQ A2D_SBC_IE_SAMP_FREQ_48 +#else #define BTIF_AV_SBC_DEFAULT_SAMP_FREQ A2D_SBC_IE_SAMP_FREQ_44 #endif +#endif /* Default SBC codec configuration */ const tA2D_SBC_CIE btif_av_sbc_default_config = -- cgit v1.1