ASoC: mediatek: Drop da7219_aad_jack_det() usage
commit 922a5e5a63
upstream.
Do not access the internal function directly, do so through
component->set_jack() instead.
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20221031160227.2352630-4-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
7f056fcaf7
commit
ddaa426501
|
@ -14,7 +14,6 @@
|
|||
#include <sound/pcm_params.h>
|
||||
#include <sound/soc.h>
|
||||
|
||||
#include "../../codecs/da7219-aad.h"
|
||||
#include "../../codecs/da7219.h"
|
||||
#include "../../codecs/rt1015.h"
|
||||
#include "../common/mtk-afe-platform-driver.h"
|
||||
|
@ -592,7 +591,7 @@ mt8183_da7219_max98357_headset_init(struct snd_soc_component *component)
|
|||
snd_jack_set_key(
|
||||
priv->headset_jack.jack, SND_JACK_BTN_3, KEY_VOICECOMMAND);
|
||||
|
||||
da7219_aad_jack_det(component, &priv->headset_jack);
|
||||
snd_soc_component_set_jack(component, &priv->headset_jack, NULL);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue