/linux-4.4.14/sound/soc/intel/skylake/ |
D | skl.c | 46 static void skl_init_pci(struct skl *skl) in skl_init_pci() argument 48 struct hdac_ext_bus *ebus = &skl->ebus; in skl_init_pci() 58 skl_update_pci_byte(skl->pci, AZX_PCIREG_TCSEL, 0x07, 0); in skl_init_pci() 112 struct skl *skl = ebus_to_skl(ebus); in skl_acquire_irq() local 116 ret = request_threaded_irq(skl->pci->irq, skl_interrupt, in skl_acquire_irq() 123 skl->pci->irq); in skl_acquire_irq() 127 bus->irq = skl->pci->irq; in skl_acquire_irq() 128 pci_intx(skl->pci, 1); in skl_acquire_irq() 154 struct skl *hda = ebus_to_skl(ebus); in skl_resume() 170 struct skl *skl = ebus_to_skl(ebus); in skl_runtime_suspend() local [all …]
|
D | Makefile | 1 snd-soc-skl-objs := skl.o skl-pcm.o skl-nhlt.o skl-messages.o \ 2 skl-topology.o 4 obj-$(CONFIG_SND_SOC_INTEL_SKYLAKE) += snd-soc-skl.o 7 snd-soc-skl-ipc-objs := skl-sst-ipc.o skl-sst-dsp.o skl-sst-cldma.o \ 8 skl-sst.o 10 obj-$(CONFIG_SND_SOC_INTEL_SKYLAKE) += snd-soc-skl-ipc.o
|
D | skl-topology.c | 60 static bool skl_tplg_alloc_pipe_mem(struct skl *skl, in skl_tplg_alloc_pipe_mem() argument 63 struct skl_sst *ctx = skl->skl_sst; in skl_tplg_alloc_pipe_mem() 65 if (skl->resource.mem + mconfig->pipe->memory_pages > in skl_tplg_alloc_pipe_mem() 66 skl->resource.max_mem) { in skl_tplg_alloc_pipe_mem() 73 skl->resource.max_mem, skl->resource.mem); in skl_tplg_alloc_pipe_mem() 77 skl->resource.mem += mconfig->pipe->memory_pages; in skl_tplg_alloc_pipe_mem() 89 static bool skl_tplg_alloc_pipe_mcps(struct skl *skl, in skl_tplg_alloc_pipe_mcps() argument 92 struct skl_sst *ctx = skl->skl_sst; in skl_tplg_alloc_pipe_mcps() 94 if (skl->resource.mcps + mconfig->mcps > skl->resource.max_mcps) { in skl_tplg_alloc_pipe_mcps() 100 skl->resource.max_mcps, skl->resource.mcps); in skl_tplg_alloc_pipe_mcps() [all …]
|
D | skl.h | 58 struct skl { struct 77 container_of(sbus, struct skl, sbus) argument 90 struct nhlt_specific_cfg *skl_get_ep_blob(struct skl *skl, u32 instance, 93 int skl_init_dsp(struct skl *skl); 94 void skl_free_dsp(struct skl *skl); 95 int skl_suspend_dsp(struct skl *skl); 96 int skl_resume_dsp(struct skl *skl);
|
D | skl-sst.c | 73 struct skl_sst *skl = ctx->thread_context; in skl_load_base_firmware() local 76 skl->boot_complete = false; in skl_load_base_firmware() 77 init_waitqueue_head(&skl->boot_wait); in skl_load_base_firmware() 126 ret = wait_event_timeout(skl->boot_wait, skl->boot_complete, in skl_load_base_firmware() 165 struct skl_sst *skl = ctx->thread_context; in skl_set_dsp_D3() local 177 ret = skl_ipc_set_dx(&skl->ipc, SKL_INSTANCE_ID, SKL_BASE_FW_MODULE_ID, &dx); in skl_set_dsp_D3() 228 struct skl_sst *skl; in skl_sst_dsp_init() local 232 skl = devm_kzalloc(dev, sizeof(*skl), GFP_KERNEL); in skl_sst_dsp_init() 233 if (skl == NULL) in skl_sst_dsp_init() 236 skl->dev = dev; in skl_sst_dsp_init() [all …]
|
D | skl-messages.c | 75 int skl_init_dsp(struct skl *skl) in skl_init_dsp() argument 78 struct hdac_ext_bus *ebus = &skl->ebus; in skl_init_dsp() 88 snd_hdac_ext_bus_ppcap_enable(&skl->ebus, true); in skl_init_dsp() 89 snd_hdac_ext_bus_ppcap_int_enable(&skl->ebus, true); in skl_init_dsp() 92 mmio_base = pci_ioremap_bar(skl->pci, 4); in skl_init_dsp() 99 loader_ops, &skl->skl_sst); in skl_init_dsp() 103 skl_dsp_enable_notification(skl->skl_sst, false); in skl_init_dsp() 109 void skl_free_dsp(struct skl *skl) in skl_free_dsp() argument 111 struct hdac_ext_bus *ebus = &skl->ebus; in skl_free_dsp() 113 struct skl_sst *ctx = skl->skl_sst; in skl_free_dsp() [all …]
|
D | skl-nhlt.c | 109 *skl_get_ep_blob(struct skl *skl, u32 instance, u8 link_type, in skl_get_ep_blob() argument 114 struct hdac_bus *bus = ebus_to_hbus(&skl->ebus); in skl_get_ep_blob() 117 struct nhlt_acpi_table *nhlt = (struct nhlt_acpi_table *)skl->nhlt; in skl_get_ep_blob()
|
D | skl-pcm.c | 302 struct skl *skl = get_skl_ctx(dai->dev); in skl_pcm_trigger() local 303 struct skl_sst *ctx = skl->skl_sst; in skl_pcm_trigger() 896 struct skl *skl = ebus_to_skl(ebus); in skl_pcm_new() local 906 snd_dma_pci_data(skl->pci), in skl_pcm_new() 941 struct skl *skl = ebus_to_skl(ebus); in skl_platform_register() local 943 INIT_LIST_HEAD(&skl->ppl_list); in skl_platform_register() 944 INIT_LIST_HEAD(&skl->dapm_path_list); in skl_platform_register()
|
D | skl-sst-ipc.c | 301 struct skl_sst *skl = container_of(ipc, struct skl_sst, ipc); in skl_ipc_process_notification() local 316 skl->boot_complete = true; in skl_ipc_process_notification() 317 wake_up(&skl->boot_wait); in skl_ipc_process_notification() 378 struct skl_sst *skl = sst_dsp_get_thread_context(dsp); in skl_dsp_irq_thread_handler() local 379 struct sst_generic_ipc *ipc = &skl->ipc; in skl_dsp_irq_thread_handler() 485 int skl_ipc_init(struct device *dev, struct skl_sst *skl) in skl_ipc_init() argument 490 ipc = &skl->ipc; in skl_ipc_init() 491 ipc->dsp = skl->dsp; in skl_ipc_init()
|
D | skl-sst-ipc.h | 124 int skl_ipc_init(struct device *dev, struct skl_sst *skl);
|
D | skl-topology.h | 280 static inline struct skl *get_skl_ctx(struct device *dev) in get_skl_ctx()
|