ASoC: rt5651: Use standard component set_jack callback

Use the standard component set_jack callback instead of defining a codec
private API for this.

Tested-by: Carlo Caione <carlo@endlessm.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Hans de Goede
2018-02-25 11:46:45 +01:00
committed by Mark Brown
parent d8b8c878e8
commit 6f0b819ae2
3 changed files with 4 additions and 6 deletions

View File

@@ -370,7 +370,7 @@ static int byt_rt5651_init(struct snd_soc_pcm_runtime *runtime)
return ret;
}
rt5651_set_jack_detect(codec, &priv->jack);
snd_soc_component_set_jack(codec, &priv->jack, NULL);
return ret;
}