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()
755 struct wm8350 *wm8350 = wm8350_data->wm8350; in wm8350_set_dai_sysclk() local
760 wm8350_clear_bits(wm8350, WM8350_CLOCK_CONTROL_1, in wm8350_set_dai_sysclk()
767 wm8350_set_bits(wm8350, WM8350_CLOCK_CONTROL_1, in wm8350_set_dai_sysclk()
777 wm8350_set_bits(wm8350, WM8350_CLOCK_CONTROL_2, in wm8350_set_dai_sysclk()
780 wm8350_clear_bits(wm8350, WM8350_CLOCK_CONTROL_2, in wm8350_set_dai_sysclk()
909 struct wm8350 *wm8350 = wm8350_data->wm8350; in wm8350_pcm_hw_params() local
935 wm8350_set_bits(wm8350, WM8350_DAC_MUTE_VOLUME, in wm8350_pcm_hw_params()
938 wm8350_clear_bits(wm8350, WM8350_DAC_MUTE_VOLUME, in wm8350_pcm_hw_params()
1026 struct wm8350 *wm8350 = priv->wm8350; in wm8350_set_fll() local
1035 wm8350_clear_bits(wm8350, WM8350_POWER_MGMT_4, in wm8350_set_fll()
1044 dev_dbg(wm8350->dev, in wm8350_set_fll()
1065 wm8350_set_bits(wm8350, WM8350_POWER_MGMT_4, WM8350_FLL_OSC_ENA); in wm8350_set_fll()
1066 wm8350_set_bits(wm8350, WM8350_POWER_MGMT_4, WM8350_FLL_ENA); in wm8350_set_fll()
1078 struct wm8350 *wm8350 = priv->wm8350; in wm8350_set_bias_level() local
1080 wm8350->codec.platform_data; in wm8350_set_bias_level()
1086 pm1 = wm8350_reg_read(wm8350, WM8350_POWER_MGMT_1) & in wm8350_set_bias_level()
1088 wm8350_reg_write(wm8350, WM8350_POWER_MGMT_1, in wm8350_set_bias_level()
1094 pm1 = wm8350_reg_read(wm8350, WM8350_POWER_MGMT_1); in wm8350_set_bias_level()
1096 wm8350_reg_write(wm8350, WM8350_POWER_MGMT_1, in wm8350_set_bias_level()
1108 wm8350_set_bits(wm8350, WM8350_POWER_MGMT_4, in wm8350_set_bias_level()
1112 wm8350_set_bits(wm8350, WM8350_DAC_MUTE, in wm8350_set_bias_level()
1116 wm8350_reg_write(wm8350, WM8350_ANTI_POP_CONTROL, in wm8350_set_bias_level()
1128 wm8350_reg_write(wm8350, WM8350_ANTI_POP_CONTROL, in wm8350_set_bias_level()
1132 wm8350_reg_write(wm8350, WM8350_POWER_MGMT_1, in wm8350_set_bias_level()
1144 pm1 = wm8350_reg_read(wm8350, WM8350_POWER_MGMT_1) & in wm8350_set_bias_level()
1148 wm8350_reg_write(wm8350, WM8350_POWER_MGMT_1, in wm8350_set_bias_level()
1154 wm8350_reg_write(wm8350, WM8350_POWER_MGMT_1, pm1); in wm8350_set_bias_level()
1157 wm8350_reg_write(wm8350, WM8350_ANTI_POP_CONTROL, 0); in wm8350_set_bias_level()
1161 pm1 = wm8350_reg_read(wm8350, WM8350_POWER_MGMT_1) & in wm8350_set_bias_level()
1163 wm8350_reg_write(wm8350, WM8350_POWER_MGMT_1, in wm8350_set_bias_level()
1174 wm8350_set_bits(wm8350, WM8350_DAC_MUTE, WM8350_DAC_MUTE_ENA); in wm8350_set_bias_level()
1176 wm8350_set_bits(wm8350, WM8350_POWER_MGMT_3, in wm8350_set_bias_level()
1181 wm8350_reg_write(wm8350, WM8350_ANTI_POP_CONTROL, in wm8350_set_bias_level()
1185 pm1 = wm8350_reg_read(wm8350, WM8350_POWER_MGMT_1) & in wm8350_set_bias_level()
1187 wm8350_reg_write(wm8350, WM8350_POWER_MGMT_1, pm1); in wm8350_set_bias_level()
1194 wm8350_reg_write(wm8350, WM8350_ANTI_POP_CONTROL, in wm8350_set_bias_level()
1202 pm1 = wm8350_reg_read(wm8350, WM8350_POWER_MGMT_1) & in wm8350_set_bias_level()
1204 wm8350_reg_write(wm8350, WM8350_POWER_MGMT_1, in wm8350_set_bias_level()
1212 wm8350_reg_write(wm8350, WM8350_POWER_MGMT_1, pm1); in wm8350_set_bias_level()
1215 wm8350_reg_write(wm8350, WM8350_ANTI_POP_CONTROL, 0); in wm8350_set_bias_level()
1217 wm8350_clear_bits(wm8350, WM8350_LOUT1_VOLUME, in wm8350_set_bias_level()
1219 wm8350_clear_bits(wm8350, WM8350_ROUT1_VOLUME, in wm8350_set_bias_level()
1221 wm8350_clear_bits(wm8350, WM8350_LOUT2_VOLUME, in wm8350_set_bias_level()
1223 wm8350_clear_bits(wm8350, WM8350_ROUT2_VOLUME, in wm8350_set_bias_level()
1227 wm8350_clear_bits(wm8350, WM8350_POWER_MGMT_4, in wm8350_set_bias_level()
1241 struct wm8350 *wm8350 = priv->wm8350; in wm8350_hp_work() local
1245 reg = wm8350_reg_read(wm8350, WM8350_JACK_PIN_STATUS); in wm8350_hp_work()
1274 struct wm8350 *wm8350 = priv->wm8350; in wm8350_hpl_jack_handler() local
1280 if (device_may_wakeup(wm8350->dev)) in wm8350_hpl_jack_handler()
1281 pm_wakeup_event(wm8350->dev, 250); in wm8350_hpl_jack_handler()
1292 struct wm8350 *wm8350 = priv->wm8350; in wm8350_hpr_jack_handler() local
1298 if (device_may_wakeup(wm8350->dev)) in wm8350_hpr_jack_handler()
1299 pm_wakeup_event(wm8350->dev, 250); in wm8350_hpr_jack_handler()
1322 struct wm8350 *wm8350 = priv->wm8350; in wm8350_hp_jack_detect() local
1343 wm8350_set_bits(wm8350, WM8350_POWER_MGMT_4, WM8350_TOCLK_ENA); in wm8350_hp_jack_detect()
1344 wm8350_set_bits(wm8350, WM8350_JACK_DETECT, ena); in wm8350_hp_jack_detect()
1346 wm8350_clear_bits(wm8350, WM8350_JACK_DETECT, ena); in wm8350_hp_jack_detect()
1366 struct wm8350 *wm8350 = priv->wm8350; in wm8350_mic_handler() local
1374 reg = wm8350_reg_read(wm8350, WM8350_JACK_PIN_STATUS); in wm8350_mic_handler()
1402 struct wm8350 *wm8350 = priv->wm8350; in wm8350_mic_jack_detect() local
1409 wm8350_set_bits(wm8350, WM8350_POWER_MGMT_4, WM8350_TOCLK_ENA); in wm8350_mic_jack_detect()
1410 wm8350_set_bits(wm8350, WM8350_POWER_MGMT_1, in wm8350_mic_jack_detect()
1413 wm8350_clear_bits(wm8350, WM8350_POWER_MGMT_1, in wm8350_mic_jack_detect()
1457 struct wm8350 *wm8350 = dev_get_platdata(component->dev); in wm8350_component_probe() local
1463 if (wm8350->codec.platform_data == NULL) { in wm8350_component_probe()
1473 snd_soc_component_init_regmap(component, wm8350->regmap); in wm8350_component_probe()
1476 priv->wm8350 = wm8350; in wm8350_component_probe()
1481 ret = devm_regulator_bulk_get(wm8350->dev, ARRAY_SIZE(priv->supplies), in wm8350_component_probe()
1487 wm8350_clear_bits(wm8350, WM8350_POWER_MGMT_5, WM8350_CODEC_ENA); in wm8350_component_probe()
1494 wm8350_set_bits(wm8350, WM8350_POWER_MGMT_5, WM8350_CODEC_ENA); in wm8350_component_probe()
1504 out1->left_vol = (wm8350_reg_read(wm8350, WM8350_LOUT1_VOLUME) & in wm8350_component_probe()
1506 out1->right_vol = (wm8350_reg_read(wm8350, WM8350_ROUT1_VOLUME) & in wm8350_component_probe()
1508 out2->left_vol = (wm8350_reg_read(wm8350, WM8350_LOUT2_VOLUME) & in wm8350_component_probe()
1510 out2->right_vol = (wm8350_reg_read(wm8350, WM8350_ROUT2_VOLUME) & in wm8350_component_probe()
1512 wm8350_reg_write(wm8350, WM8350_LOUT1_VOLUME, 0); in wm8350_component_probe()
1513 wm8350_reg_write(wm8350, WM8350_ROUT1_VOLUME, 0); in wm8350_component_probe()
1514 wm8350_reg_write(wm8350, WM8350_LOUT2_VOLUME, 0); in wm8350_component_probe()
1515 wm8350_reg_write(wm8350, WM8350_ROUT2_VOLUME, 0); in wm8350_component_probe()
1518 wm8350_set_bits(wm8350, WM8350_LOUT1_VOLUME, in wm8350_component_probe()
1520 wm8350_set_bits(wm8350, WM8350_LOUT2_VOLUME, in wm8350_component_probe()
1522 wm8350_set_bits(wm8350, WM8350_ROUT1_VOLUME, in wm8350_component_probe()
1524 wm8350_set_bits(wm8350, WM8350_ROUT2_VOLUME, in wm8350_component_probe()
1528 wm8350_clear_bits(wm8350, WM8350_AI_FORMATING, WM8350_AIF_TRI); in wm8350_component_probe()
1531 wm8350_clear_bits(wm8350, WM8350_ADC_DAC_COMP, in wm8350_component_probe()
1535 wm8350_clear_bits(wm8350, WM8350_JACK_DETECT, in wm8350_component_probe()
1538 wm8350_register_irq(wm8350, WM8350_IRQ_CODEC_JCK_DET_L, in wm8350_component_probe()
1541 wm8350_register_irq(wm8350, WM8350_IRQ_CODEC_JCK_DET_R, in wm8350_component_probe()
1544 wm8350_register_irq(wm8350, WM8350_IRQ_CODEC_MICSCD, in wm8350_component_probe()
1546 wm8350_register_irq(wm8350, WM8350_IRQ_CODEC_MICD, in wm8350_component_probe()
1555 struct wm8350 *wm8350 = dev_get_platdata(component->dev); in wm8350_component_remove() local
1557 wm8350_clear_bits(wm8350, WM8350_JACK_DETECT, in wm8350_component_remove()
1559 wm8350_clear_bits(wm8350, WM8350_POWER_MGMT_4, WM8350_TOCLK_ENA); in wm8350_component_remove()
1561 wm8350_free_irq(wm8350, WM8350_IRQ_CODEC_MICD, priv); in wm8350_component_remove()
1562 wm8350_free_irq(wm8350, WM8350_IRQ_CODEC_MICSCD, priv); in wm8350_component_remove()
1563 wm8350_free_irq(wm8350, WM8350_IRQ_CODEC_JCK_DET_L, priv); in wm8350_component_remove()
1564 wm8350_free_irq(wm8350, WM8350_IRQ_CODEC_JCK_DET_R, priv); in wm8350_component_remove()
1577 wm8350_clear_bits(wm8350, WM8350_POWER_MGMT_5, WM8350_CODEC_ENA); in wm8350_component_remove()