ASoC: Fix audio distortion issue during headset record
Audio is distorted during first 3 secs on headset record while doing device switch from dmic to headset mic. Disable BCS before slow insertion detection and enable it afterwards to resolve the issue. Change-Id: Ie5bc4b5292e5f69066760cab44d78989a74f13f4 Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
This commit is contained in:

zatwierdzone przez
Gerrit - the friendly Code Review server

rodzic
731807e0a2
commit
d06525fa68
@@ -149,6 +149,7 @@ enum {
|
||||
WCD_BOLERO_EVT_IMPED_TRUE, /* for imped true */
|
||||
WCD_BOLERO_EVT_IMPED_FALSE, /* for imped false */
|
||||
WCD_BOLERO_EVT_RX_COMPANDER_SOFT_RST,
|
||||
WCD_BOLERO_EVT_BCS_CLK_OFF,
|
||||
};
|
||||
|
||||
enum {
|
||||
@@ -182,6 +183,9 @@ enum {
|
||||
|
||||
extern struct wcd938x_mbhc *wcd938x_soc_get_mbhc(
|
||||
struct snd_soc_component *component);
|
||||
extern void wcd938x_disable_bcs_before_slow_insert(
|
||||
struct snd_soc_component *component,
|
||||
bool bcs_disable);
|
||||
extern int wcd938x_mbhc_micb_adjust_voltage(struct snd_soc_component *component,
|
||||
int volt, int micb_num);
|
||||
extern int wcd938x_get_micb_vout_ctl_val(u32 micb_mv);
|
||||
|
Reference in New Issue
Block a user