ASoC: max98357a: Use DAI input as a dapm widget
authorAnatol Pomozov <anatol.pomozov@gmail.com>
Sun, 12 Jul 2015 15:14:20 +0000 (08:14 -0700)
committerMark Brown <broonie@kernel.org>
Mon, 13 Jul 2015 18:13:03 +0000 (19:13 +0100)
Spec does not say anything about DAC called SDMode.
It makes more sense to use DAI input that created automatically by DAPM
and route it to Speaker output.

Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/max98357a.c

index fa1b79302bb3b04be65355580210a093e4775d23..b9e1131bab74e51bbff4d514c2dd539d08826a0e 100644 (file)
@@ -51,12 +51,11 @@ static int max98357a_daiops_trigger(struct snd_pcm_substream *substream,
 }
 
 static const struct snd_soc_dapm_widget max98357a_dapm_widgets[] = {
-       SND_SOC_DAPM_DAC("SDMode", NULL, SND_SOC_NOPM, 0, 0),
        SND_SOC_DAPM_OUTPUT("Speaker"),
 };
 
 static const struct snd_soc_dapm_route max98357a_dapm_routes[] = {
-       {"Speaker", NULL, "SDMode"},
+       {"Speaker", NULL, "HiFi Playback"},
 };
 
 static int max98357a_codec_probe(struct snd_soc_codec *codec)