Lines Matching refs:aw_pa
71 aw883xx->aw_pa->platform = AW_QCOM; in aw883xx_platform_init()
74 aw883xx->aw_pa->platform = AW_MTK; in aw883xx_platform_init()
77 aw883xx->aw_pa->platform = AW_SPRD; in aw883xx_platform_init()
360 struct aw_dsp_mem_desc *desc = &aw883xx->aw_pa->dsp_mem_desc; in aw883xx_dsp_write_16bit()
382 struct aw_dsp_mem_desc *desc = &aw883xx->aw_pa->dsp_mem_desc; in aw883xx_dsp_write_32bit()
413 uint8_t reg = aw883xx->aw_pa->soft_rst.reg; in aw883xx_clear_dsp_sel_st()
456 struct aw_dsp_mem_desc *desc = &aw883xx->aw_pa->dsp_mem_desc; in aw883xx_dsp_read_16bit()
480 struct aw_dsp_mem_desc *desc = &aw883xx->aw_pa->dsp_mem_desc; in aw883xx_dsp_read_32bit()
562 ret = aw_dev_get_int_status(aw883xx->aw_pa, ®_value); in aw883xx_interrupt_work()
569 aw_dev_clear_int_status(aw883xx->aw_pa); in aw883xx_interrupt_work()
572 aw_dev_set_intmask(aw883xx->aw_pa, true); in aw883xx_interrupt_work()
590 if (AW_ERRO_CALI_RE_VALUE == aw883xx->aw_pa->cali_desc.cali_re) in aw883xx_startup()
591 aw_cali_get_cali_re(&aw883xx->aw_pa->cali_desc); in aw883xx_startup()
680 ret = aw_device_start(aw883xx->aw_pa); in aw883xx_start_pa()
683 ret = aw_dev_fw_update(aw883xx->aw_pa, AW_DSP_FW_UPDATE_ON, true); in aw883xx_start_pa()
710 if (aw883xx->aw_pa->fw_status == AW_DEV_FW_OK) { in aw883xx_start()
716 if (aw883xx->aw_pa->status == AW_DEV_PW_ON) in aw883xx_start()
720 ret = aw_dev_fw_update(aw883xx->aw_pa, AW_DSP_FW_UPDATE_OFF, in aw883xx_start()
757 aw_device_stop(aw883xx->aw_pa); in aw883xx_mute()
763 aw_hold_dsp_spin_st(&aw883xx->aw_pa->spin_desc); in aw883xx_mute()
930 if (aw883xx->aw_pa->channel == 0) { in aw883xx_add_codec_controls()
951 count = aw_dev_get_profile_count(aw883xx->aw_pa); in aw883xx_profile_info()
966 prof_name = aw_dev_get_prof_name(aw883xx->aw_pa, count); in aw883xx_profile_info()
986 ucontrol->value.integer.value[0] = aw_dev_get_profile_index(aw883xx->aw_pa); in aw883xx_profile_get()
988 aw_dev_get_profile_index(aw883xx->aw_pa)); in aw883xx_profile_get()
1009 ret = aw_dev_check_profile_index(aw883xx->aw_pa, ucontrol->value.integer.value[0]); in aw883xx_profile_set()
1017 cur_index = aw_dev_get_profile_index(aw883xx->aw_pa); in aw883xx_profile_set()
1025 aw_dev_set_profile_index(aw883xx->aw_pa, ucontrol->value.integer.value[0]); in aw883xx_profile_set()
1028 aw_device_stop(aw883xx->aw_pa); in aw883xx_profile_set()
1091 aw_device_stop(aw883xx->aw_pa); in aw883xx_switch_set()
1141 struct aw_monitor_desc *monitor_desc = &aw883xx->aw_pa->monitor_desc; in aw883xx_monitor_switch_get()
1155 struct aw_monitor_desc *monitor_desc = &aw883xx->aw_pa->monitor_desc; in aw883xx_monitor_switch_set()
1191 aw883xx->aw_pa->channel); in aw883xx_dynamic_create_controls()
1203 snprintf(kctl_name, AW_NAME_BUF_MAX, "aw_dev_%u_switch", aw883xx->aw_pa->channel); in aw883xx_dynamic_create_controls()
1215 snprintf(kctl_name, AW_NAME_BUF_MAX, "aw_dev_%u_monitor_switch", aw883xx->aw_pa->channel); in aw883xx_dynamic_create_controls()
1236 aw883xx->aw_pa->fw_status = AW_DEV_FW_FAILED; in aw883xx_request_firmware_file()
1291 ret = aw_device_init(aw883xx->aw_pa, aw_cfg); in aw883xx_request_firmware_file()
1300 aw_check_spin_mode(&aw883xx->aw_pa->spin_desc); in aw883xx_request_firmware_file()
1322 if (aw883xx->aw_pa->platform == AW_QCOM) { in aw883xx_load_fw()
1470 cancel_delayed_work_sync(&aw883xx->aw_pa->monitor_desc.delay_work); in aw883xx_codec_remove()
1476 aw_dev_deinit(aw883xx->aw_pa); in aw883xx_codec_remove()
1488 cancel_delayed_work_sync(&aw883xx->aw_pa->monitor_desc.delay_work); in aw883xx_codec_remove()
1494 aw_dev_deinit(aw883xx->aw_pa); in aw883xx_codec_remove()
1552 aw883xx->aw_pa = NULL; in aw883xx_malloc_init()
1692 aw_dev_set_intmask(aw883xx->aw_pa, false); in aw883xx_irq()
1735 int reg_num = aw883xx->aw_pa->ops.aw_get_reg_num(); in aw883xx_reg_show()
1741 if (aw883xx->aw_pa->ops.aw_check_rd_access(i)) { in aw883xx_reg_show()
1773 if (aw883xx->aw_pa->ops.aw_check_rd_access(databuf[0])) in aw883xx_rw_store()
1789 if (aw883xx->aw_pa->ops.aw_check_rd_access(aw883xx->reg_addr)) { in aw883xx_rw_show()
1818 aw883xx_i2c_write(aw883xx, aw883xx->aw_pa->dsp_mem_desc.dsp_madd_reg, aw883xx->dsp_addr); in aw883xx_dsp_rw_show()
1819 aw883xx_i2c_read(aw883xx, aw883xx->aw_pa->dsp_mem_desc.dsp_mdat_reg, ®_val); in aw883xx_dsp_rw_show()
1822 aw883xx_i2c_read(aw883xx, aw883xx->aw_pa->dsp_mem_desc.dsp_mdat_reg, ®_val); in aw883xx_dsp_rw_show()
1870 if (packet->reg_addr == aw883xx->aw_pa->dsp_mem_desc.dsp_madd_reg) { in aw883xx_awrw_write()
1884 if (packet->reg_addr == aw883xx->aw_pa->dsp_mem_desc.dsp_mdat_reg) { in aw883xx_awrw_write()
1890 aw883xx_i2c_write(aw883xx, aw883xx->aw_pa->dsp_mem_desc.dsp_madd_reg, packet->dsp_addr); in aw883xx_awrw_write()
2010 if (packet->reg_addr == aw883xx->aw_pa->dsp_mem_desc.dsp_mdat_reg) { in aw883xx_awrw_show()
2016 ret = aw883xx_i2c_write(aw883xx, aw883xx->aw_pa->dsp_mem_desc.dsp_madd_reg, packet->dsp_addr); in aw883xx_awrw_show()
2065 if (databuf > (aw883xx->aw_pa->volume_desc.mute_volume)) { in aw883xx_fade_step_store()
2069 aw_dev_set_fade_vol_step(aw883xx->aw_pa, databuf); in aw883xx_fade_step_store()
2083 "step: %d \n", aw_dev_get_fade_vol_step(aw883xx->aw_pa)); in aw883xx_fade_step_show()
2125 ret = aw_cali_svc_get_dev_te(&aw883xx->aw_pa->cali_desc, &te); in aw883xx_spk_temp_show()
2175 aw883xx->aw_pa->fade_en = fade_en; in aw883xx_fade_enable_store()
2177 aw_dev_info(aw883xx->dev, "set fade_en %d", aw883xx->aw_pa->fade_en); in aw883xx_fade_enable_store()
2189 "fade_en: %d\n", aw883xx->aw_pa->fade_en); in aw883xx_fade_enable_show()
2202 ret = aw_cali_read_cali_re_from_dsp(&aw883xx->aw_pa->cali_desc, &read_re); in aw883xx_dsp_re_show()
2257 aw883xx_i2c_write(aw883xx, aw883xx->aw_pa->dsp_mem_desc.dsp_madd_reg, base_addr); in aw883xx_dsp_log_info()
2260 aw883xx_i2c_read(aw883xx, aw883xx->aw_pa->dsp_mem_desc.dsp_mdat_reg, ®_val); in aw883xx_dsp_log_info()
2294 if (aw883xx->aw_pa->dsp_cfg == AW_DEV_DSP_BYPASS) { in aw883xx_dsp_show()
2300 ret = aw_dev_get_iis_status(aw883xx->aw_pa); in aw883xx_dsp_show()
2313 aw_dev_info(aw883xx->dev, "dsp_firmware_len:%d", aw883xx->aw_pa->dsp_fw_len); in aw883xx_dsp_show()
2314 ret = aw883xx_dsp_log_info(aw883xx, aw883xx->aw_pa->dsp_mem_desc.dsp_fw_base_addr, in aw883xx_dsp_show()
2315 aw883xx->aw_pa->dsp_fw_len, "dsp_fw"); in aw883xx_dsp_show()
2321 aw_dev_info(aw883xx->dev, "dsp_config_len:%d", aw883xx->aw_pa->dsp_cfg_len); in aw883xx_dsp_show()
2322 ret = aw883xx_dsp_log_info(aw883xx, aw883xx->aw_pa->dsp_mem_desc.dsp_cfg_base_addr, in aw883xx_dsp_show()
2323 aw883xx->aw_pa->dsp_cfg_len, "dsp_config"); in aw883xx_dsp_show()
2330 data_len = 2 * (aw883xx->aw_pa->dsp_st_desc.dsp_reg_e1 - in aw883xx_dsp_show()
2331 aw883xx->aw_pa->dsp_st_desc.dsp_reg_s1); in aw883xx_dsp_show()
2332 ret = aw883xx_dsp_log_info(aw883xx, aw883xx->aw_pa->dsp_st_desc.dsp_reg_s1, in aw883xx_dsp_show()
2340 data_len = 2 * (aw883xx->aw_pa->dsp_st_desc.dsp_reg_e2 - in aw883xx_dsp_show()
2341 aw883xx->aw_pa->dsp_st_desc.dsp_reg_s2); in aw883xx_dsp_show()
2342 ret = aw883xx_dsp_log_info(aw883xx, aw883xx->aw_pa->dsp_st_desc.dsp_reg_s2, in aw883xx_dsp_show()
2514 aw_device_remove(aw883xx->aw_pa); in aw883xx_i2c_remove()