Lines Matching refs:hsw

136 	struct sst_hsw *hsw;  member
190 struct sst_hsw *hsw = pdata->hsw; in hsw_stream_volume_put() local
216 sst_hsw_stream_set_volume(hsw, pcm_data->stream, 0, SST_HSW_CHANNELS_ALL, volume); in hsw_stream_volume_put()
219 sst_hsw_stream_set_volume(hsw, pcm_data->stream, 0, 0, volume); in hsw_stream_volume_put()
221 sst_hsw_stream_set_volume(hsw, pcm_data->stream, 0, 1, volume); in hsw_stream_volume_put()
239 struct sst_hsw *hsw = pdata->hsw; in hsw_stream_volume_get() local
261 sst_hsw_stream_get_volume(hsw, pcm_data->stream, 0, 0, &volume); in hsw_stream_volume_get()
263 sst_hsw_stream_get_volume(hsw, pcm_data->stream, 0, 1, &volume); in hsw_stream_volume_get()
278 struct sst_hsw *hsw = pdata->hsw; in hsw_volume_put() local
287 sst_hsw_mixer_set_volume(hsw, 0, SST_HSW_CHANNELS_ALL, volume); in hsw_volume_put()
291 sst_hsw_mixer_set_volume(hsw, 0, 0, volume); in hsw_volume_put()
294 sst_hsw_mixer_set_volume(hsw, 0, 1, volume); in hsw_volume_put()
307 struct sst_hsw *hsw = pdata->hsw; in hsw_volume_get() local
311 sst_hsw_mixer_get_volume(hsw, 0, 0, &volume); in hsw_volume_get()
314 sst_hsw_mixer_get_volume(hsw, 0, 1, &volume); in hsw_volume_get()
327 struct sst_hsw *hsw = pdata->hsw; in hsw_waves_switch_get() local
331 (sst_hsw_is_module_active(hsw, id) || in hsw_waves_switch_get()
332 sst_hsw_is_module_enabled_rtd3(hsw, id)); in hsw_waves_switch_get()
341 struct sst_hsw *hsw = pdata->hsw; in hsw_waves_switch_put() local
349 if (sst_hsw_is_module_loaded(hsw, id)) { in hsw_waves_switch_put()
350 if (switch_on == sst_hsw_is_module_active(hsw, id)) in hsw_waves_switch_put()
354 ret = sst_hsw_module_enable(hsw, id, 0); in hsw_waves_switch_put()
356 ret = sst_hsw_module_disable(hsw, id, 0); in hsw_waves_switch_put()
358 if (switch_on == sst_hsw_is_module_enabled_rtd3(hsw, id)) in hsw_waves_switch_put()
362 sst_hsw_set_module_enabled_rtd3(hsw, id); in hsw_waves_switch_put()
364 sst_hsw_set_module_disabled_rtd3(hsw, id); in hsw_waves_switch_put()
375 struct sst_hsw *hsw = pdata->hsw; in hsw_waves_param_get() local
378 return sst_hsw_load_param_line(hsw, ucontrol->value.bytes.data); in hsw_waves_param_get()
386 struct sst_hsw *hsw = pdata->hsw; in hsw_waves_param_put() local
394 sst_hsw_reset_param_buf(hsw); in hsw_waves_param_put()
399 ret = sst_hsw_store_param_line(hsw, ucontrol->value.bytes.data); in hsw_waves_param_put()
403 if (sst_hsw_is_module_active(hsw, id)) in hsw_waves_param_put()
404 ret = sst_hsw_module_set_param(hsw, id, 0, param_id, in hsw_waves_param_put()
478 struct sst_hsw *hsw = pdata->hsw; in hsw_pcm_hw_params() local
493 ret = sst_hsw_stream_reset(hsw, pcm_data->stream); in hsw_pcm_hw_params()
498 ret = sst_hsw_stream_free(hsw, pcm_data->stream); in hsw_pcm_hw_params()
506 pcm_data->stream = sst_hsw_stream_new(hsw, rtd->cpu_dai->id, in hsw_pcm_hw_params()
549 ret = sst_hsw_stream_format(hsw, pcm_data->stream, in hsw_pcm_hw_params()
557 ret = sst_hsw_stream_set_rate(hsw, pcm_data->stream, rate); in hsw_pcm_hw_params()
566 sst_hsw_stream_set_valid(hsw, pcm_data->stream, 16); in hsw_pcm_hw_params()
570 sst_hsw_stream_set_valid(hsw, pcm_data->stream, 24); in hsw_pcm_hw_params()
574 sst_hsw_stream_set_valid(hsw, pcm_data->stream, 8); in hsw_pcm_hw_params()
578 sst_hsw_stream_set_valid(hsw, pcm_data->stream, 32); in hsw_pcm_hw_params()
586 ret = sst_hsw_stream_set_bits(hsw, pcm_data->stream, bits); in hsw_pcm_hw_params()
594 sst_hsw_stream_set_map_config(hsw, pcm_data->stream, in hsw_pcm_hw_params()
597 ret = sst_hsw_stream_set_channels(hsw, pcm_data->stream, channels); in hsw_pcm_hw_params()
618 sst_hsw_stream_set_style(hsw, pcm_data->stream, in hsw_pcm_hw_params()
626 ret = sst_hsw_stream_buffer(hsw, pcm_data->stream, in hsw_pcm_hw_params()
635 dsp = sst_hsw_get_dsp(hsw); in hsw_pcm_hw_params()
643 sst_hsw_stream_set_module_info(hsw, pcm_data->stream, in hsw_pcm_hw_params()
646 ret = sst_hsw_stream_commit(hsw, pcm_data->stream); in hsw_pcm_hw_params()
654 sst_hsw_stream_set_volume(hsw, pcm_data->stream, 0, in hsw_pcm_hw_params()
656 sst_hsw_stream_set_volume(hsw, pcm_data->stream, 0, in hsw_pcm_hw_params()
661 ret = sst_hsw_stream_pause(hsw, pcm_data->stream, 1); in hsw_pcm_hw_params()
681 struct sst_hsw *hsw = pdata->hsw; in hsw_pcm_trigger() local
694 sst_hsw_stream_set_silence_start(hsw, sst_stream, false); in hsw_pcm_trigger()
695 sst_hsw_stream_resume(hsw, pcm_data->stream, 0); in hsw_pcm_trigger()
700 sst_hsw_stream_set_silence_start(hsw, sst_stream, false); in hsw_pcm_trigger()
701 sst_hsw_stream_pause(hsw, pcm_data->stream, 0); in hsw_pcm_trigger()
705 sst_hsw_stream_set_old_position(hsw, pcm_data->stream, pos); in hsw_pcm_trigger()
706 sst_hsw_stream_set_silence_start(hsw, sst_stream, true); in hsw_pcm_trigger()
723 struct sst_hsw *hsw = pdata->hsw; in hsw_notify_pointer() local
726 sst_hsw_get_dsp_position(hsw, pcm_data->stream)); in hsw_notify_pointer()
743 || !sst_hsw_stream_get_silence_start(hsw, stream)) { in hsw_notify_pointer()
748 old_position = sst_hsw_stream_get_old_position(hsw, stream); in hsw_notify_pointer()
775 sst_hsw_stream_set_old_position(hsw, stream, position); in hsw_notify_pointer()
789 struct sst_hsw *hsw = pdata->hsw; in hsw_pcm_pointer() local
797 position = sst_hsw_get_dsp_position(hsw, pcm_data->stream); in hsw_pcm_pointer()
800 ppos = sst_hsw_get_dsp_presentation_position(hsw, pcm_data->stream); in hsw_pcm_pointer()
813 struct sst_hsw *hsw = pdata->hsw; in hsw_pcm_open() local
827 pcm_data->stream = sst_hsw_stream_new(hsw, rtd->cpu_dai->id, in hsw_pcm_open()
847 struct sst_hsw *hsw = pdata->hsw; in hsw_pcm_close() local
854 ret = sst_hsw_stream_reset(hsw, pcm_data->stream); in hsw_pcm_close()
860 ret = sst_hsw_stream_free(hsw, pcm_data->stream); in hsw_pcm_close()
888 struct sst_hsw *hsw = pdata->hsw; in hsw_pcm_create_modules() local
896 pcm_data->runtime = sst_hsw_runtime_module_create(hsw, in hsw_pcm_create_modules()
905 if (sst_hsw_is_module_loaded(hsw, SST_HSW_MODULE_WAVES)) { in hsw_pcm_create_modules()
906 pdata->runtime_waves = sst_hsw_runtime_module_create(hsw, in hsw_pcm_create_modules()
925 struct sst_hsw *hsw = pdata->hsw; in hsw_pcm_free_modules() local
933 if (sst_hsw_is_module_loaded(hsw, SST_HSW_MODULE_WAVES)) { in hsw_pcm_free_modules()
1064 priv_data->hsw = pdata->dsp; in hsw_pcm_probe()
1168 priv_data->hsw = sst_pdata->dsp; in hsw_pcm_dev_probe()
1210 struct sst_hsw *hsw = pdata->hsw; in hsw_pcm_runtime_suspend() local
1217 if (sst_hsw_is_module_active(hsw, SST_HSW_MODULE_WAVES)) { in hsw_pcm_runtime_suspend()
1218 ret = sst_hsw_module_disable(hsw, SST_HSW_MODULE_WAVES, 0); in hsw_pcm_runtime_suspend()
1221 sst_hsw_set_module_enabled_rtd3(hsw, SST_HSW_MODULE_WAVES); in hsw_pcm_runtime_suspend()
1223 sst_hsw_dsp_runtime_suspend(hsw); in hsw_pcm_runtime_suspend()
1224 sst_hsw_dsp_runtime_sleep(hsw); in hsw_pcm_runtime_suspend()
1233 struct sst_hsw *hsw = pdata->hsw; in hsw_pcm_runtime_resume() local
1239 ret = sst_hsw_dsp_load(hsw); in hsw_pcm_runtime_resume()
1251 ret = sst_hsw_dsp_runtime_resume(hsw); in hsw_pcm_runtime_resume()
1258 if (sst_hsw_is_module_enabled_rtd3(hsw, SST_HSW_MODULE_WAVES)) { in hsw_pcm_runtime_resume()
1259 ret = sst_hsw_module_enable(hsw, SST_HSW_MODULE_WAVES, 0); in hsw_pcm_runtime_resume()
1263 ret = sst_hsw_launch_param_buf(hsw); in hsw_pcm_runtime_resume()
1267 sst_hsw_set_module_disabled_rtd3(hsw, SST_HSW_MODULE_WAVES); in hsw_pcm_runtime_resume()
1285 struct sst_hsw *hsw = pdata->hsw; in hsw_pcm_complete() local
1292 err = sst_hsw_dsp_load(hsw); in hsw_pcm_complete()
1318 err = sst_hsw_dsp_runtime_resume(hsw); in hsw_pcm_complete()
1331 struct sst_hsw *hsw = pdata->hsw; in hsw_pcm_prepare() local
1365 sst_hsw_dsp_runtime_suspend(hsw); in hsw_pcm_prepare()
1367 sst_hsw_dsp_runtime_sleep(hsw); in hsw_pcm_prepare()