asoc: wcd938x: stop mbhc during ssr down
Stop mbhc operations during ssr down to cancel any pending detection sequences. Change-Id: Iff054cf8b3099959a1be561bd937057258f57b81 Signed-off-by: Meng Wang <mengw@codeaurora.org>
Este cometimento está contido em:
@@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2018, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
#ifndef __WCD938X_MBHC_H__
|
||||
#define __WCD938X_MBHC_H__
|
||||
@@ -20,6 +20,8 @@ extern void wcd938x_mbhc_hs_detect_exit(struct snd_soc_component *component);
|
||||
extern int wcd938x_mbhc_hs_detect(struct snd_soc_component *component,
|
||||
struct wcd_mbhc_config *mbhc_cfg);
|
||||
extern void wcd938x_mbhc_deinit(struct snd_soc_component *component);
|
||||
extern void wcd938x_mbhc_ssr_down(struct wcd938x_mbhc *mbhc,
|
||||
struct snd_soc_component *component);
|
||||
extern int wcd938x_mbhc_post_ssr_init(struct wcd938x_mbhc *mbhc,
|
||||
struct snd_soc_component *component);
|
||||
extern int wcd938x_mbhc_get_impedance(struct wcd938x_mbhc *wcd938x_mbhc,
|
||||
@@ -43,6 +45,10 @@ static inline int wcd938x_mbhc_hs_detect(struct snd_soc_component *component,
|
||||
static inline void wcd938x_mbhc_deinit(struct snd_soc_component *component)
|
||||
{
|
||||
}
|
||||
static inline void wcd938x_mbhc_ssr_down(struct wcd938x_mbhc *mbhc,
|
||||
struct snd_soc_component *component)
|
||||
{
|
||||
}
|
||||
static inline int wcd938x_mbhc_post_ssr_init(struct wcd938x_mbhc *mbhc,
|
||||
struct snd_soc_component *component)
|
||||
{
|
||||
|
Criar uma nova questão referindo esta
Bloquear um utilizador