ASoC: wm8993/wm8994/wm8958: replace codec to component
Now we can replace Codec to Component. Let's do it. Becase wm8993/wm8994/wm8958 are using wm_hubs feature, we need to update these all related drivers in same time. Otherwise compile error/warning happen wm8993: xxx_codec_xxx() -> xxx_component_xxx() .idle_bias_off = 0 -> .idle_bias_on = 1 .ignore_pmdown_time = 0 -> .use_pmdown_time = 1 - -> .endianness = 1 - -> .non_legacy_dai_naming = 1 wm8994: xxx_codec_xxx() -> xxx_component_xxx() .idle_bias_off = 0 -> .idle_bias_on = 1 .ignore_pmdown_time = 0 -> .use_pmdown_time = 1 - -> .endianness = 1 - -> .non_legacy_dai_naming = 1 Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:

committed by
Mark Brown

parent
7928b2cbe5
commit
00a6941c84
@@ -19,7 +19,7 @@
|
||||
#include <linux/list.h>
|
||||
#include <sound/control.h>
|
||||
|
||||
struct snd_soc_codec;
|
||||
struct snd_soc_component;
|
||||
|
||||
extern const unsigned int wm_hubs_spkmix_tlv[];
|
||||
|
||||
@@ -34,7 +34,7 @@ struct wm_hubs_data {
|
||||
|
||||
bool no_cache_dac_hp_direct;
|
||||
struct list_head dcs_cache;
|
||||
bool (*check_class_w_digital)(struct snd_soc_codec *);
|
||||
bool (*check_class_w_digital)(struct snd_soc_component *);
|
||||
|
||||
int micb1_delay;
|
||||
int micb2_delay;
|
||||
@@ -50,12 +50,12 @@ struct wm_hubs_data {
|
||||
bool dcs_done_irq;
|
||||
struct completion dcs_done;
|
||||
|
||||
struct snd_soc_codec *codec;
|
||||
struct snd_soc_component *component;
|
||||
};
|
||||
|
||||
extern int wm_hubs_add_analogue_controls(struct snd_soc_codec *);
|
||||
extern int wm_hubs_add_analogue_routes(struct snd_soc_codec *, int, int);
|
||||
extern int wm_hubs_handle_analogue_pdata(struct snd_soc_codec *,
|
||||
extern int wm_hubs_add_analogue_controls(struct snd_soc_component *);
|
||||
extern int wm_hubs_add_analogue_routes(struct snd_soc_component *, int, int);
|
||||
extern int wm_hubs_handle_analogue_pdata(struct snd_soc_component *,
|
||||
int lineout1_diff, int lineout2_diff,
|
||||
int lineout1fb, int lineout2fb,
|
||||
int jd_scthr, int jd_thr,
|
||||
@@ -63,10 +63,10 @@ extern int wm_hubs_handle_analogue_pdata(struct snd_soc_codec *,
|
||||
int micbias1_lvl, int micbias2_lvl);
|
||||
|
||||
extern irqreturn_t wm_hubs_dcs_done(int irq, void *data);
|
||||
extern void wm_hubs_vmid_ena(struct snd_soc_codec *codec);
|
||||
extern void wm_hubs_set_bias_level(struct snd_soc_codec *codec,
|
||||
extern void wm_hubs_vmid_ena(struct snd_soc_component *component);
|
||||
extern void wm_hubs_set_bias_level(struct snd_soc_component *component,
|
||||
enum snd_soc_bias_level level);
|
||||
extern void wm_hubs_update_class_w(struct snd_soc_codec *codec);
|
||||
extern void wm_hubs_update_class_w(struct snd_soc_component *component);
|
||||
|
||||
extern const struct snd_kcontrol_new wm_hubs_hpl_mux;
|
||||
extern const struct snd_kcontrol_new wm_hubs_hpr_mux;
|
||||
|
Reference in New Issue
Block a user