ASoC: intel: cht_bsw_max98090_ti: use snd_soc_dai_link_component for aux_dev
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 8 Aug 2019 05:53:33 +0000 (14:53 +0900)
committerMark Brown <broonie@kernel.org>
Fri, 9 Aug 2019 17:12:29 +0000 (18:12 +0100)
We can use snd_soc_dai_link_component to specify aux_dev.
Let's use it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87v9v86war.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/cht_bsw_max98090_ti.c

index 33eb72545be6206a2362fe3e3ceca3ea03904c4e..1db9a95e6a79491d5c94421154c0aa77b71dc325 100644 (file)
@@ -324,9 +324,8 @@ static const struct snd_soc_ops cht_be_ssp2_ops = {
 };
 
 static struct snd_soc_aux_dev cht_max98090_headset_dev = {
-       .name = "Headset Chip",
+       .dlc = COMP_AUX("i2c-104C227E:00"),
        .init = cht_max98090_headset_init,
-       .codec_name = "i2c-104C227E:00",
 };
 
 SND_SOC_DAILINK_DEF(dummy,