Lines Matching refs:aw_pa
34 ret = aw88395_dev_start(aw88395->aw_pa); in aw88395_start_pa()
36 dev_err(aw88395->aw_pa->dev, "aw88395 device start failed. retry = %d", i); in aw88395_start_pa()
37 ret = aw88395_dev_fw_update(aw88395->aw_pa, AW88395_DSP_FW_UPDATE_ON, true); in aw88395_start_pa()
39 dev_err(aw88395->aw_pa->dev, "fw update failed"); in aw88395_start_pa()
43 dev_info(aw88395->aw_pa->dev, "start success\n"); in aw88395_start_pa()
63 if (aw88395->aw_pa->fw_status != AW88395_DEV_FW_OK) in aw88395_start()
66 if (aw88395->aw_pa->status == AW88395_DEV_PW_ON) in aw88395_start()
69 ret = aw88395_dev_fw_update(aw88395->aw_pa, AW88395_DSP_FW_UPDATE_OFF, true); in aw88395_start()
71 dev_err(aw88395->aw_pa->dev, "fw update failed."); in aw88395_start()
109 struct aw_device *aw_dev = aw88395->aw_pa; in aw88395_get_fade_in_time()
123 struct aw_device *aw_dev = aw88395->aw_pa; in aw88395_set_fade_in_time()
144 struct aw_device *aw_dev = aw88395->aw_pa; in aw88395_get_fade_out_time()
158 struct aw_device *aw_dev = aw88395->aw_pa; in aw88395_set_fade_out_time()
185 count = aw88395_dev_get_profile_count(aw88395->aw_pa); in aw88395_profile_info()
199 prof_name = aw88395_dev_get_prof_name(aw88395->aw_pa, count); in aw88395_profile_info()
217 ucontrol->value.integer.value[0] = aw88395_dev_get_profile_index(aw88395->aw_pa); in aw88395_profile_get()
231 ret = aw88395_dev_set_profile_index(aw88395->aw_pa, ucontrol->value.integer.value[0]); in aw88395_profile_set()
238 if (aw88395->aw_pa->status) { in aw88395_profile_set()
239 aw88395_dev_stop(aw88395->aw_pa); in aw88395_profile_set()
253 struct aw_volume_desc *vol_desc = &aw88395->aw_pa->volume_desc; in aw88395_volume_get()
265 struct aw_volume_desc *vol_desc = &aw88395->aw_pa->volume_desc; in aw88395_volume_set()
276 aw88395_dev_set_volume(aw88395->aw_pa, vol_desc->ctl_volume); in aw88395_volume_set()
290 ucontrol->value.integer.value[0] = aw88395->aw_pa->fade_step; in aw88395_get_fade_step()
308 if (aw88395->aw_pa->fade_step != value) { in aw88395_set_fade_step()
309 aw88395->aw_pa->fade_step = value; in aw88395_set_fade_step()
321 struct aw_device *aw_dev = aw88395->aw_pa; in aw88395_re_get()
335 struct aw_device *aw_dev = aw88395->aw_pa; in aw88395_re_set()
378 aw88395_dev_stop(aw88395->aw_pa); in aw88395_playback_event()
463 dev_err(aw88395->aw_pa->dev, "%s failed", __func__); in aw88395_hw_reset()
472 aw88395->aw_pa->fw_status = AW88395_DEV_FW_FAILED; in aw88395_request_firmware_file()
474 ret = request_firmware(&cont, AW88395_ACF_FILE, aw88395->aw_pa->dev); in aw88395_request_firmware_file()
476 dev_err(aw88395->aw_pa->dev, "load [%s] failed!", AW88395_ACF_FILE); in aw88395_request_firmware_file()
480 dev_info(aw88395->aw_pa->dev, "loaded %s - size: %zu\n", in aw88395_request_firmware_file()
483 aw88395->aw_cfg = devm_kzalloc(aw88395->aw_pa->dev, cont->size + sizeof(int), GFP_KERNEL); in aw88395_request_firmware_file()
492 ret = aw88395_dev_load_acf_check(aw88395->aw_pa, aw88395->aw_cfg); in aw88395_request_firmware_file()
494 dev_err(aw88395->aw_pa->dev, "Load [%s] failed ....!", AW88395_ACF_FILE); in aw88395_request_firmware_file()
498 dev_dbg(aw88395->aw_pa->dev, "%s : bin load success\n", __func__); in aw88395_request_firmware_file()
502 ret = aw88395_dev_init(aw88395->aw_pa, aw88395->aw_cfg); in aw88395_request_firmware_file()
504 dev_err(aw88395->aw_pa->dev, "dev init failed"); in aw88395_request_firmware_file()
542 ret = aw88395_init(&aw88395->aw_pa, i2c, aw88395->regmap); in aw88395_i2c_probe()