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>
Cette révision appartient à :
Meng Wang
2018-09-06 10:49:18 +08:00
révisé par Gerrit - the friendly Code Review server
Parent ee084a068e
révision 15c825d077
59 fichiers modifiés avec 8532 ajouts et 6916 suppressions

Voir le fichier

@@ -30,7 +30,7 @@ struct wcd937x_priv {
struct device *dev;
int variant;
struct snd_soc_codec *codec;
struct snd_soc_component *component;
struct device_node *rst_np;
struct regmap *regmap;
@@ -160,10 +160,11 @@ enum {
WCD937X_NUM_IRQS,
};
extern struct wcd937x_mbhc *wcd937x_soc_get_mbhc(struct snd_soc_codec *codec);
extern int wcd937x_mbhc_micb_adjust_voltage(struct snd_soc_codec *codec,
extern struct wcd937x_mbhc *wcd937x_soc_get_mbhc(
struct snd_soc_component *component);
extern int wcd937x_mbhc_micb_adjust_voltage(struct snd_soc_component *component,
int volt, int micb_num);
extern int wcd937x_get_micb_vout_ctl_val(u32 micb_mv);
extern int wcd937x_micbias_control(struct snd_soc_codec *codec, int micb_num,
int req, bool is_dapm);
extern int wcd937x_micbias_control(struct snd_soc_component *component,
int micb_num, int req, bool is_dapm);
#endif