Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5095e40d authored by Satish Kodishala's avatar Satish Kodishala
Browse files

btfm: Enable multichannel bit for SCO Rx



Enable multichannel bit for SCO Rx to fix random 0 bytes
insertion in SCO.

CRs-Fixed: 2063152
Change-Id: I6abe986251d042ef70701b614b8cef0ee1e30044
Signed-off-by: default avatarSatish Kodishala <skodisha@codeaurora.org>
parent 607b49ce
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -88,12 +88,12 @@ int btfm_slim_chrk_enable_port(struct btfmslim *btfmslim, uint8_t port_num,

	BTFMSLIM_DBG("port(%d) enable(%d)", port_num, enable);
	if (rxport) {
		if (enable && btfmslim->sample_rate == 48000) {
			/* For A2DP Rx */
		if (enable) {
			/* For SCO Rx, A2DP Rx */
			reg_val = 0x1;
			port_bit = port_num - 0x10;
			reg = CHRK_SB_PGD_RX_PORTn_MULTI_CHNL_0(port_bit);
			BTFMSLIM_DBG("writing reg_val (%d) to reg(%x) for A2DP",
			BTFMSLIM_DBG("writing reg_val (%d) to reg(%x)",
					reg_val, reg);
			ret = btfm_slim_write(btfmslim, reg, 1, &reg_val, IFD);
			if (ret) {