asoc: mbhc: add extcon device for MBHC

Add extcon device for MBHC.

Change-Id: I2f22223bc62f4f4b5f2e8cb61cf7e7d41548947f
Signed-off-by: Meng Wang <mengw@codeaurora.org>
This commit is contained in:
Meng Wang
2020-12-09 12:33:01 +08:00
parent 3ae97cf8fa
commit ecf424366e
4 changed files with 88 additions and 17 deletions

View File

@@ -1,5 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/* Copyright (c) 2014-2020, The Linux Foundation. All rights reserved.
/* Copyright (c) 2014-2021, The Linux Foundation. All rights reserved.
*/
#ifndef __WCD_MBHC_V2_H__
#define __WCD_MBHC_V2_H__
@@ -7,6 +7,8 @@
#include <linux/wait.h>
#include <linux/stringify.h>
#include <linux/power_supply.h>
#include <linux/extcon.h>
#include <linux/extcon-provider.h>
#include "wcdcal-hwdep.h"
#include <sound/jack.h>
@@ -621,6 +623,8 @@ struct wcd_mbhc {
bool force_linein;
struct device_node *fsa_np;
struct notifier_block fsa_nb;
struct extcon_dev *extdev;
};
void wcd_mbhc_find_plug_and_report(struct wcd_mbhc *mbhc,