ASoC: Add TWS+ mono mode support
Add support to enable mono mode when one TWS+ earbud is connected. Change the encoder config when device switches from two earbuds to single earbud. CRs-Fixed: 2341876 Change-Id: I880aa6a2767d88e99be2d80afff0e5fbec94b8a4 Signed-off-by: Manisha Agarwal <maniagar@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
b9c563ff6f
commit
d99fac0210
@@ -3914,6 +3914,11 @@ struct afe_id_aptx_adaptive_enc_init
|
||||
*/
|
||||
#define AFE_DECODER_PARAM_ID_DEPACKETIZER_ID 0x00013235
|
||||
|
||||
#define CAPI_V2_PARAM_ID_APTX_ENC_SWITCH_TO_MONO 0x0001332A
|
||||
|
||||
struct aptx_channel_mode_param_t {
|
||||
u32 channel_mode;
|
||||
} __packed;
|
||||
/*
|
||||
* Decoder buffer ID parameter for the #AVS_MODULE_ID_DECODER module.
|
||||
* This parameter cannot be set runtime.
|
||||
@@ -4418,6 +4423,7 @@ union afe_enc_config_data {
|
||||
struct afe_enc_config {
|
||||
u32 format;
|
||||
u32 scrambler_mode;
|
||||
u32 mono_mode;
|
||||
union afe_enc_config_data data;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user