Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 4c66b9d1 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown
Browse files

ASoC: max98090: replace codec to component



Now we can replace Codec to Component. Let's do it.

Note:
	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: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 7928b2cb
Loading
Loading
Loading
Loading
+160 −159

File changed.

Preview size limit exceeded, changes collapsed.

+2 −2
Original line number Diff line number Diff line
@@ -1519,7 +1519,7 @@ struct max98090_cdata {

struct max98090_priv {
	struct regmap *regmap;
	struct snd_soc_codec *codec;
	struct snd_soc_component *component;
	enum max98090_type devtype;
	struct max98090_pdata *pdata;
	struct clk *mclk;
@@ -1546,7 +1546,7 @@ struct max98090_priv {
	bool shdn_pending;
};

int max98090_mic_detect(struct snd_soc_codec *codec,
int max98090_mic_detect(struct snd_soc_component *component,
	struct snd_soc_jack *jack);

#endif
+2 −2
Original line number Diff line number Diff line
@@ -75,7 +75,7 @@ static int mt8173_max98090_init(struct snd_soc_pcm_runtime *runtime)
{
	int ret;
	struct snd_soc_card *card = runtime->card;
	struct snd_soc_codec *codec = runtime->codec;
	struct snd_soc_component *component = runtime->codec_dai->component;

	/* enable jack detection */
	ret = snd_soc_card_jack_new(card, "Headphone", SND_JACK_HEADPHONE,
@@ -87,7 +87,7 @@ static int mt8173_max98090_init(struct snd_soc_pcm_runtime *runtime)
		return ret;
	}

	return max98090_mic_detect(codec, &mt8173_max98090_jack);
	return max98090_mic_detect(component, &mt8173_max98090_jack);
}

/* Digital audio interface glue - connects codec <---> CPU */