ASoC: codec: Update codec driver to component driver
Some alsa API are removed in kernel-4.19 which would cause codec driver compile failure. Update codec driver to fix it. Change-Id: Ie358ec1863082166958059c179300b453d2a03ad Signed-off-by: Meng Wang <mengw@codeaurora.org>
Tento commit je obsažen v:

odevzdal
Gerrit - the friendly Code Review server

rodič
ee084a068e
revize
15c825d077
@@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
/*
|
||||
* Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
#ifndef __WCD934X_MBHC_H__
|
||||
#define __WCD934X_MBHC_H__
|
||||
@@ -29,36 +29,37 @@ struct wcd934x_mbhc {
|
||||
|
||||
#if IS_ENABLED(CONFIG_SND_SOC_WCD934X_MBHC)
|
||||
extern int tavil_mbhc_init(struct wcd934x_mbhc **mbhc,
|
||||
struct snd_soc_codec *codec,
|
||||
struct snd_soc_component *component,
|
||||
struct fw_info *fw_data);
|
||||
extern void tavil_mbhc_hs_detect_exit(struct snd_soc_codec *codec);
|
||||
extern int tavil_mbhc_hs_detect(struct snd_soc_codec *codec,
|
||||
extern void tavil_mbhc_hs_detect_exit(struct snd_soc_component *component);
|
||||
extern int tavil_mbhc_hs_detect(struct snd_soc_component *component,
|
||||
struct wcd_mbhc_config *mbhc_cfg);
|
||||
extern void tavil_mbhc_deinit(struct snd_soc_codec *codec);
|
||||
extern void tavil_mbhc_deinit(struct snd_soc_component *component);
|
||||
extern int tavil_mbhc_post_ssr_init(struct wcd934x_mbhc *mbhc,
|
||||
struct snd_soc_codec *codec);
|
||||
struct snd_soc_component *component);
|
||||
extern int tavil_mbhc_get_impedance(struct wcd934x_mbhc *wcd934x_mbhc,
|
||||
uint32_t *zl, uint32_t *zr);
|
||||
#else
|
||||
static inline int tavil_mbhc_init(struct wcd934x_mbhc **mbhc,
|
||||
struct snd_soc_codec *codec,
|
||||
struct snd_soc_component *component,
|
||||
struct fw_info *fw_data)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
static inline void tavil_mbhc_hs_detect_exit(struct snd_soc_codec *codec)
|
||||
static inline void tavil_mbhc_hs_detect_exit(
|
||||
struct snd_soc_component *component)
|
||||
{
|
||||
}
|
||||
static inline int tavil_mbhc_hs_detect(struct snd_soc_codec *codec,
|
||||
static inline int tavil_mbhc_hs_detect(struct snd_soc_component *component,
|
||||
struct wcd_mbhc_config *mbhc_cfg)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
static inline void tavil_mbhc_deinit(struct snd_soc_codec *codec)
|
||||
static inline void tavil_mbhc_deinit(struct snd_soc_component *component)
|
||||
{
|
||||
}
|
||||
static inline int tavil_mbhc_post_ssr_init(struct wcd934x_mbhc *mbhc,
|
||||
struct snd_soc_codec *codec)
|
||||
struct snd_soc_component *component)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
Odkázat v novém úkolu
Zablokovat Uživatele