Lines Matching refs:wm8350

60 	struct wm8350 *wm8350;  member
78 struct wm8350 *wm8350 = wm8350_data->wm8350; in wm8350_out1_ramp_step() local
83 reg = wm8350_reg_read(wm8350, WM8350_LOUT1_VOLUME); in wm8350_out1_ramp_step()
91 wm8350_reg_write(wm8350, WM8350_LOUT1_VOLUME, in wm8350_out1_ramp_step()
100 wm8350_reg_write(wm8350, WM8350_LOUT1_VOLUME, in wm8350_out1_ramp_step()
108 reg = wm8350_reg_read(wm8350, WM8350_ROUT1_VOLUME); in wm8350_out1_ramp_step()
115 wm8350_reg_write(wm8350, WM8350_ROUT1_VOLUME, in wm8350_out1_ramp_step()
124 wm8350_reg_write(wm8350, WM8350_ROUT1_VOLUME, in wm8350_out1_ramp_step()
132 wm8350_set_bits(wm8350, WM8350_LOUT1_VOLUME, WM8350_OUT1_VU); in wm8350_out1_ramp_step()
143 struct wm8350 *wm8350 = wm8350_data->wm8350; in wm8350_out2_ramp_step() local
148 reg = wm8350_reg_read(wm8350, WM8350_LOUT2_VOLUME); in wm8350_out2_ramp_step()
155 wm8350_reg_write(wm8350, WM8350_LOUT2_VOLUME, in wm8350_out2_ramp_step()
164 wm8350_reg_write(wm8350, WM8350_LOUT2_VOLUME, in wm8350_out2_ramp_step()
172 reg = wm8350_reg_read(wm8350, WM8350_ROUT2_VOLUME); in wm8350_out2_ramp_step()
179 wm8350_reg_write(wm8350, WM8350_ROUT2_VOLUME, in wm8350_out2_ramp_step()
188 wm8350_reg_write(wm8350, WM8350_ROUT2_VOLUME, in wm8350_out2_ramp_step()
196 wm8350_set_bits(wm8350, WM8350_LOUT2_VOLUME, WM8350_OUT2_VU); in wm8350_out2_ramp_step()
756 struct wm8350 *wm8350 = wm8350_data->wm8350; in wm8350_set_dai_sysclk() local
761 wm8350_clear_bits(wm8350, WM8350_CLOCK_CONTROL_1, in wm8350_set_dai_sysclk()
768 wm8350_set_bits(wm8350, WM8350_CLOCK_CONTROL_1, in wm8350_set_dai_sysclk()
778 wm8350_set_bits(wm8350, WM8350_CLOCK_CONTROL_2, in wm8350_set_dai_sysclk()
781 wm8350_clear_bits(wm8350, WM8350_CLOCK_CONTROL_2, in wm8350_set_dai_sysclk()
910 struct wm8350 *wm8350 = wm8350_data->wm8350; in wm8350_pcm_hw_params() local
936 wm8350_set_bits(wm8350, WM8350_DAC_MUTE_VOLUME, in wm8350_pcm_hw_params()
939 wm8350_clear_bits(wm8350, WM8350_DAC_MUTE_VOLUME, in wm8350_pcm_hw_params()
1027 struct wm8350 *wm8350 = priv->wm8350; in wm8350_set_fll() local
1036 wm8350_clear_bits(wm8350, WM8350_POWER_MGMT_4, in wm8350_set_fll()
1045 dev_dbg(wm8350->dev, in wm8350_set_fll()
1066 wm8350_set_bits(wm8350, WM8350_POWER_MGMT_4, WM8350_FLL_OSC_ENA); in wm8350_set_fll()
1067 wm8350_set_bits(wm8350, WM8350_POWER_MGMT_4, WM8350_FLL_ENA); in wm8350_set_fll()
1079 struct wm8350 *wm8350 = priv->wm8350; in wm8350_set_bias_level() local
1081 wm8350->codec.platform_data; in wm8350_set_bias_level()
1087 pm1 = wm8350_reg_read(wm8350, WM8350_POWER_MGMT_1) & in wm8350_set_bias_level()
1089 wm8350_reg_write(wm8350, WM8350_POWER_MGMT_1, in wm8350_set_bias_level()
1095 pm1 = wm8350_reg_read(wm8350, WM8350_POWER_MGMT_1); in wm8350_set_bias_level()
1097 wm8350_reg_write(wm8350, WM8350_POWER_MGMT_1, in wm8350_set_bias_level()
1109 wm8350_set_bits(wm8350, WM8350_POWER_MGMT_4, in wm8350_set_bias_level()
1113 wm8350_set_bits(wm8350, WM8350_DAC_MUTE, in wm8350_set_bias_level()
1117 wm8350_reg_write(wm8350, WM8350_ANTI_POP_CONTROL, in wm8350_set_bias_level()
1129 wm8350_reg_write(wm8350, WM8350_ANTI_POP_CONTROL, in wm8350_set_bias_level()
1133 wm8350_reg_write(wm8350, WM8350_POWER_MGMT_1, in wm8350_set_bias_level()
1145 pm1 = wm8350_reg_read(wm8350, WM8350_POWER_MGMT_1) & in wm8350_set_bias_level()
1149 wm8350_reg_write(wm8350, WM8350_POWER_MGMT_1, in wm8350_set_bias_level()
1155 wm8350_reg_write(wm8350, WM8350_POWER_MGMT_1, pm1); in wm8350_set_bias_level()
1158 wm8350_reg_write(wm8350, WM8350_ANTI_POP_CONTROL, 0); in wm8350_set_bias_level()
1162 pm1 = wm8350_reg_read(wm8350, WM8350_POWER_MGMT_1) & in wm8350_set_bias_level()
1164 wm8350_reg_write(wm8350, WM8350_POWER_MGMT_1, in wm8350_set_bias_level()
1175 wm8350_set_bits(wm8350, WM8350_DAC_MUTE, WM8350_DAC_MUTE_ENA); in wm8350_set_bias_level()
1177 wm8350_set_bits(wm8350, WM8350_POWER_MGMT_3, in wm8350_set_bias_level()
1182 wm8350_reg_write(wm8350, WM8350_ANTI_POP_CONTROL, in wm8350_set_bias_level()
1186 pm1 = wm8350_reg_read(wm8350, WM8350_POWER_MGMT_1) & in wm8350_set_bias_level()
1188 wm8350_reg_write(wm8350, WM8350_POWER_MGMT_1, pm1); in wm8350_set_bias_level()
1195 wm8350_reg_write(wm8350, WM8350_ANTI_POP_CONTROL, in wm8350_set_bias_level()
1203 pm1 = wm8350_reg_read(wm8350, WM8350_POWER_MGMT_1) & in wm8350_set_bias_level()
1205 wm8350_reg_write(wm8350, WM8350_POWER_MGMT_1, in wm8350_set_bias_level()
1213 wm8350_reg_write(wm8350, WM8350_POWER_MGMT_1, pm1); in wm8350_set_bias_level()
1216 wm8350_reg_write(wm8350, WM8350_ANTI_POP_CONTROL, 0); in wm8350_set_bias_level()
1218 wm8350_clear_bits(wm8350, WM8350_LOUT1_VOLUME, in wm8350_set_bias_level()
1220 wm8350_clear_bits(wm8350, WM8350_ROUT1_VOLUME, in wm8350_set_bias_level()
1222 wm8350_clear_bits(wm8350, WM8350_LOUT2_VOLUME, in wm8350_set_bias_level()
1224 wm8350_clear_bits(wm8350, WM8350_ROUT2_VOLUME, in wm8350_set_bias_level()
1228 wm8350_clear_bits(wm8350, WM8350_POWER_MGMT_4, in wm8350_set_bias_level()
1242 struct wm8350 *wm8350 = priv->wm8350; in wm8350_hp_work() local
1246 reg = wm8350_reg_read(wm8350, WM8350_JACK_PIN_STATUS); in wm8350_hp_work()
1275 struct wm8350 *wm8350 = priv->wm8350; in wm8350_hpl_jack_handler() local
1281 if (device_may_wakeup(wm8350->dev)) in wm8350_hpl_jack_handler()
1282 pm_wakeup_event(wm8350->dev, 250); in wm8350_hpl_jack_handler()
1293 struct wm8350 *wm8350 = priv->wm8350; in wm8350_hpr_jack_handler() local
1299 if (device_may_wakeup(wm8350->dev)) in wm8350_hpr_jack_handler()
1300 pm_wakeup_event(wm8350->dev, 250); in wm8350_hpr_jack_handler()
1323 struct wm8350 *wm8350 = priv->wm8350; in wm8350_hp_jack_detect() local
1344 wm8350_set_bits(wm8350, WM8350_POWER_MGMT_4, WM8350_TOCLK_ENA); in wm8350_hp_jack_detect()
1345 wm8350_set_bits(wm8350, WM8350_JACK_DETECT, ena); in wm8350_hp_jack_detect()
1347 wm8350_clear_bits(wm8350, WM8350_JACK_DETECT, ena); in wm8350_hp_jack_detect()
1367 struct wm8350 *wm8350 = priv->wm8350; in wm8350_mic_handler() local
1375 reg = wm8350_reg_read(wm8350, WM8350_JACK_PIN_STATUS); in wm8350_mic_handler()
1403 struct wm8350 *wm8350 = priv->wm8350; in wm8350_mic_jack_detect() local
1410 wm8350_set_bits(wm8350, WM8350_POWER_MGMT_4, WM8350_TOCLK_ENA); in wm8350_mic_jack_detect()
1411 wm8350_set_bits(wm8350, WM8350_POWER_MGMT_1, in wm8350_mic_jack_detect()
1414 wm8350_clear_bits(wm8350, WM8350_POWER_MGMT_1, in wm8350_mic_jack_detect()
1459 struct wm8350 *wm8350 = dev_get_platdata(component->dev); in wm8350_component_probe() local
1465 if (wm8350->codec.platform_data == NULL) { in wm8350_component_probe()
1475 snd_soc_component_init_regmap(component, wm8350->regmap); in wm8350_component_probe()
1478 priv->wm8350 = wm8350; in wm8350_component_probe()
1483 ret = devm_regulator_bulk_get(wm8350->dev, ARRAY_SIZE(priv->supplies), in wm8350_component_probe()
1489 wm8350_clear_bits(wm8350, WM8350_POWER_MGMT_5, WM8350_CODEC_ENA); in wm8350_component_probe()
1496 wm8350_set_bits(wm8350, WM8350_POWER_MGMT_5, WM8350_CODEC_ENA); in wm8350_component_probe()
1506 out1->left_vol = (wm8350_reg_read(wm8350, WM8350_LOUT1_VOLUME) & in wm8350_component_probe()
1508 out1->right_vol = (wm8350_reg_read(wm8350, WM8350_ROUT1_VOLUME) & in wm8350_component_probe()
1510 out2->left_vol = (wm8350_reg_read(wm8350, WM8350_LOUT2_VOLUME) & in wm8350_component_probe()
1512 out2->right_vol = (wm8350_reg_read(wm8350, WM8350_ROUT2_VOLUME) & in wm8350_component_probe()
1514 wm8350_reg_write(wm8350, WM8350_LOUT1_VOLUME, 0); in wm8350_component_probe()
1515 wm8350_reg_write(wm8350, WM8350_ROUT1_VOLUME, 0); in wm8350_component_probe()
1516 wm8350_reg_write(wm8350, WM8350_LOUT2_VOLUME, 0); in wm8350_component_probe()
1517 wm8350_reg_write(wm8350, WM8350_ROUT2_VOLUME, 0); in wm8350_component_probe()
1520 wm8350_set_bits(wm8350, WM8350_LOUT1_VOLUME, in wm8350_component_probe()
1522 wm8350_set_bits(wm8350, WM8350_LOUT2_VOLUME, in wm8350_component_probe()
1524 wm8350_set_bits(wm8350, WM8350_ROUT1_VOLUME, in wm8350_component_probe()
1526 wm8350_set_bits(wm8350, WM8350_ROUT2_VOLUME, in wm8350_component_probe()
1530 wm8350_clear_bits(wm8350, WM8350_AI_FORMATING, WM8350_AIF_TRI); in wm8350_component_probe()
1533 wm8350_clear_bits(wm8350, WM8350_ADC_DAC_COMP, in wm8350_component_probe()
1537 wm8350_clear_bits(wm8350, WM8350_JACK_DETECT, in wm8350_component_probe()
1540 ret = wm8350_register_irq(wm8350, WM8350_IRQ_CODEC_JCK_DET_L, in wm8350_component_probe()
1546 ret = wm8350_register_irq(wm8350, WM8350_IRQ_CODEC_JCK_DET_R, in wm8350_component_probe()
1552 ret = wm8350_register_irq(wm8350, WM8350_IRQ_CODEC_MICSCD, in wm8350_component_probe()
1557 ret = wm8350_register_irq(wm8350, WM8350_IRQ_CODEC_MICD, in wm8350_component_probe()
1565 wm8350_free_irq(wm8350, WM8350_IRQ_CODEC_MICSCD, priv); in wm8350_component_probe()
1567 wm8350_free_irq(wm8350, WM8350_IRQ_CODEC_JCK_DET_R, priv); in wm8350_component_probe()
1569 wm8350_free_irq(wm8350, WM8350_IRQ_CODEC_JCK_DET_L, priv); in wm8350_component_probe()
1577 struct wm8350 *wm8350 = dev_get_platdata(component->dev); in wm8350_component_remove() local
1579 wm8350_clear_bits(wm8350, WM8350_JACK_DETECT, in wm8350_component_remove()
1581 wm8350_clear_bits(wm8350, WM8350_POWER_MGMT_4, WM8350_TOCLK_ENA); in wm8350_component_remove()
1583 wm8350_free_irq(wm8350, WM8350_IRQ_CODEC_MICD, priv); in wm8350_component_remove()
1584 wm8350_free_irq(wm8350, WM8350_IRQ_CODEC_MICSCD, priv); in wm8350_component_remove()
1585 wm8350_free_irq(wm8350, WM8350_IRQ_CODEC_JCK_DET_L, priv); in wm8350_component_remove()
1586 wm8350_free_irq(wm8350, WM8350_IRQ_CODEC_JCK_DET_R, priv); in wm8350_component_remove()
1599 wm8350_clear_bits(wm8350, WM8350_POWER_MGMT_5, WM8350_CODEC_ENA); in wm8350_component_remove()