Merge "a2dp: fix encoder sample rate update for aptx adaptive r2"
This commit is contained in:
commit
1b04d58002
|
@ -202,6 +202,7 @@ typedef enum {
|
|||
APTX_AD_SR_UNCHANGED = 0x0,
|
||||
APTX_AD_48 = 0x1, // 48 KHz default
|
||||
APTX_AD_44_1 = 0x2, // 44.1kHz
|
||||
APTX_AD_96 = 0x3, // 96KHz
|
||||
} enc_aptx_ad_s_rate;
|
||||
|
||||
typedef void (*bt_audio_pre_init_t)(void);
|
||||
|
@ -1787,6 +1788,10 @@ static int update_aptx_ad_dsp_config_r2(struct aptx_ad_enc_cfg_r2_t *aptx_dsp_cf
|
|||
a2dp.enc_sampling_rate = SAMPLING_RATE_441K;
|
||||
aptx_dsp_cfg->custom_cfg.sample_rate = SAMPLING_RATE_441K;
|
||||
break;
|
||||
case APTX_AD_96:
|
||||
a2dp.enc_sampling_rate = SAMPLING_RATE_96K;
|
||||
aptx_dsp_cfg->custom_cfg.sample_rate = SAMPLING_RATE_96K;
|
||||
break;
|
||||
}
|
||||
ALOGV("Successfully updated APTX AD enc format with \
|
||||
samplingrate: %d channels:%d",
|
||||
|
|
Loading…
Reference in New Issue