/kernel/linux/linux-5.10/sound/soc/intel/skylake/ |
H A D | bxt-sst.c | 17 #include "skl.h" 49 struct skl_dev *skl = ctx->thread_context; in bxt_load_library() local 55 ret = skl_prepare_lib_load(skl, &skl->lib_info[i], &stripped_fw, in bxt_load_library() 73 ret = skl_sst_ipc_load_library(&skl->ipc, dma_id, i, true); in bxt_load_library() 184 struct skl_dev *skl = ctx->thread_context; in bxt_load_base_firmware() local 196 if (skl->is_first_boot) { in bxt_load_base_firmware() 232 ret = wait_event_timeout(skl->boot_wait, skl->boot_complete, in bxt_load_base_firmware() 240 skl in bxt_load_base_firmware() 268 struct skl_dev *skl = ctx->thread_context; bxt_d0i3_target_state() local 288 struct skl_dev *skl = container_of(work, bxt_set_dsp_D0i3() local 331 struct skl_dev *skl = ctx->thread_context; bxt_schedule_dsp_D0i3() local 350 struct skl_dev *skl = ctx->thread_context; bxt_set_dsp_D0i0() local 389 struct skl_dev *skl = ctx->thread_context; bxt_set_dsp_D0() local 486 struct skl_dev *skl = ctx->thread_context; bxt_set_dsp_D3() local 548 struct skl_dev *skl; bxt_sst_dsp_init() local 589 bxt_sst_init_fw(struct device *dev, struct skl_dev *skl) bxt_sst_init_fw() argument 616 bxt_sst_dsp_cleanup(struct device *dev, struct skl_dev *skl) bxt_sst_dsp_cleanup() argument [all...] |
H A D | skl.c | 3 * skl.c - Implementation of ASoC Intel SKL HD Audio driver 31 #include "skl.h" 32 #include "skl-sst-dsp.h" 33 #include "skl-sst-ipc.h" 56 static void skl_init_pci(struct skl_dev *skl) in skl_init_pci() argument 58 struct hdac_bus *bus = skl_to_bus(skl); in skl_init_pci() 68 skl_update_pci_byte(skl->pci, AZX_PCIREG_TCSEL, 0x07, 0); in skl_init_pci() 260 struct skl_dev *skl = bus_to_skl(bus); in skl_acquire_irq() local 263 ret = request_threaded_irq(skl->pci->irq, skl_interrupt, in skl_acquire_irq() 270 skl in skl_acquire_irq() 284 struct skl_dev *skl = bus_to_skl(bus); skl_suspend_late() local 292 struct skl_dev *skl = bus_to_skl(bus); _skl_suspend() local 315 struct skl_dev *skl = bus_to_skl(bus); _skl_resume() local 333 struct skl_dev *skl = bus_to_skl(bus); skl_suspend() local 363 struct skl_dev *skl = bus_to_skl(bus); skl_resume() local 438 struct skl_dev *skl = bus_to_skl(bus); skl_free() local 483 skl_find_hda_machine(struct skl_dev *skl, struct snd_soc_acpi_mach *machines) skl_find_hda_machine() argument 497 skl_find_machine(struct skl_dev *skl, void *driver_data) skl_find_machine() argument 527 skl_machine_device_register(struct skl_dev *skl) skl_machine_device_register() argument 563 skl_machine_device_unregister(struct skl_dev *skl) skl_machine_device_unregister() argument 569 skl_dmic_device_register(struct skl_dev *skl) skl_dmic_device_register() argument 593 skl_dmic_device_unregister(struct skl_dev *skl) skl_dmic_device_unregister() argument 631 skl_clock_device_register(struct skl_dev *skl) skl_clock_device_register() argument 664 skl_clock_device_unregister(struct skl_dev *skl) skl_clock_device_unregister() argument 700 struct skl_dev *skl = bus_to_skl(bus); probe_codec() local 795 struct skl_dev *skl = container_of(work, struct skl_dev, probe_work); skl_probe_work() local 863 struct skl_dev *skl; skl_create() local 907 struct skl_dev *skl = bus_to_skl(bus); skl_first_init() local 977 struct skl_dev *skl; skl_probe() local 1093 struct skl_dev *skl; skl_shutdown() local 1118 struct skl_dev *skl = bus_to_skl(bus); skl_remove() local [all...] |
H A D | Makefile | 2 snd-soc-skl-objs := skl.o skl-pcm.o skl-nhlt.o skl-messages.o skl-topology.o \ 3 skl-sst-ipc.o skl-sst-dsp.o cnl-sst-dsp.o skl-sst-cldma.o \ 4 skl [all...] |
H A D | skl-messages.c | 3 * skl-message.c - HDA DSP interface for FW registration, Pipe and Module 16 #include <uapi/sound/skl-tplg-interface.h> 17 #include "skl-sst-dsp.h" 19 #include "skl-sst-ipc.h" 20 #include "skl.h" 23 #include "skl-topology.h" 39 void skl_dsp_set_astate_cfg(struct skl_dev *skl, u32 cnt, void *data) in skl_dsp_set_astate_cfg() argument 47 skl_ipc_set_large_config(&skl->ipc, &msg, data); in skl_dsp_set_astate_cfg() 251 int skl_init_dsp(struct skl_dev *skl) in skl_init_dsp() argument 254 struct hdac_bus *bus = skl_to_bus(skl); in skl_init_dsp() 316 skl_free_dsp(struct skl_dev *skl) skl_free_dsp() argument 341 skl_suspend_late_dsp(struct skl_dev *skl) skl_suspend_late_dsp() argument 360 skl_suspend_dsp(struct skl_dev *skl) skl_suspend_dsp() argument 380 skl_resume_dsp(struct skl_dev *skl) skl_resume_dsp() argument 444 skl_set_base_module_format(struct skl_dev *skl, struct skl_module_cfg *mconfig, struct skl_base_cfg *base_cfg) skl_set_base_module_format() argument 498 skl_get_node_id(struct skl_dev *skl, struct skl_module_cfg *mconfig) skl_get_node_id() argument 555 skl_setup_cpr_gateway_cfg(struct skl_dev *skl, struct skl_module_cfg *mconfig, struct skl_cpr_cfg *cpr_mconfig) skl_setup_cpr_gateway_cfg() argument 620 skl_dsp_set_dma_control(struct skl_dev *skl, u32 *caps, u32 caps_size, u32 node_id) skl_dsp_set_dma_control() argument 660 skl_setup_out_format(struct skl_dev *skl, struct skl_module_cfg *mconfig, struct skl_audio_data_format *out_fmt) skl_setup_out_format() argument 687 skl_set_src_format(struct skl_dev *skl, struct skl_module_cfg *mconfig, struct skl_src_module_cfg *src_mconfig) skl_set_src_format() argument 706 skl_set_updown_mixer_format(struct skl_dev *skl, struct skl_module_cfg *mconfig, struct skl_up_down_mixer_cfg *mixer_mconfig) skl_set_updown_mixer_format() argument 727 skl_set_copier_format(struct skl_dev *skl, struct skl_module_cfg *mconfig, struct skl_cpr_cfg *cpr_mconfig) skl_set_copier_format() argument 745 skl_set_algo_format(struct skl_dev *skl, struct skl_module_cfg *mconfig, struct skl_algo_cfg *algo_mcfg) skl_set_algo_format() argument 769 skl_set_base_outfmt_format(struct skl_dev *skl, struct skl_module_cfg *mconfig, struct skl_base_outfmt_cfg *base_outfmt_mcfg) skl_set_base_outfmt_format() argument 781 skl_get_module_param_size(struct skl_dev *skl, struct skl_module_cfg *mconfig) skl_get_module_param_size() argument 829 skl_set_module_format(struct skl_dev *skl, struct skl_module_cfg *module_config, u16 *module_config_size, void **param_data) skl_set_module_format() argument 979 skl_init_module(struct skl_dev *skl, struct skl_module_cfg *mconfig) skl_init_module() argument 1021 skl_dump_bind_info(struct skl_dev *skl, struct skl_module_cfg *src_module, struct skl_module_cfg *dst_module) skl_dump_bind_info() argument 1038 skl_unbind_modules(struct skl_dev *skl, struct skl_module_cfg *src_mcfg, struct skl_module_cfg *dst_mcfg) skl_unbind_modules() argument 1117 skl_bind_modules(struct skl_dev *skl, struct skl_module_cfg *src_mcfg, struct skl_module_cfg *dst_mcfg) skl_bind_modules() argument 1198 skl_set_pipe_state(struct skl_dev *skl, struct skl_pipe *pipe, enum skl_ipc_pipeline_state state) skl_set_pipe_state() argument 1212 skl_create_pipeline(struct skl_dev *skl, struct skl_pipe *pipe) skl_create_pipeline() argument 1237 skl_delete_pipe(struct skl_dev *skl, struct skl_pipe *pipe) skl_delete_pipe() argument 1283 skl_run_pipe(struct skl_dev *skl, struct skl_pipe *pipe) skl_run_pipe() argument 1317 skl_stop_pipe(struct skl_dev *skl, struct skl_pipe *pipe) skl_stop_pipe() argument 1342 skl_reset_pipe(struct skl_dev *skl, struct skl_pipe *pipe) skl_reset_pipe() argument 1362 skl_set_module_params(struct skl_dev *skl, u32 *params, int size, u32 param_id, struct skl_module_cfg *mcfg) skl_set_module_params() argument 1375 skl_get_module_params(struct skl_dev *skl, u32 *params, int size, u32 param_id, struct skl_module_cfg *mcfg) skl_get_module_params() argument [all...] |
H A D | skl-sst.c | 3 * skl-sst.c - HDA DSP library functions for SKL platform 19 #include "skl.h" 69 struct skl_dev *skl = ctx->thread_context; in skl_load_base_firmware() local 73 skl->boot_complete = false; in skl_load_base_firmware() 74 init_waitqueue_head(&skl->boot_wait); in skl_load_base_firmware() 85 if (skl->is_first_boot) { in skl_load_base_firmware() 139 ret = wait_event_timeout(skl->boot_wait, skl->boot_complete, in skl_load_base_firmware() 148 skl->fw_loaded = true; in skl_load_base_firmware() 164 struct skl_dev *skl in skl_set_dsp_D0() local 218 struct skl_dev *skl = ctx->thread_context; skl_set_dsp_D3() local 335 struct skl_dev *skl = ctx->thread_context; skl_transfer_module() local 387 struct skl_dev *skl = ctx->thread_context; skl_load_library() local 445 struct skl_dev *skl = ctx->thread_context; skl_unload_module() local 521 struct skl_dev *skl; skl_sst_dsp_init() local 555 skl_sst_init_fw(struct device *dev, struct skl_dev *skl) skl_sst_init_fw() argument 582 skl_sst_dsp_cleanup(struct device *dev, struct skl_dev *skl) skl_sst_dsp_cleanup() argument [all...] |
H A D | skl.h | 3 * skl.h - HD Audio skylake defintions. 19 #include "skl-ssp-clk.h" 20 #include "skl-sst-ipc.h" 161 int (*init_fw)(struct device *dev, struct skl_dev *skl); 162 void (*cleanup)(struct device *dev, struct skl_dev *skl); 168 struct nhlt_specific_cfg *skl_get_ep_blob(struct skl_dev *skl, u32 instance, 172 int skl_nhlt_update_topology_bin(struct skl_dev *skl); 173 int skl_init_dsp(struct skl_dev *skl); 174 int skl_free_dsp(struct skl_dev *skl); 175 int skl_suspend_late_dsp(struct skl_dev *skl); 197 skl_debugfs_init(struct skl_dev *skl) skl_debugfs_init() argument 202 skl_debugfs_exit(struct skl_dev *skl) skl_debugfs_exit() argument [all...] |
H A D | skl-topology.c | 3 * skl-topology.c - Implements Platform component ALSA controls/widget 20 #include <uapi/sound/skl-tplg-interface.h> 21 #include "skl-sst-dsp.h" 22 #include "skl-sst-ipc.h" 23 #include "skl-topology.h" 24 #include "skl.h" 50 void skl_tplg_d0i3_get(struct skl_dev *skl, enum d0i3_capability caps) in skl_tplg_d0i3_get() argument 52 struct skl_d0i3_data *d0i3 = &skl->d0i3; in skl_tplg_d0i3_get() 69 void skl_tplg_d0i3_put(struct skl_dev *skl, enum d0i3_capability caps) in skl_tplg_d0i3_put() argument 71 struct skl_d0i3_data *d0i3 = &skl in skl_tplg_d0i3_put() 114 skl_dump_mconfig(struct skl_dev *skl, struct skl_module_cfg *mcfg) skl_dump_mconfig() argument 232 skl_tplg_update_buffer_size(struct skl_dev *skl, struct skl_module_cfg *mcfg) skl_tplg_update_buffer_size() argument 283 skl_tplg_update_be_blob(struct snd_soc_dapm_widget *w, struct skl_dev *skl) skl_tplg_update_be_blob() argument 344 skl_tplg_update_module_params(struct snd_soc_dapm_widget *w, struct skl_dev *skl) skl_tplg_update_module_params() argument 379 skl_tplg_set_module_params(struct snd_soc_dapm_widget *w, struct skl_dev *skl) skl_tplg_set_module_params() argument 451 skl_tplg_module_prepare(struct skl_dev *skl, struct skl_pipe *pipe, struct snd_soc_dapm_widget *w, struct skl_module_cfg *mcfg) skl_tplg_module_prepare() argument 471 skl_tplg_init_pipe_modules(struct skl_dev *skl, struct skl_pipe *pipe) skl_tplg_init_pipe_modules() argument 549 skl_tplg_unload_pipe_modules(struct skl_dev *skl, struct skl_pipe *pipe) skl_tplg_unload_pipe_modules() argument 582 skl_tplg_is_multi_fmt(struct skl_dev *skl, struct skl_pipe *pipe) skl_tplg_is_multi_fmt() argument 622 skl_tplg_get_pipe_config(struct skl_dev *skl, struct skl_module_cfg *mconfig) skl_tplg_get_pipe_config() argument 687 skl_tplg_mixer_dapm_pre_pmu_event(struct snd_soc_dapm_widget *w, struct skl_dev *skl) skl_tplg_mixer_dapm_pre_pmu_event() argument 749 skl_fill_sink_instance_id(struct skl_dev *skl, u32 *params, int size, struct skl_module_cfg *mcfg) skl_fill_sink_instance_id() argument 779 skl_tplg_set_module_bind_params(struct snd_soc_dapm_widget *w, struct skl_module_cfg *mcfg, struct skl_dev *skl) skl_tplg_set_module_bind_params() argument 841 skl_get_module_id(struct skl_dev *skl, guid_t *uuid) skl_get_module_id() argument 853 skl_tplg_find_moduleid_from_uuid(struct skl_dev *skl, const struct snd_kcontrol_new *k) skl_tplg_find_moduleid_from_uuid() argument 897 skl_tplg_add_moduleid_in_bind_params(struct skl_dev *skl, struct snd_soc_dapm_widget *w) skl_tplg_add_moduleid_in_bind_params() argument 921 skl_tplg_module_add_deferred_bind(struct skl_dev *skl, struct skl_module_cfg *src, struct skl_module_cfg *dst) skl_tplg_module_add_deferred_bind() argument 958 skl_tplg_bind_sinks(struct snd_soc_dapm_widget *w, struct skl_dev *skl, struct snd_soc_dapm_widget *src_w, struct skl_module_cfg *src_mconfig) skl_tplg_bind_sinks() argument 1058 skl_tplg_pga_dapm_pre_pmu_event(struct snd_soc_dapm_widget *w, struct skl_dev *skl) skl_tplg_pga_dapm_pre_pmu_event() argument 1082 skl_get_src_dsp_widget( struct snd_soc_dapm_widget *w, struct skl_dev *skl) skl_get_src_dsp_widget() argument 1122 skl_tplg_mixer_dapm_post_pmu_event(struct snd_soc_dapm_widget *w, struct skl_dev *skl) skl_tplg_mixer_dapm_post_pmu_event() argument 1174 skl_tplg_mixer_dapm_pre_pmd_event(struct snd_soc_dapm_widget *w, struct skl_dev *skl) skl_tplg_mixer_dapm_pre_pmd_event() argument 1207 skl_tplg_mixer_dapm_post_pmd_event(struct snd_soc_dapm_widget *w, struct skl_dev *skl) skl_tplg_mixer_dapm_post_pmd_event() argument 1275 skl_tplg_pga_dapm_post_pmd_event(struct snd_soc_dapm_widget *w, struct skl_dev *skl) skl_tplg_pga_dapm_post_pmd_event() argument 1315 struct skl_dev *skl = get_skl_ctx(dapm->dev); skl_tplg_mixer_event() local 1345 struct skl_dev *skl = get_skl_ctx(dapm->dev); skl_tplg_pga_event() local 1365 struct skl_dev *skl = bus_to_skl(bus); skl_tplg_multi_config_set_get() local 1428 struct skl_dev *skl = get_skl_ctx(w->dapm->dev); skl_tplg_tlv_control_get() local 1463 struct skl_dev *skl = get_skl_ctx(w->dapm->dev); skl_tplg_tlv_control_set() local 1635 struct skl_dev *skl = get_skl_ctx(dev); skl_tplg_update_pipe_params() local 1833 struct skl_dev *skl = get_skl_ctx(dai->dev); skl_tplg_be_fill_pipe_params() local 2056 skl_tplg_add_pipe(struct device *dev, struct skl_module_cfg *mconfig, struct skl_dev *skl, struct snd_soc_tplg_vendor_value_elem *tkn_elem) skl_tplg_add_pipe() argument 2363 skl_tplg_get_token(struct device *dev, struct snd_soc_tplg_vendor_value_elem *tkn_elem, struct skl_dev *skl, struct skl_module_cfg *mconfig) skl_tplg_get_token() argument 2614 skl_tplg_get_tokens(struct device *dev, char *pvt_data, struct skl_dev *skl, struct skl_module_cfg *mconfig, int block_size) skl_tplg_get_tokens() argument 2710 skl_tplg_add_pipe_v4(struct device *dev, struct skl_module_cfg *mconfig, struct skl_dev *skl, struct skl_dfw_v4_pipe *dfw_pipe) skl_tplg_add_pipe_v4() argument 2787 skl_tplg_get_pvt_data_v4(struct snd_soc_tplg_dapm_widget *tplg_w, struct skl_dev *skl, struct device *dev, struct skl_module_cfg *mconfig) skl_tplg_get_pvt_data_v4() argument 2869 skl_tplg_get_pvt_data(struct snd_soc_tplg_dapm_widget *tplg_w, struct skl_dev *skl, struct device *dev, struct skl_module_cfg *mconfig) skl_tplg_get_pvt_data() argument 2965 skl_cleanup_resources(struct skl_dev *skl) skl_cleanup_resources() argument 2999 struct skl_dev *skl = bus_to_skl(bus); skl_tplg_widget_load() local 3150 skl_tplg_fill_str_mfest_tkn(struct device *dev, struct snd_soc_tplg_vendor_string_elem *str_elem, struct skl_dev *skl) skl_tplg_fill_str_mfest_tkn() argument 3179 skl_tplg_get_str_tkn(struct device *dev, struct snd_soc_tplg_vendor_array *array, struct skl_dev *skl) skl_tplg_get_str_tkn() argument 3286 skl_tplg_get_int_tkn(struct device *dev, struct snd_soc_tplg_vendor_value_elem *tkn_elem, struct skl_dev *skl) skl_tplg_get_int_tkn() argument 3458 skl_tplg_get_manifest_tkn(struct device *dev, char *pvt_data, struct skl_dev *skl, int block_size) skl_tplg_get_manifest_tkn() argument 3528 skl_tplg_get_manifest_data(struct snd_soc_tplg_manifest *manifest, struct device *dev, struct skl_dev *skl) skl_tplg_get_manifest_data() argument 3591 struct skl_dev *skl = bus_to_skl(bus); skl_manifest_load() local 3683 skl_tplg_set_pipe_type(struct skl_dev *skl, struct skl_pipe *pipe) skl_tplg_set_pipe_type() argument 3713 struct skl_dev *skl = bus_to_skl(bus); skl_tplg_init() local 3769 struct skl_dev *skl = bus_to_skl(bus); skl_tplg_exit() local [all...] |
H A D | skl-sst-utils.c | 3 * skl-sst-utils.c - SKL sst utils functions 13 #include "skl.h" 101 int skl_get_pvt_instance_id_map(struct skl_dev *skl, in skl_get_pvt_instance_id_map() argument 106 list_for_each_entry(module, &skl->uuid_list, list) { in skl_get_pvt_instance_id_map() 165 * @skl: driver context 172 int skl_get_pvt_id(struct skl_dev *skl, guid_t *uuid_mod, int instance_id) in skl_get_pvt_id() argument 177 list_for_each_entry(module, &skl->uuid_list, list) { in skl_get_pvt_id() 196 * @skl: driver context 202 int skl_put_pvt_id(struct skl_dev *skl, guid_t *uuid_mod, int *pvt_id) in skl_put_pvt_id() argument 207 list_for_each_entry(module, &skl in skl_put_pvt_id() 236 struct skl_dev *skl = ctx->thread_context; snd_skl_parse_uuids() local 320 skl_freeup_uuid_list(struct skl_dev *skl) skl_freeup_uuid_list() argument 361 struct skl_dev *skl = *dsp; skl_sst_ctx_init() local 384 skl_prepare_lib_load(struct skl_dev *skl, struct skl_lib_info *linfo, struct firmware *stripped_fw, unsigned int hdr_offset, int index) skl_prepare_lib_load() argument [all...] |
H A D | skl-pcm.c | 3 * skl-pcm.c -ASoC HDA Platform driver file implementing PCM functionality 18 #include "skl.h" 19 #include "skl-topology.h" 20 #include "skl-sst-dsp.h" 21 #include "skl-sst-ipc.h" 113 struct skl_dev *skl = bus_to_skl(bus); in skl_set_suspend_active() local 118 skl->supend_active++; in skl_set_suspend_active() 120 skl->supend_active--; in skl_set_suspend_active() 126 struct skl_dev *skl = bus_to_skl(bus); in skl_pcm_host_dma_prepare() local 155 if (IS_BXT(skl in skl_pcm_host_dma_prepare() 218 struct skl_dev *skl = get_skl_ctx(dai->dev); skl_pcm_open() local 267 struct skl_dev *skl = get_skl_ctx(dai->dev); skl_pcm_prepare() local 346 struct skl_dev *skl = bus_to_skl(bus); skl_pcm_close() local 382 struct skl_dev *skl = get_skl_ctx(dai->dev); skl_pcm_hw_free() local 466 struct skl_dev *skl = get_skl_ctx(dai->dev); skl_pcm_trigger() local 590 struct skl_dev *skl = get_skl_ctx(dai->dev); skl_link_pcm_prepare() local 1287 struct skl_dev *skl = bus_to_skl(bus); skl_platform_soc_new() local 1304 skl_get_module_info(struct skl_dev *skl, struct skl_module_cfg *mconfig) skl_get_module_info() argument 1357 skl_populate_modules(struct skl_dev *skl) skl_populate_modules() argument 1387 struct skl_dev *skl = bus_to_skl(bus); skl_platform_soc_probe() local 1441 struct skl_dev *skl = bus_to_skl(bus); skl_platform_soc_remove() local 1467 struct skl_dev *skl = bus_to_skl(bus); skl_platform_register() local 1504 struct skl_dev *skl = bus_to_skl(bus); skl_platform_unregister() local [all...] |
H A D | skl-nhlt.c | 3 * skl-nhlt.c - Intel SKL Platform NHLT parsing 13 #include "skl.h" 14 #include "skl-i2s.h" 82 *skl_get_ep_blob(struct skl_dev *skl, u32 instance, u8 link_type, in skl_get_ep_blob() argument 88 struct hdac_bus *bus = skl_to_bus(skl); in skl_get_ep_blob() 91 struct nhlt_acpi_table *nhlt = skl->nhlt; in skl_get_ep_blob() 133 int skl_nhlt_update_topology_bin(struct skl_dev *skl) in skl_nhlt_update_topology_bin() argument 135 struct nhlt_acpi_table *nhlt = (struct nhlt_acpi_table *)skl->nhlt; in skl_nhlt_update_topology_bin() 136 struct hdac_bus *bus = skl_to_bus(skl); in skl_nhlt_update_topology_bin() 143 snprintf(skl in skl_nhlt_update_topology_bin() 157 struct skl_dev *skl = bus_to_skl(bus); skl_nhlt_platform_id_show() local 171 skl_nhlt_create_sysfs(struct skl_dev *skl) skl_nhlt_create_sysfs() argument 181 skl_nhlt_remove_sysfs(struct skl_dev *skl) skl_nhlt_remove_sysfs() argument 194 skl_get_ssp_clks(struct skl_dev *skl, struct skl_ssp_clk *ssp_clks, struct nhlt_fmt *fmt, u8 id) skl_get_ssp_clks() argument 306 skl_get_mclk(struct skl_dev *skl, struct skl_ssp_clk *mclk, struct nhlt_fmt *fmt, u8 id) skl_get_mclk() argument 350 skl_get_clks(struct skl_dev *skl, struct skl_ssp_clk *ssp_clks) skl_get_clks() argument [all...] |
H A D | skl-sst-dsp.c | 3 * skl-sst-dsp.c - SKL SST library generic function 15 #include "skl.h" 36 struct skl_dev *skl = ctx->thread_context; in skl_dsp_init_core_state() local 39 skl->cores.state[SKL_DSP_CORE0_ID] = SKL_DSP_RUNNING; in skl_dsp_init_core_state() 40 skl->cores.usage_count[SKL_DSP_CORE0_ID] = 1; in skl_dsp_init_core_state() 42 for (i = SKL_DSP_CORE0_ID + 1; i < skl->cores.count; i++) { in skl_dsp_init_core_state() 43 skl->cores.state[i] = SKL_DSP_RESET; in skl_dsp_init_core_state() 44 skl->cores.usage_count[i] = 0; in skl_dsp_init_core_state() 51 struct skl_dev *skl = ctx->thread_context; in skl_dsp_get_enabled_cores() local 55 core_mask = SKL_DSP_CORES_MASK(skl in skl_dsp_get_enabled_cores() 338 struct skl_dev *skl = ctx->thread_context; skl_dsp_get_core() local 367 struct skl_dev *skl = ctx->thread_context; skl_dsp_put_core() local [all...] |
H A D | skl-sst-dsp.h | 15 #include "skl-sst-cldma.h" 231 int skl_sst_init_fw(struct device *dev, struct skl_dev *skl); 232 int bxt_sst_init_fw(struct device *dev, struct skl_dev *skl); 233 void skl_sst_dsp_cleanup(struct device *dev, struct skl_dev *skl); 234 void bxt_sst_dsp_cleanup(struct device *dev, struct skl_dev *skl); 238 int skl_get_pvt_id(struct skl_dev *skl, guid_t *uuid_mod, int instance_id); 239 int skl_put_pvt_id(struct skl_dev *skl, guid_t *uuid_mod, int *pvt_id); 240 int skl_get_pvt_instance_id_map(struct skl_dev *skl, 242 void skl_freeup_uuid_list(struct skl_dev *skl); 246 void skl_dsp_set_astate_cfg(struct skl_dev *skl, u3 [all...] |
H A D | skl-topology.h | 19 #include <uapi/sound/skl-tplg-interface.h> 20 #include "skl.h" 451 int skl_dsp_set_dma_control(struct skl_dev *skl, u32 *caps, 464 void skl_tplg_d0i3_get(struct skl_dev *skl, enum d0i3_capability caps); 465 void skl_tplg_d0i3_put(struct skl_dev *skl, enum d0i3_capability caps); 467 int skl_create_pipeline(struct skl_dev *skl, struct skl_pipe *pipe); 469 int skl_run_pipe(struct skl_dev *skl, struct skl_pipe *pipe); 471 int skl_pause_pipe(struct skl_dev *skl, struct skl_pipe *pipe); 473 int skl_delete_pipe(struct skl_dev *skl, struct skl_pipe *pipe); 475 int skl_stop_pipe(struct skl_dev *skl, struc [all...] |
/kernel/linux/linux-6.6/sound/soc/intel/skylake/ |
H A D | bxt-sst.c | 17 #include "skl.h" 49 struct skl_dev *skl = ctx->thread_context; in bxt_load_library() local 55 ret = skl_prepare_lib_load(skl, &skl->lib_info[i], &stripped_fw, in bxt_load_library() 73 ret = skl_sst_ipc_load_library(&skl->ipc, dma_id, i, true); in bxt_load_library() 184 struct skl_dev *skl = ctx->thread_context; in bxt_load_base_firmware() local 196 if (skl->is_first_boot) { in bxt_load_base_firmware() 232 ret = wait_event_timeout(skl->boot_wait, skl->boot_complete, in bxt_load_base_firmware() 240 skl in bxt_load_base_firmware() 268 struct skl_dev *skl = ctx->thread_context; bxt_d0i3_target_state() local 288 struct skl_dev *skl = container_of(work, bxt_set_dsp_D0i3() local 331 struct skl_dev *skl = ctx->thread_context; bxt_schedule_dsp_D0i3() local 350 struct skl_dev *skl = ctx->thread_context; bxt_set_dsp_D0i0() local 389 struct skl_dev *skl = ctx->thread_context; bxt_set_dsp_D0() local 486 struct skl_dev *skl = ctx->thread_context; bxt_set_dsp_D3() local 548 struct skl_dev *skl; bxt_sst_dsp_init() local 589 bxt_sst_init_fw(struct device *dev, struct skl_dev *skl) bxt_sst_init_fw() argument 616 bxt_sst_dsp_cleanup(struct device *dev, struct skl_dev *skl) bxt_sst_dsp_cleanup() argument [all...] |
H A D | skl.c | 3 * skl.c - Implementation of ASoC Intel SKL HD Audio driver 31 #include "skl.h" 32 #include "skl-sst-dsp.h" 33 #include "skl-sst-ipc.h" 56 static void skl_init_pci(struct skl_dev *skl) in skl_init_pci() argument 58 struct hdac_bus *bus = skl_to_bus(skl); in skl_init_pci() 68 skl_update_pci_byte(skl->pci, AZX_PCIREG_TCSEL, 0x07, 0); in skl_init_pci() 260 struct skl_dev *skl = bus_to_skl(bus); in skl_acquire_irq() local 263 ret = request_threaded_irq(skl->pci->irq, skl_interrupt, in skl_acquire_irq() 270 skl in skl_acquire_irq() 284 struct skl_dev *skl = bus_to_skl(bus); skl_suspend_late() local 292 struct skl_dev *skl = bus_to_skl(bus); _skl_suspend() local 315 struct skl_dev *skl = bus_to_skl(bus); _skl_resume() local 333 struct skl_dev *skl = bus_to_skl(bus); skl_suspend() local 363 struct skl_dev *skl = bus_to_skl(bus); skl_resume() local 429 struct skl_dev *skl = bus_to_skl(bus); skl_free() local 474 skl_find_hda_machine(struct skl_dev *skl, struct snd_soc_acpi_mach *machines) skl_find_hda_machine() argument 488 skl_find_machine(struct skl_dev *skl, void *driver_data) skl_find_machine() argument 518 skl_machine_device_register(struct skl_dev *skl) skl_machine_device_register() argument 554 skl_machine_device_unregister(struct skl_dev *skl) skl_machine_device_unregister() argument 560 skl_dmic_device_register(struct skl_dev *skl) skl_dmic_device_register() argument 584 skl_dmic_device_unregister(struct skl_dev *skl) skl_dmic_device_unregister() argument 622 skl_clock_device_register(struct skl_dev *skl) skl_clock_device_register() argument 655 skl_clock_device_unregister(struct skl_dev *skl) skl_clock_device_unregister() argument 715 struct skl_dev *skl = bus_to_skl(bus); probe_codec() local 805 struct skl_dev *skl = container_of(work, struct skl_dev, probe_work); skl_probe_work() local 873 struct skl_dev *skl; skl_create() local 917 struct skl_dev *skl = bus_to_skl(bus); skl_first_init() local 984 struct skl_dev *skl; skl_probe() local 1100 struct skl_dev *skl; skl_shutdown() local 1125 struct skl_dev *skl = bus_to_skl(bus); skl_remove() local [all...] |
H A D | Makefile | 2 snd-soc-skl-objs := skl.o skl-pcm.o skl-nhlt.o skl-messages.o skl-topology.o \ 3 skl-sst-ipc.o skl-sst-dsp.o cnl-sst-dsp.o skl-sst-cldma.o \ 4 skl [all...] |
H A D | skl-messages.c | 3 * skl-message.c - HDA DSP interface for FW registration, Pipe and Module 16 #include <uapi/sound/skl-tplg-interface.h> 17 #include "skl-sst-dsp.h" 19 #include "skl-sst-ipc.h" 20 #include "skl.h" 23 #include "skl-topology.h" 39 void skl_dsp_set_astate_cfg(struct skl_dev *skl, u32 cnt, void *data) in skl_dsp_set_astate_cfg() argument 47 skl_ipc_set_large_config(&skl->ipc, &msg, data); in skl_dsp_set_astate_cfg() 249 int skl_init_dsp(struct skl_dev *skl) in skl_init_dsp() argument 252 struct hdac_bus *bus = skl_to_bus(skl); in skl_init_dsp() 314 skl_free_dsp(struct skl_dev *skl) skl_free_dsp() argument 339 skl_suspend_late_dsp(struct skl_dev *skl) skl_suspend_late_dsp() argument 358 skl_suspend_dsp(struct skl_dev *skl) skl_suspend_dsp() argument 378 skl_resume_dsp(struct skl_dev *skl) skl_resume_dsp() argument 442 skl_set_base_module_format(struct skl_dev *skl, struct skl_module_cfg *mconfig, struct skl_base_cfg *base_cfg) skl_set_base_module_format() argument 491 skl_set_base_ext_module_format(struct skl_dev *skl, struct skl_module_cfg *mconfig, struct skl_base_cfg_ext *base_cfg_ext) skl_set_base_ext_module_format() argument 565 skl_get_node_id(struct skl_dev *skl, struct skl_module_cfg *mconfig) skl_get_node_id() argument 622 skl_setup_cpr_gateway_cfg(struct skl_dev *skl, struct skl_module_cfg *mconfig, struct skl_cpr_cfg *cpr_mconfig) skl_setup_cpr_gateway_cfg() argument 687 skl_dsp_set_dma_control(struct skl_dev *skl, u32 *caps, u32 caps_size, u32 node_id) skl_dsp_set_dma_control() argument 727 skl_setup_out_format(struct skl_dev *skl, struct skl_module_cfg *mconfig, struct skl_audio_data_format *out_fmt) skl_setup_out_format() argument 754 skl_set_src_format(struct skl_dev *skl, struct skl_module_cfg *mconfig, struct skl_src_module_cfg *src_mconfig) skl_set_src_format() argument 773 skl_set_updown_mixer_format(struct skl_dev *skl, struct skl_module_cfg *mconfig, struct skl_up_down_mixer_cfg *mixer_mconfig) skl_set_updown_mixer_format() argument 794 skl_set_copier_format(struct skl_dev *skl, struct skl_module_cfg *mconfig, struct skl_cpr_cfg *cpr_mconfig) skl_set_copier_format() argument 814 skl_set_base_outfmt_format(struct skl_dev *skl, struct skl_module_cfg *mconfig, struct skl_base_outfmt_cfg *base_outfmt_mcfg) skl_set_base_outfmt_format() argument 826 skl_get_module_param_size(struct skl_dev *skl, struct skl_module_cfg *mconfig) skl_get_module_param_size() argument 875 skl_set_module_format(struct skl_dev *skl, struct skl_module_cfg *module_config, u16 *module_config_size, void **param_data) skl_set_module_format() argument 1024 skl_init_module(struct skl_dev *skl, struct skl_module_cfg *mconfig) skl_init_module() argument 1066 skl_dump_bind_info(struct skl_dev *skl, struct skl_module_cfg *src_module, struct skl_module_cfg *dst_module) skl_dump_bind_info() argument 1083 skl_unbind_modules(struct skl_dev *skl, struct skl_module_cfg *src_mcfg, struct skl_module_cfg *dst_mcfg) skl_unbind_modules() argument 1149 skl_bind_modules(struct skl_dev *skl, struct skl_module_cfg *src_mcfg, struct skl_module_cfg *dst_mcfg) skl_bind_modules() argument 1230 skl_set_pipe_state(struct skl_dev *skl, struct skl_pipe *pipe, enum skl_ipc_pipeline_state state) skl_set_pipe_state() argument 1244 skl_create_pipeline(struct skl_dev *skl, struct skl_pipe *pipe) skl_create_pipeline() argument 1269 skl_delete_pipe(struct skl_dev *skl, struct skl_pipe *pipe) skl_delete_pipe() argument 1315 skl_run_pipe(struct skl_dev *skl, struct skl_pipe *pipe) skl_run_pipe() argument 1349 skl_stop_pipe(struct skl_dev *skl, struct skl_pipe *pipe) skl_stop_pipe() argument 1374 skl_reset_pipe(struct skl_dev *skl, struct skl_pipe *pipe) skl_reset_pipe() argument 1394 skl_set_module_params(struct skl_dev *skl, u32 *params, int size, u32 param_id, struct skl_module_cfg *mcfg) skl_set_module_params() argument 1407 skl_get_module_params(struct skl_dev *skl, u32 *params, int size, u32 param_id, struct skl_module_cfg *mcfg) skl_get_module_params() argument [all...] |
H A D | skl-sst.c | 3 * skl-sst.c - HDA DSP library functions for SKL platform 19 #include "skl.h" 69 struct skl_dev *skl = ctx->thread_context; in skl_load_base_firmware() local 73 skl->boot_complete = false; in skl_load_base_firmware() 74 init_waitqueue_head(&skl->boot_wait); in skl_load_base_firmware() 85 if (skl->is_first_boot) { in skl_load_base_firmware() 139 ret = wait_event_timeout(skl->boot_wait, skl->boot_complete, in skl_load_base_firmware() 148 skl->fw_loaded = true; in skl_load_base_firmware() 164 struct skl_dev *skl in skl_set_dsp_D0() local 218 struct skl_dev *skl = ctx->thread_context; skl_set_dsp_D3() local 335 struct skl_dev *skl = ctx->thread_context; skl_transfer_module() local 387 struct skl_dev *skl = ctx->thread_context; skl_load_library() local 445 struct skl_dev *skl = ctx->thread_context; skl_unload_module() local 521 struct skl_dev *skl; skl_sst_dsp_init() local 555 skl_sst_init_fw(struct device *dev, struct skl_dev *skl) skl_sst_init_fw() argument 582 skl_sst_dsp_cleanup(struct device *dev, struct skl_dev *skl) skl_sst_dsp_cleanup() argument [all...] |
H A D | skl.h | 3 * skl.h - HD Audio skylake definitions. 19 #include "skl-ssp-clk.h" 20 #include "skl-sst-ipc.h" 161 int (*init_fw)(struct device *dev, struct skl_dev *skl); 162 void (*cleanup)(struct device *dev, struct skl_dev *skl); 168 int skl_nhlt_update_topology_bin(struct skl_dev *skl); 169 int skl_init_dsp(struct skl_dev *skl); 170 int skl_free_dsp(struct skl_dev *skl); 171 int skl_suspend_late_dsp(struct skl_dev *skl); 172 int skl_suspend_dsp(struct skl_dev *skl); 193 skl_debugfs_init(struct skl_dev *skl) skl_debugfs_init() argument 198 skl_debugfs_exit(struct skl_dev *skl) skl_debugfs_exit() argument [all...] |
H A D | skl-topology.c | 3 * skl-topology.c - Implements Platform component ALSA controls/widget 20 #include <uapi/sound/skl-tplg-interface.h> 21 #include "skl-sst-dsp.h" 22 #include "skl-sst-ipc.h" 23 #include "skl-topology.h" 24 #include "skl.h" 50 void skl_tplg_d0i3_get(struct skl_dev *skl, enum d0i3_capability caps) in skl_tplg_d0i3_get() argument 52 struct skl_d0i3_data *d0i3 = &skl->d0i3; in skl_tplg_d0i3_get() 69 void skl_tplg_d0i3_put(struct skl_dev *skl, enum d0i3_capability caps) in skl_tplg_d0i3_put() argument 71 struct skl_d0i3_data *d0i3 = &skl in skl_tplg_d0i3_put() 114 skl_dump_mconfig(struct skl_dev *skl, struct skl_module_cfg *mcfg) skl_dump_mconfig() argument 232 skl_tplg_update_buffer_size(struct skl_dev *skl, struct skl_module_cfg *mcfg) skl_tplg_update_buffer_size() argument 283 skl_tplg_update_be_blob(struct snd_soc_dapm_widget *w, struct skl_dev *skl) skl_tplg_update_be_blob() argument 348 skl_tplg_update_module_params(struct snd_soc_dapm_widget *w, struct skl_dev *skl) skl_tplg_update_module_params() argument 383 skl_tplg_set_module_params(struct snd_soc_dapm_widget *w, struct skl_dev *skl) skl_tplg_set_module_params() argument 457 skl_tplg_module_prepare(struct skl_dev *skl, struct skl_pipe *pipe, struct snd_soc_dapm_widget *w, struct skl_module_cfg *mcfg) skl_tplg_module_prepare() argument 477 skl_tplg_init_pipe_modules(struct skl_dev *skl, struct skl_pipe *pipe) skl_tplg_init_pipe_modules() argument 553 skl_tplg_unload_pipe_modules(struct skl_dev *skl, struct skl_pipe *pipe) skl_tplg_unload_pipe_modules() argument 599 skl_tplg_get_pipe_config(struct skl_dev *skl, struct skl_module_cfg *mconfig) skl_tplg_get_pipe_config() argument 653 skl_tplg_mixer_dapm_pre_pmu_event(struct snd_soc_dapm_widget *w, struct skl_dev *skl) skl_tplg_mixer_dapm_pre_pmu_event() argument 715 skl_fill_sink_instance_id(struct skl_dev *skl, u32 *params, int size, struct skl_module_cfg *mcfg) skl_fill_sink_instance_id() argument 745 skl_tplg_set_module_bind_params(struct snd_soc_dapm_widget *w, struct skl_module_cfg *mcfg, struct skl_dev *skl) skl_tplg_set_module_bind_params() argument 808 skl_get_module_id(struct skl_dev *skl, guid_t *uuid) skl_get_module_id() argument 820 skl_tplg_find_moduleid_from_uuid(struct skl_dev *skl, const struct snd_kcontrol_new *k) skl_tplg_find_moduleid_from_uuid() argument 864 skl_tplg_add_moduleid_in_bind_params(struct skl_dev *skl, struct snd_soc_dapm_widget *w) skl_tplg_add_moduleid_in_bind_params() argument 888 skl_tplg_module_add_deferred_bind(struct skl_dev *skl, struct skl_module_cfg *src, struct skl_module_cfg *dst) skl_tplg_module_add_deferred_bind() argument 925 skl_tplg_bind_sinks(struct snd_soc_dapm_widget *w, struct skl_dev *skl, struct snd_soc_dapm_widget *src_w, struct skl_module_cfg *src_mconfig) skl_tplg_bind_sinks() argument 1025 skl_tplg_pga_dapm_pre_pmu_event(struct snd_soc_dapm_widget *w, struct skl_dev *skl) skl_tplg_pga_dapm_pre_pmu_event() argument 1049 skl_get_src_dsp_widget( struct snd_soc_dapm_widget *w, struct skl_dev *skl) skl_get_src_dsp_widget() argument 1089 skl_tplg_mixer_dapm_post_pmu_event(struct snd_soc_dapm_widget *w, struct skl_dev *skl) skl_tplg_mixer_dapm_post_pmu_event() argument 1141 skl_tplg_mixer_dapm_pre_pmd_event(struct snd_soc_dapm_widget *w, struct skl_dev *skl) skl_tplg_mixer_dapm_pre_pmd_event() argument 1174 skl_tplg_mixer_dapm_post_pmd_event(struct snd_soc_dapm_widget *w, struct skl_dev *skl) skl_tplg_mixer_dapm_post_pmd_event() argument 1242 skl_tplg_pga_dapm_post_pmd_event(struct snd_soc_dapm_widget *w, struct skl_dev *skl) skl_tplg_pga_dapm_post_pmd_event() argument 1282 struct skl_dev *skl = get_skl_ctx(dapm->dev); skl_tplg_mixer_event() local 1312 struct skl_dev *skl = get_skl_ctx(dapm->dev); skl_tplg_pga_event() local 1332 struct skl_dev *skl = bus_to_skl(bus); skl_tplg_multi_config_set_get() local 1395 struct skl_dev *skl = get_skl_ctx(w->dapm->dev); skl_tplg_tlv_control_get() local 1430 struct skl_dev *skl = get_skl_ctx(w->dapm->dev); skl_tplg_tlv_control_set() local 1603 struct skl_dev *skl = get_skl_ctx(dev); skl_tplg_update_pipe_params() local 1800 struct skl_dev *skl = get_skl_ctx(dai->dev); skl_tplg_be_fill_pipe_params() local 2032 skl_tplg_add_pipe(struct device *dev, struct skl_module_cfg *mconfig, struct skl_dev *skl, struct snd_soc_tplg_vendor_value_elem *tkn_elem) skl_tplg_add_pipe() argument 2339 skl_tplg_get_token(struct device *dev, struct snd_soc_tplg_vendor_value_elem *tkn_elem, struct skl_dev *skl, struct skl_module_cfg *mconfig) skl_tplg_get_token() argument 2597 skl_tplg_get_tokens(struct device *dev, char *pvt_data, struct skl_dev *skl, struct skl_module_cfg *mconfig, int block_size) skl_tplg_get_tokens() argument 2693 skl_tplg_add_pipe_v4(struct device *dev, struct skl_module_cfg *mconfig, struct skl_dev *skl, struct skl_dfw_v4_pipe *dfw_pipe) skl_tplg_add_pipe_v4() argument 2770 skl_tplg_get_pvt_data_v4(struct snd_soc_tplg_dapm_widget *tplg_w, struct skl_dev *skl, struct device *dev, struct skl_module_cfg *mconfig) skl_tplg_get_pvt_data_v4() argument 2871 skl_tplg_get_pvt_data(struct snd_soc_tplg_dapm_widget *tplg_w, struct skl_dev *skl, struct device *dev, struct skl_module_cfg *mconfig) skl_tplg_get_pvt_data() argument 2960 skl_cleanup_resources(struct skl_dev *skl) skl_cleanup_resources() argument 2994 struct skl_dev *skl = bus_to_skl(bus); skl_tplg_widget_load() local 3148 skl_tplg_fill_str_mfest_tkn(struct device *dev, struct snd_soc_tplg_vendor_string_elem *str_elem, struct skl_dev *skl) skl_tplg_fill_str_mfest_tkn() argument 3177 skl_tplg_get_str_tkn(struct device *dev, struct snd_soc_tplg_vendor_array *array, struct skl_dev *skl) skl_tplg_get_str_tkn() argument 3284 skl_tplg_get_int_tkn(struct device *dev, struct snd_soc_tplg_vendor_value_elem *tkn_elem, struct skl_dev *skl) skl_tplg_get_int_tkn() argument 3456 skl_tplg_get_manifest_tkn(struct device *dev, char *pvt_data, struct skl_dev *skl, int block_size) skl_tplg_get_manifest_tkn() argument 3526 skl_tplg_get_manifest_data(struct snd_soc_tplg_manifest *manifest, struct device *dev, struct skl_dev *skl) skl_tplg_get_manifest_data() argument 3586 struct skl_dev *skl = bus_to_skl(bus); skl_manifest_load() local 3685 skl_tplg_set_pipe_type(struct skl_dev *skl, struct skl_pipe *pipe) skl_tplg_set_pipe_type() argument 3715 struct skl_dev *skl = bus_to_skl(bus); skl_tplg_init() local 3766 struct skl_dev *skl = bus_to_skl(bus); skl_tplg_exit() local [all...] |
H A D | skl-sst-utils.c | 3 * skl-sst-utils.c - SKL sst utils functions 13 #include "skl.h" 101 int skl_get_pvt_instance_id_map(struct skl_dev *skl, in skl_get_pvt_instance_id_map() argument 106 list_for_each_entry(module, &skl->uuid_list, list) { in skl_get_pvt_instance_id_map() 165 * @skl: driver context 172 int skl_get_pvt_id(struct skl_dev *skl, guid_t *uuid_mod, int instance_id) in skl_get_pvt_id() argument 177 list_for_each_entry(module, &skl->uuid_list, list) { in skl_get_pvt_id() 196 * @skl: driver context 202 int skl_put_pvt_id(struct skl_dev *skl, guid_t *uuid_mod, int *pvt_id) in skl_put_pvt_id() argument 207 list_for_each_entry(module, &skl in skl_put_pvt_id() 236 struct skl_dev *skl = ctx->thread_context; snd_skl_parse_uuids() local 320 skl_freeup_uuid_list(struct skl_dev *skl) skl_freeup_uuid_list() argument 361 struct skl_dev *skl = *dsp; skl_sst_ctx_init() local 384 skl_prepare_lib_load(struct skl_dev *skl, struct skl_lib_info *linfo, struct firmware *stripped_fw, unsigned int hdr_offset, int index) skl_prepare_lib_load() argument [all...] |
H A D | skl-nhlt.c | 3 * skl-nhlt.c - Intel SKL Platform NHLT parsing 13 #include "skl.h" 14 #include "skl-i2s.h" 31 int skl_nhlt_update_topology_bin(struct skl_dev *skl) in skl_nhlt_update_topology_bin() argument 33 struct nhlt_acpi_table *nhlt = (struct nhlt_acpi_table *)skl->nhlt; in skl_nhlt_update_topology_bin() 34 struct hdac_bus *bus = skl_to_bus(skl); in skl_nhlt_update_topology_bin() 41 snprintf(skl->tplg_name, sizeof(skl->tplg_name), "%x-%.6s-%.8s-%d%s", in skl_nhlt_update_topology_bin() 42 skl->pci_id, nhlt->header.oem_id, nhlt->header.oem_table_id, in skl_nhlt_update_topology_bin() 45 skl_nhlt_trim_space(skl in skl_nhlt_update_topology_bin() 55 struct skl_dev *skl = bus_to_skl(bus); platform_id_show() local 69 skl_nhlt_create_sysfs(struct skl_dev *skl) skl_nhlt_create_sysfs() argument 79 skl_nhlt_remove_sysfs(struct skl_dev *skl) skl_nhlt_remove_sysfs() argument 92 skl_get_ssp_clks(struct skl_dev *skl, struct skl_ssp_clk *ssp_clks, struct nhlt_fmt *fmt, u8 id) skl_get_ssp_clks() argument 204 skl_get_mclk(struct skl_dev *skl, struct skl_ssp_clk *mclk, struct nhlt_fmt *fmt, u8 id) skl_get_mclk() argument 248 skl_get_clks(struct skl_dev *skl, struct skl_ssp_clk *ssp_clks) skl_get_clks() argument [all...] |
H A D | skl-pcm.c | 3 * skl-pcm.c -ASoC HDA Platform driver file implementing PCM functionality 19 #include "skl.h" 20 #include "skl-topology.h" 21 #include "skl-sst-dsp.h" 22 #include "skl-sst-ipc.h" 114 struct skl_dev *skl = bus_to_skl(bus); in skl_set_suspend_active() local 119 skl->supend_active++; in skl_set_suspend_active() 121 skl->supend_active--; in skl_set_suspend_active() 127 struct skl_dev *skl = bus_to_skl(bus); in skl_pcm_host_dma_prepare() local 156 if (HDA_CONTROLLER_IS_APL(skl in skl_pcm_host_dma_prepare() 219 struct skl_dev *skl = get_skl_ctx(dai->dev); skl_pcm_open() local 268 struct skl_dev *skl = get_skl_ctx(dai->dev); skl_pcm_prepare() local 348 struct skl_dev *skl = bus_to_skl(bus); skl_pcm_close() local 384 struct skl_dev *skl = get_skl_ctx(dai->dev); skl_pcm_hw_free() local 469 struct skl_dev *skl = get_skl_ctx(dai->dev); skl_pcm_trigger() local 592 struct skl_dev *skl = get_skl_ctx(dai->dev); skl_link_pcm_prepare() local 1281 struct skl_dev *skl = bus_to_skl(bus); skl_platform_soc_new() local 1298 skl_get_module_info(struct skl_dev *skl, struct skl_module_cfg *mconfig) skl_get_module_info() argument 1351 skl_populate_modules(struct skl_dev *skl) skl_populate_modules() argument 1381 struct skl_dev *skl = bus_to_skl(bus); skl_platform_soc_probe() local 1438 struct skl_dev *skl = bus_to_skl(bus); skl_platform_soc_remove() local 1463 struct skl_dev *skl = bus_to_skl(bus); skl_platform_register() local 1500 struct skl_dev *skl = bus_to_skl(bus); skl_platform_unregister() local [all...] |
H A D | skl-sst-dsp.c | 3 * skl-sst-dsp.c - SKL SST library generic function 15 #include "skl.h" 36 struct skl_dev *skl = ctx->thread_context; in skl_dsp_init_core_state() local 39 skl->cores.state[SKL_DSP_CORE0_ID] = SKL_DSP_RUNNING; in skl_dsp_init_core_state() 40 skl->cores.usage_count[SKL_DSP_CORE0_ID] = 1; in skl_dsp_init_core_state() 42 for (i = SKL_DSP_CORE0_ID + 1; i < skl->cores.count; i++) { in skl_dsp_init_core_state() 43 skl->cores.state[i] = SKL_DSP_RESET; in skl_dsp_init_core_state() 44 skl->cores.usage_count[i] = 0; in skl_dsp_init_core_state() 51 struct skl_dev *skl = ctx->thread_context; in skl_dsp_get_enabled_cores() local 55 core_mask = SKL_DSP_CORES_MASK(skl in skl_dsp_get_enabled_cores() 338 struct skl_dev *skl = ctx->thread_context; skl_dsp_get_core() local 367 struct skl_dev *skl = ctx->thread_context; skl_dsp_put_core() local [all...] |
H A D | skl-sst-dsp.h | 15 #include "skl-sst-cldma.h" 231 int skl_sst_init_fw(struct device *dev, struct skl_dev *skl); 232 int bxt_sst_init_fw(struct device *dev, struct skl_dev *skl); 233 void skl_sst_dsp_cleanup(struct device *dev, struct skl_dev *skl); 234 void bxt_sst_dsp_cleanup(struct device *dev, struct skl_dev *skl); 238 int skl_get_pvt_id(struct skl_dev *skl, guid_t *uuid_mod, int instance_id); 239 int skl_put_pvt_id(struct skl_dev *skl, guid_t *uuid_mod, int *pvt_id); 240 int skl_get_pvt_instance_id_map(struct skl_dev *skl, 242 void skl_freeup_uuid_list(struct skl_dev *skl); 246 void skl_dsp_set_astate_cfg(struct skl_dev *skl, u3 [all...] |