]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
rtlwifi: btcoex: 23b 2ant: workaround for bt a2dp and hid
authorYan-Hsuan Chuang <yhchuang@realtek.com>
Tue, 4 Apr 2017 16:50:01 +0000 (11:50 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 13 Apr 2017 14:08:37 +0000 (17:08 +0300)
For a2dp and hid, we need extra process to avoid voice degradation

Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Pkshih <pkshih@realtek.com>
Cc: Birming Chiu <birming@realtek.com>
Cc: Shaofu <shaofu@realtek.com>
Cc: Steven Ting <steventing@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c

index 31bfc4bb2bd52de73a4c6813fff2f25ead99c7c1..55dabe050f873aee574b19efc15bef98000cd187 100644 (file)
@@ -1035,6 +1035,8 @@ static void btc8723b2ant_set_fw_ps_tdma(struct btc_coexist *btcoexist, u8 byte1,
 {
        struct rtl_priv *rtlpriv = btcoexist->adapter;
        u8 h2c_parameter[5];
+       if ((coex_sta->a2dp_exist) && (coex_sta->hid_exist))
+               byte5 = byte5 | 0x1;
 
        h2c_parameter[0] = byte1;
        h2c_parameter[1] = byte2;