Lines Matching refs:wm8350

63 	struct wm8350 *wm8350;  member
81 struct wm8350 *wm8350 = wm8350_data->wm8350; in wm8350_out1_ramp_step() local
86 reg = wm8350_reg_read(wm8350, WM8350_LOUT1_VOLUME); in wm8350_out1_ramp_step()
94 wm8350_reg_write(wm8350, WM8350_LOUT1_VOLUME, in wm8350_out1_ramp_step()
103 wm8350_reg_write(wm8350, WM8350_LOUT1_VOLUME, in wm8350_out1_ramp_step()
111 reg = wm8350_reg_read(wm8350, WM8350_ROUT1_VOLUME); in wm8350_out1_ramp_step()
118 wm8350_reg_write(wm8350, WM8350_ROUT1_VOLUME, in wm8350_out1_ramp_step()
127 wm8350_reg_write(wm8350, WM8350_ROUT1_VOLUME, in wm8350_out1_ramp_step()
135 wm8350_set_bits(wm8350, WM8350_LOUT1_VOLUME, WM8350_OUT1_VU); in wm8350_out1_ramp_step()
146 struct wm8350 *wm8350 = wm8350_data->wm8350; in wm8350_out2_ramp_step() local
151 reg = wm8350_reg_read(wm8350, WM8350_LOUT2_VOLUME); in wm8350_out2_ramp_step()
158 wm8350_reg_write(wm8350, WM8350_LOUT2_VOLUME, in wm8350_out2_ramp_step()
167 wm8350_reg_write(wm8350, WM8350_LOUT2_VOLUME, in wm8350_out2_ramp_step()
175 reg = wm8350_reg_read(wm8350, WM8350_ROUT2_VOLUME); in wm8350_out2_ramp_step()
182 wm8350_reg_write(wm8350, WM8350_ROUT2_VOLUME, in wm8350_out2_ramp_step()
191 wm8350_reg_write(wm8350, WM8350_ROUT2_VOLUME, in wm8350_out2_ramp_step()
199 wm8350_set_bits(wm8350, WM8350_LOUT2_VOLUME, WM8350_OUT2_VU); in wm8350_out2_ramp_step()
758 struct wm8350 *wm8350 = wm8350_data->wm8350; in wm8350_set_dai_sysclk() local
763 wm8350_clear_bits(wm8350, WM8350_CLOCK_CONTROL_1, in wm8350_set_dai_sysclk()
770 wm8350_set_bits(wm8350, WM8350_CLOCK_CONTROL_1, in wm8350_set_dai_sysclk()
780 wm8350_set_bits(wm8350, WM8350_CLOCK_CONTROL_2, in wm8350_set_dai_sysclk()
783 wm8350_clear_bits(wm8350, WM8350_CLOCK_CONTROL_2, in wm8350_set_dai_sysclk()
912 struct wm8350 *wm8350 = wm8350_data->wm8350; in wm8350_pcm_hw_params() local
938 wm8350_set_bits(wm8350, WM8350_DAC_MUTE_VOLUME, in wm8350_pcm_hw_params()
941 wm8350_clear_bits(wm8350, WM8350_DAC_MUTE_VOLUME, in wm8350_pcm_hw_params()
1029 struct wm8350 *wm8350 = priv->wm8350; in wm8350_set_fll() local
1038 wm8350_clear_bits(wm8350, WM8350_POWER_MGMT_4, in wm8350_set_fll()
1047 dev_dbg(wm8350->dev, in wm8350_set_fll()
1068 wm8350_set_bits(wm8350, WM8350_POWER_MGMT_4, WM8350_FLL_OSC_ENA); in wm8350_set_fll()
1069 wm8350_set_bits(wm8350, WM8350_POWER_MGMT_4, WM8350_FLL_ENA); in wm8350_set_fll()
1081 struct wm8350 *wm8350 = priv->wm8350; in wm8350_set_bias_level() local
1083 wm8350->codec.platform_data; in wm8350_set_bias_level()
1089 pm1 = wm8350_reg_read(wm8350, WM8350_POWER_MGMT_1) & in wm8350_set_bias_level()
1091 wm8350_reg_write(wm8350, WM8350_POWER_MGMT_1, in wm8350_set_bias_level()
1097 pm1 = wm8350_reg_read(wm8350, WM8350_POWER_MGMT_1); in wm8350_set_bias_level()
1099 wm8350_reg_write(wm8350, WM8350_POWER_MGMT_1, in wm8350_set_bias_level()
1111 wm8350_set_bits(wm8350, WM8350_POWER_MGMT_4, in wm8350_set_bias_level()
1115 wm8350_set_bits(wm8350, WM8350_DAC_MUTE, in wm8350_set_bias_level()
1119 wm8350_reg_write(wm8350, WM8350_ANTI_POP_CONTROL, in wm8350_set_bias_level()
1131 wm8350_reg_write(wm8350, WM8350_ANTI_POP_CONTROL, in wm8350_set_bias_level()
1135 wm8350_reg_write(wm8350, WM8350_POWER_MGMT_1, in wm8350_set_bias_level()
1147 pm1 = wm8350_reg_read(wm8350, WM8350_POWER_MGMT_1) & in wm8350_set_bias_level()
1151 wm8350_reg_write(wm8350, WM8350_POWER_MGMT_1, in wm8350_set_bias_level()
1157 wm8350_reg_write(wm8350, WM8350_POWER_MGMT_1, pm1); in wm8350_set_bias_level()
1160 wm8350_reg_write(wm8350, WM8350_ANTI_POP_CONTROL, 0); in wm8350_set_bias_level()
1164 pm1 = wm8350_reg_read(wm8350, WM8350_POWER_MGMT_1) & in wm8350_set_bias_level()
1166 wm8350_reg_write(wm8350, WM8350_POWER_MGMT_1, in wm8350_set_bias_level()
1177 wm8350_set_bits(wm8350, WM8350_DAC_MUTE, WM8350_DAC_MUTE_ENA); in wm8350_set_bias_level()
1179 wm8350_set_bits(wm8350, WM8350_POWER_MGMT_3, in wm8350_set_bias_level()
1184 wm8350_reg_write(wm8350, WM8350_ANTI_POP_CONTROL, in wm8350_set_bias_level()
1188 pm1 = wm8350_reg_read(wm8350, WM8350_POWER_MGMT_1) & in wm8350_set_bias_level()
1190 wm8350_reg_write(wm8350, WM8350_POWER_MGMT_1, pm1); in wm8350_set_bias_level()
1197 wm8350_reg_write(wm8350, WM8350_ANTI_POP_CONTROL, in wm8350_set_bias_level()
1205 pm1 = wm8350_reg_read(wm8350, WM8350_POWER_MGMT_1) & in wm8350_set_bias_level()
1207 wm8350_reg_write(wm8350, WM8350_POWER_MGMT_1, in wm8350_set_bias_level()
1215 wm8350_reg_write(wm8350, WM8350_POWER_MGMT_1, pm1); in wm8350_set_bias_level()
1218 wm8350_reg_write(wm8350, WM8350_ANTI_POP_CONTROL, 0); in wm8350_set_bias_level()
1220 wm8350_clear_bits(wm8350, WM8350_LOUT1_VOLUME, in wm8350_set_bias_level()
1222 wm8350_clear_bits(wm8350, WM8350_ROUT1_VOLUME, in wm8350_set_bias_level()
1224 wm8350_clear_bits(wm8350, WM8350_LOUT2_VOLUME, in wm8350_set_bias_level()
1226 wm8350_clear_bits(wm8350, WM8350_ROUT2_VOLUME, in wm8350_set_bias_level()
1230 wm8350_clear_bits(wm8350, WM8350_POWER_MGMT_4, in wm8350_set_bias_level()
1244 struct wm8350 *wm8350 = priv->wm8350; in wm8350_hp_work() local
1248 reg = wm8350_reg_read(wm8350, WM8350_JACK_PIN_STATUS); in wm8350_hp_work()
1277 struct wm8350 *wm8350 = priv->wm8350; in wm8350_hpl_jack_handler() local
1283 if (device_may_wakeup(wm8350->dev)) in wm8350_hpl_jack_handler()
1284 pm_wakeup_event(wm8350->dev, 250); in wm8350_hpl_jack_handler()
1295 struct wm8350 *wm8350 = priv->wm8350; in wm8350_hpr_jack_handler() local
1301 if (device_may_wakeup(wm8350->dev)) in wm8350_hpr_jack_handler()
1302 pm_wakeup_event(wm8350->dev, 250); in wm8350_hpr_jack_handler()
1325 struct wm8350 *wm8350 = priv->wm8350; in wm8350_hp_jack_detect() local
1346 wm8350_set_bits(wm8350, WM8350_POWER_MGMT_4, WM8350_TOCLK_ENA); in wm8350_hp_jack_detect()
1347 wm8350_set_bits(wm8350, WM8350_JACK_DETECT, ena); in wm8350_hp_jack_detect()
1349 wm8350_clear_bits(wm8350, WM8350_JACK_DETECT, ena); in wm8350_hp_jack_detect()
1369 struct wm8350 *wm8350 = priv->wm8350; in wm8350_mic_handler() local
1377 reg = wm8350_reg_read(wm8350, WM8350_JACK_PIN_STATUS); in wm8350_mic_handler()
1405 struct wm8350 *wm8350 = priv->wm8350; in wm8350_mic_jack_detect() local
1412 wm8350_set_bits(wm8350, WM8350_POWER_MGMT_4, WM8350_TOCLK_ENA); in wm8350_mic_jack_detect()
1413 wm8350_set_bits(wm8350, WM8350_POWER_MGMT_1, in wm8350_mic_jack_detect()
1416 wm8350_clear_bits(wm8350, WM8350_POWER_MGMT_1, in wm8350_mic_jack_detect()
1460 struct wm8350 *wm8350 = dev_get_platdata(component->dev); in wm8350_component_probe() local
1466 if (wm8350->codec.platform_data == NULL) { in wm8350_component_probe()
1476 snd_soc_component_init_regmap(component, wm8350->regmap); in wm8350_component_probe()
1479 priv->wm8350 = wm8350; in wm8350_component_probe()
1484 ret = devm_regulator_bulk_get(wm8350->dev, ARRAY_SIZE(priv->supplies), in wm8350_component_probe()
1490 wm8350_clear_bits(wm8350, WM8350_POWER_MGMT_5, WM8350_CODEC_ENA); in wm8350_component_probe()
1497 wm8350_set_bits(wm8350, WM8350_POWER_MGMT_5, WM8350_CODEC_ENA); in wm8350_component_probe()
1507 out1->left_vol = (wm8350_reg_read(wm8350, WM8350_LOUT1_VOLUME) & in wm8350_component_probe()
1509 out1->right_vol = (wm8350_reg_read(wm8350, WM8350_ROUT1_VOLUME) & in wm8350_component_probe()
1511 out2->left_vol = (wm8350_reg_read(wm8350, WM8350_LOUT2_VOLUME) & in wm8350_component_probe()
1513 out2->right_vol = (wm8350_reg_read(wm8350, WM8350_ROUT2_VOLUME) & in wm8350_component_probe()
1515 wm8350_reg_write(wm8350, WM8350_LOUT1_VOLUME, 0); in wm8350_component_probe()
1516 wm8350_reg_write(wm8350, WM8350_ROUT1_VOLUME, 0); in wm8350_component_probe()
1517 wm8350_reg_write(wm8350, WM8350_LOUT2_VOLUME, 0); in wm8350_component_probe()
1518 wm8350_reg_write(wm8350, WM8350_ROUT2_VOLUME, 0); in wm8350_component_probe()
1521 wm8350_set_bits(wm8350, WM8350_LOUT1_VOLUME, in wm8350_component_probe()
1523 wm8350_set_bits(wm8350, WM8350_LOUT2_VOLUME, in wm8350_component_probe()
1525 wm8350_set_bits(wm8350, WM8350_ROUT1_VOLUME, in wm8350_component_probe()
1527 wm8350_set_bits(wm8350, WM8350_ROUT2_VOLUME, in wm8350_component_probe()
1531 wm8350_clear_bits(wm8350, WM8350_AI_FORMATING, WM8350_AIF_TRI); in wm8350_component_probe()
1534 wm8350_clear_bits(wm8350, WM8350_ADC_DAC_COMP, in wm8350_component_probe()
1538 wm8350_clear_bits(wm8350, WM8350_JACK_DETECT, in wm8350_component_probe()
1541 wm8350_register_irq(wm8350, WM8350_IRQ_CODEC_JCK_DET_L, in wm8350_component_probe()
1544 wm8350_register_irq(wm8350, WM8350_IRQ_CODEC_JCK_DET_R, in wm8350_component_probe()
1547 wm8350_register_irq(wm8350, WM8350_IRQ_CODEC_MICSCD, in wm8350_component_probe()
1549 wm8350_register_irq(wm8350, WM8350_IRQ_CODEC_MICD, in wm8350_component_probe()
1558 struct wm8350 *wm8350 = dev_get_platdata(component->dev); in wm8350_component_remove() local
1560 wm8350_clear_bits(wm8350, WM8350_JACK_DETECT, in wm8350_component_remove()
1562 wm8350_clear_bits(wm8350, WM8350_POWER_MGMT_4, WM8350_TOCLK_ENA); in wm8350_component_remove()
1564 wm8350_free_irq(wm8350, WM8350_IRQ_CODEC_MICD, priv); in wm8350_component_remove()
1565 wm8350_free_irq(wm8350, WM8350_IRQ_CODEC_MICSCD, priv); in wm8350_component_remove()
1566 wm8350_free_irq(wm8350, WM8350_IRQ_CODEC_JCK_DET_L, priv); in wm8350_component_remove()
1567 wm8350_free_irq(wm8350, WM8350_IRQ_CODEC_JCK_DET_R, priv); in wm8350_component_remove()
1580 wm8350_clear_bits(wm8350, WM8350_POWER_MGMT_5, WM8350_CODEC_ENA); in wm8350_component_remove()