Skip to content
Snippets Groups Projects
Commit 488191ea authored by Vipul Kumar's avatar Vipul Kumar Committed by Leonard Crestez
Browse files

ASoC: wm8960: replace codec to component


This patch replace codec to component to fix the compilation errors.

Signed-off-by: default avatarVipul Kumar <vipul_kumar@mentor.com>
Signed-off-by: default avatarSrikanth Krishnakar <Srikanth_Krishnakar@mentor.com>
parent 1309ac9b
No related merge requests found
...@@ -335,23 +335,25 @@ static int imx_wm8960_late_probe(struct snd_soc_card *card) ...@@ -335,23 +335,25 @@ static int imx_wm8960_late_probe(struct snd_soc_card *card)
struct snd_soc_pcm_runtime *rtd = list_first_entry( struct snd_soc_pcm_runtime *rtd = list_first_entry(
&card->rtd_list, struct snd_soc_pcm_runtime, list); &card->rtd_list, struct snd_soc_pcm_runtime, list);
struct snd_soc_dai *codec_dai = rtd->codec_dai; struct snd_soc_dai *codec_dai = rtd->codec_dai;
struct snd_soc_codec *codec = codec_dai->codec; struct snd_soc_component *component = codec_dai->component;
struct imx_wm8960_data *data = snd_soc_card_get_drvdata(card); struct imx_wm8960_data *data = snd_soc_card_get_drvdata(card);
/* /*
* codec ADCLRC pin configured as GPIO, DACLRC pin is used as a frame * codec ADCLRC pin configured as GPIO, DACLRC pin is used as a frame
* clock for ADCs and DACs * clock for ADCs and DACs
*/ */
snd_soc_update_bits(codec, WM8960_IFACE2, 1<<6, 1<<6); snd_soc_component_update_bits(component, WM8960_IFACE2, 1<<6, 1<<6);
/* GPIO1 used as headphone detect output */ /* GPIO1 used as headphone detect output */
snd_soc_update_bits(codec, WM8960_ADDCTL4, 7<<4, 3<<4); snd_soc_component_update_bits(component, WM8960_ADDCTL4, 7<<4, 3<<4);
/* Enable headphone jack detect */ /* Enable headphone jack detect */
snd_soc_update_bits(codec, WM8960_ADDCTL2, 1<<6, 1<<6); snd_soc_component_update_bits(component, WM8960_ADDCTL2, 1<<6, 1<<6);
snd_soc_update_bits(codec, WM8960_ADDCTL2, 1<<5, data->hp_det[1]<<5); snd_soc_component_update_bits(component, WM8960_ADDCTL2, 1<<5,
snd_soc_update_bits(codec, WM8960_ADDCTL4, 3<<2, data->hp_det[0]<<2); data->hp_det[1]<<5);
snd_soc_update_bits(codec, WM8960_ADDCTL1, 3, 3); snd_soc_component_update_bits(component, WM8960_ADDCTL4, 3<<2,
data->hp_det[0]<<2);
snd_soc_component_update_bits(component, WM8960_ADDCTL1, 3, 3);
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment