Home
last modified time | relevance | path

Searched refs:snd_sof_dev (Results 1 – 25 of 91) sorted by relevance

1234

/Linux-v6.1/sound/soc/sof/
Dsof-priv.h115 struct snd_sof_dev;
147 int (*probe)(struct snd_sof_dev *sof_dev); /* mandatory */
148 int (*remove)(struct snd_sof_dev *sof_dev); /* optional */
149 int (*shutdown)(struct snd_sof_dev *sof_dev); /* optional */
152 int (*run)(struct snd_sof_dev *sof_dev); /* mandatory */
153 int (*stall)(struct snd_sof_dev *sof_dev, unsigned int core_mask); /* optional */
154 int (*reset)(struct snd_sof_dev *sof_dev); /* optional */
155 int (*core_get)(struct snd_sof_dev *sof_dev, int core); /* optional */
156 int (*core_put)(struct snd_sof_dev *sof_dev, int core); /* optional */
163 void (*write)(struct snd_sof_dev *sof_dev, void __iomem *addr,
[all …]
Dops.h24 static inline int sof_ops_init(struct snd_sof_dev *sdev) in sof_ops_init()
32 static inline void sof_ops_free(struct snd_sof_dev *sdev) in sof_ops_free()
41 static inline int snd_sof_probe(struct snd_sof_dev *sdev) in snd_sof_probe()
46 static inline int snd_sof_remove(struct snd_sof_dev *sdev) in snd_sof_remove()
54 static inline int snd_sof_shutdown(struct snd_sof_dev *sdev) in snd_sof_shutdown()
68 static inline int snd_sof_dsp_run(struct snd_sof_dev *sdev) in snd_sof_dsp_run()
73 static inline int snd_sof_dsp_stall(struct snd_sof_dev *sdev, unsigned int core_mask) in snd_sof_dsp_stall()
81 static inline int snd_sof_dsp_reset(struct snd_sof_dev *sdev) in snd_sof_dsp_reset()
90 static inline int snd_sof_dsp_core_get(struct snd_sof_dev *sdev, int core) in snd_sof_dsp_core_get()
124 static inline int snd_sof_dsp_core_put(struct snd_sof_dev *sdev, int core) in snd_sof_dsp_core_put()
[all …]
Dsof-audio.h119 void (*update)(struct snd_sof_dev *sdev, void *ipc_control_message);
121 int (*widget_kcontrol_setup)(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget);
176 int (*route_setup)(struct snd_sof_dev *sdev, struct snd_sof_route *sroute);
177 int (*route_free)(struct snd_sof_dev *sdev, struct snd_sof_route *sroute);
179 int (*control_setup)(struct snd_sof_dev *sdev, struct snd_sof_control *scontrol);
180 int (*control_free)(struct snd_sof_dev *sdev, struct snd_sof_control *scontrol);
181 int (*pipeline_complete)(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget);
182 int (*widget_setup)(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget);
183 int (*widget_free)(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget);
184 int (*dai_config)(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget,
[all …]
Dsof-client.c71 static int sof_register_ipc_flood_test(struct snd_sof_dev *sdev) in sof_register_ipc_flood_test()
93 static void sof_unregister_ipc_flood_test(struct snd_sof_dev *sdev) in sof_unregister_ipc_flood_test()
101 static inline int sof_register_ipc_flood_test(struct snd_sof_dev *sdev) in sof_register_ipc_flood_test()
106 static inline void sof_unregister_ipc_flood_test(struct snd_sof_dev *sdev) {} in sof_unregister_ipc_flood_test()
110 static int sof_register_ipc_msg_injector(struct snd_sof_dev *sdev) in sof_register_ipc_msg_injector()
115 static void sof_unregister_ipc_msg_injector(struct snd_sof_dev *sdev) in sof_unregister_ipc_msg_injector()
120 static inline int sof_register_ipc_msg_injector(struct snd_sof_dev *sdev) in sof_register_ipc_msg_injector()
125 static inline void sof_unregister_ipc_msg_injector(struct snd_sof_dev *sdev) {} in sof_unregister_ipc_msg_injector()
128 int sof_register_clients(struct snd_sof_dev *sdev) in sof_register_clients()
161 void sof_unregister_clients(struct snd_sof_dev *sdev) in sof_unregister_clients()
[all …]
Dipc3-priv.h22 int sof_ipc3_get_ext_windows(struct snd_sof_dev *sdev,
24 int sof_ipc3_get_cc_info(struct snd_sof_dev *sdev,
26 int sof_ipc3_validate_fw_version(struct snd_sof_dev *sdev);
29 int ipc3_dtrace_posn_update(struct snd_sof_dev *sdev,
33 static inline int sof_dtrace_host_init(struct snd_sof_dev *sdev, in sof_dtrace_host_init()
45 static inline int sof_dtrace_host_release(struct snd_sof_dev *sdev) in sof_dtrace_host_release()
55 static inline int sof_dtrace_host_trigger(struct snd_sof_dev *sdev, int cmd) in sof_dtrace_host_trigger()
Diomem-utils.c26 void sof_io_write(struct snd_sof_dev *sdev, void __iomem *addr, u32 value) in sof_io_write()
32 u32 sof_io_read(struct snd_sof_dev *sdev, void __iomem *addr) in sof_io_read()
38 void sof_io_write64(struct snd_sof_dev *sdev, void __iomem *addr, u64 value) in sof_io_write64()
44 u64 sof_io_read64(struct snd_sof_dev *sdev, void __iomem *addr) in sof_io_read64()
54 void sof_mailbox_write(struct snd_sof_dev *sdev, u32 offset, in sof_mailbox_write()
63 void sof_mailbox_read(struct snd_sof_dev *sdev, u32 offset, in sof_mailbox_read()
76 int sof_block_write(struct snd_sof_dev *sdev, enum snd_sof_fw_blk_type blk_type, in sof_block_write()
115 int sof_block_read(struct snd_sof_dev *sdev, enum snd_sof_fw_blk_type blk_type, in sof_block_read()
Dops.c15 bool snd_sof_pci_update_bits_unlocked(struct snd_sof_dev *sdev, u32 offset, in snd_sof_pci_update_bits_unlocked()
38 bool snd_sof_pci_update_bits(struct snd_sof_dev *sdev, u32 offset, in snd_sof_pci_update_bits()
51 bool snd_sof_dsp_update_bits_unlocked(struct snd_sof_dev *sdev, u32 bar, in snd_sof_dsp_update_bits_unlocked()
71 bool snd_sof_dsp_update_bits64_unlocked(struct snd_sof_dev *sdev, u32 bar, in snd_sof_dsp_update_bits64_unlocked()
90 bool snd_sof_dsp_update_bits(struct snd_sof_dev *sdev, u32 bar, u32 offset, in snd_sof_dsp_update_bits()
104 bool snd_sof_dsp_update_bits64(struct snd_sof_dev *sdev, u32 bar, u32 offset, in snd_sof_dsp_update_bits64()
119 void snd_sof_dsp_update_bits_forced_unlocked(struct snd_sof_dev *sdev, u32 bar, in snd_sof_dsp_update_bits_forced_unlocked()
134 void snd_sof_dsp_update_bits_forced(struct snd_sof_dev *sdev, u32 bar, in snd_sof_dsp_update_bits_forced()
151 void snd_sof_dsp_panic(struct snd_sof_dev *sdev, u32 offset, bool non_recoverable) in snd_sof_dsp_panic()
Dtrace.c7 int sof_fw_trace_init(struct snd_sof_dev *sdev) in sof_fw_trace_init()
19 void sof_fw_trace_free(struct snd_sof_dev *sdev) in sof_fw_trace_free()
28 void sof_fw_trace_fw_crashed(struct snd_sof_dev *sdev) in sof_fw_trace_fw_crashed()
37 void sof_fw_trace_suspend(struct snd_sof_dev *sdev, pm_message_t pm_state) in sof_fw_trace_suspend()
45 int sof_fw_trace_resume(struct snd_sof_dev *sdev) in sof_fw_trace_resume()
Dsof-audio.c17 static void sof_reset_route_setup_status(struct snd_sof_dev *sdev, struct snd_sof_widget *widget) in sof_reset_route_setup_status()
31 int sof_widget_free(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget) in sof_widget_free()
83 int sof_widget_setup(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget) in sof_widget_setup()
169 int sof_route_setup(struct snd_sof_dev *sdev, struct snd_soc_dapm_widget *wsource, in sof_route_setup()
223 static int sof_setup_pipeline_connections(struct snd_sof_dev *sdev, in sof_setup_pipeline_connections()
267 sof_unprepare_widgets_in_path(struct snd_sof_dev *sdev, struct snd_soc_dapm_widget *widget) in sof_unprepare_widgets_in_path()
295 sof_prepare_widgets_in_path(struct snd_sof_dev *sdev, struct snd_soc_dapm_widget *widget, in sof_prepare_widgets_in_path()
345 static int sof_free_widgets_in_path(struct snd_sof_dev *sdev, struct snd_soc_dapm_widget *widget, in sof_free_widgets_in_path()
381 static int sof_set_up_widgets_in_path(struct snd_sof_dev *sdev, struct snd_soc_dapm_widget *widget, in sof_set_up_widgets_in_path()
420 sof_walk_widgets_in_order(struct snd_sof_dev *sdev, struct snd_soc_dapm_widget_list *list, in sof_walk_widgets_in_order()
[all …]
/Linux-v6.1/sound/soc/sof/intel/
Dhda.h526 static inline struct hdac_bus *sof_to_bus(struct snd_sof_dev *s) in sof_to_bus()
533 static inline struct hda_bus *sof_to_hbus(struct snd_sof_dev *s) in sof_to_hbus()
541 struct snd_sof_dev *sdev;
563 int hda_dsp_probe(struct snd_sof_dev *sdev);
564 int hda_dsp_remove(struct snd_sof_dev *sdev);
565 int hda_dsp_core_power_up(struct snd_sof_dev *sdev, unsigned int core_mask);
566 int hda_dsp_core_run(struct snd_sof_dev *sdev, unsigned int core_mask);
567 int hda_dsp_enable_core(struct snd_sof_dev *sdev, unsigned int core_mask);
568 int hda_dsp_core_reset_power_down(struct snd_sof_dev *sdev,
570 int hda_power_down_dsp(struct snd_sof_dev *sdev);
[all …]
Datom.h60 int atom_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg);
61 int atom_get_mailbox_offset(struct snd_sof_dev *sdev);
62 int atom_get_window_offset(struct snd_sof_dev *sdev, u32 id);
64 int atom_run(struct snd_sof_dev *sdev);
65 int atom_reset(struct snd_sof_dev *sdev);
66 void atom_dump(struct snd_sof_dev *sdev, u32 flags);
68 struct snd_soc_acpi_mach *atom_machine_select(struct snd_sof_dev *sdev);
70 struct snd_sof_dev *sdev);
Datom.c28 static void atom_host_done(struct snd_sof_dev *sdev);
29 static void atom_dsp_done(struct snd_sof_dev *sdev);
35 static void atom_get_registers(struct snd_sof_dev *sdev, in atom_get_registers()
61 void atom_dump(struct snd_sof_dev *sdev, u32 flags) in atom_dump()
105 struct snd_sof_dev *sdev = context; in atom_irq_handler()
138 struct snd_sof_dev *sdev = context; in atom_irq_thread()
181 int atom_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) in atom_send_msg()
196 int atom_get_mailbox_offset(struct snd_sof_dev *sdev) in atom_get_mailbox_offset()
202 int atom_get_window_offset(struct snd_sof_dev *sdev, u32 id) in atom_get_window_offset()
208 static void atom_host_done(struct snd_sof_dev *sdev) in atom_host_done()
[all …]
Dhda-dsp.c38 static int hda_dsp_core_reset_enter(struct snd_sof_dev *sdev, unsigned int core_mask) in hda_dsp_core_reset_enter()
77 static int hda_dsp_core_reset_leave(struct snd_sof_dev *sdev, unsigned int core_mask) in hda_dsp_core_reset_leave()
117 int hda_dsp_core_stall_reset(struct snd_sof_dev *sdev, unsigned int core_mask) in hda_dsp_core_stall_reset()
129 bool hda_dsp_core_is_enabled(struct snd_sof_dev *sdev, unsigned int core_mask) in hda_dsp_core_is_enabled()
154 int hda_dsp_core_run(struct snd_sof_dev *sdev, unsigned int core_mask) in hda_dsp_core_run()
185 int hda_dsp_core_power_up(struct snd_sof_dev *sdev, unsigned int core_mask) in hda_dsp_core_power_up()
232 static int hda_dsp_core_power_down(struct snd_sof_dev *sdev, unsigned int core_mask) in hda_dsp_core_power_down()
255 int hda_dsp_enable_core(struct snd_sof_dev *sdev, unsigned int core_mask) in hda_dsp_enable_core()
279 int hda_dsp_core_reset_power_down(struct snd_sof_dev *sdev, in hda_dsp_core_reset_power_down()
319 void hda_dsp_ipc_int_enable(struct snd_sof_dev *sdev) in hda_dsp_ipc_int_enable()
[all …]
Dmtl.c28 static void mtl_ipc_host_done(struct snd_sof_dev *sdev) in mtl_ipc_host_done()
43 static void mtl_ipc_dsp_done(struct snd_sof_dev *sdev) in mtl_ipc_dsp_done()
58 static bool mtl_dsp_check_ipc_irq(struct snd_sof_dev *sdev) in mtl_dsp_check_ipc_irq()
76 static bool mtl_dsp_check_sdw_irq(struct snd_sof_dev *sdev) in mtl_dsp_check_sdw_irq()
91 static int mtl_ipc_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) in mtl_ipc_send_msg()
108 static void mtl_enable_ipc_interrupts(struct snd_sof_dev *sdev) in mtl_enable_ipc_interrupts()
119 static void mtl_disable_ipc_interrupts(struct snd_sof_dev *sdev) in mtl_disable_ipc_interrupts()
129 static int mtl_enable_interrupts(struct snd_sof_dev *sdev) in mtl_enable_interrupts()
181 static int mtl_disable_interrupts(struct snd_sof_dev *sdev) in mtl_disable_interrupts()
240 static int mtl_dsp_pre_fw_run(struct snd_sof_dev *sdev) in mtl_dsp_pre_fw_run()
[all …]
Dhda.c52 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(component); in hda_ctrl_dai_widget_setup()
85 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(component); in hda_ctrl_dai_widget_free()
158 void hda_sdw_int_enable(struct snd_sof_dev *sdev, bool enable) in hda_sdw_int_enable()
163 static int hda_sdw_acpi_scan(struct snd_sof_dev *sdev) in hda_sdw_acpi_scan()
181 static int hda_sdw_probe(struct snd_sof_dev *sdev) in hda_sdw_probe()
223 int hda_sdw_startup(struct snd_sof_dev *sdev) in hda_sdw_startup()
239 static int hda_sdw_exit(struct snd_sof_dev *sdev) in hda_sdw_exit()
254 bool hda_common_check_sdw_irq(struct snd_sof_dev *sdev) in hda_common_check_sdw_irq()
280 static bool hda_dsp_check_sdw_irq(struct snd_sof_dev *sdev) in hda_dsp_check_sdw_irq()
296 static bool hda_sdw_check_wakeen_irq(struct snd_sof_dev *sdev) in hda_sdw_check_wakeen_irq()
[all …]
Dhda-ipc.c23 static void hda_dsp_ipc_host_done(struct snd_sof_dev *sdev) in hda_dsp_ipc_host_done()
41 static void hda_dsp_ipc_dsp_done(struct snd_sof_dev *sdev) in hda_dsp_ipc_dsp_done()
59 int hda_dsp_ipc_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) in hda_dsp_ipc_send_msg()
70 int hda_dsp_ipc4_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) in hda_dsp_ipc4_send_msg()
86 void hda_dsp_ipc_get_reply(struct snd_sof_dev *sdev) in hda_dsp_ipc_get_reply()
124 struct snd_sof_dev *sdev = context; in hda_dsp_ipc4_irq_thread()
195 struct snd_sof_dev *sdev = context; in hda_dsp_ipc_irq_thread()
305 bool hda_dsp_check_ipc_irq(struct snd_sof_dev *sdev) in hda_dsp_check_ipc_irq()
334 int hda_dsp_ipc_get_mailbox_offset(struct snd_sof_dev *sdev) in hda_dsp_ipc_get_mailbox_offset()
339 int hda_dsp_ipc_get_window_offset(struct snd_sof_dev *sdev, u32 id) in hda_dsp_ipc_get_window_offset()
[all …]
/Linux-v6.1/sound/soc/sof/amd/
Dacp.h134 struct snd_sof_dev *sdev;
159 struct snd_sof_dev *dev;
173 void memcpy_to_scratch(struct snd_sof_dev *sdev, u32 offset, unsigned int *src, size_t bytes);
174 void memcpy_from_scratch(struct snd_sof_dev *sdev, u32 offset, unsigned int *dst, size_t bytes);
184 int amd_sof_acp_probe(struct snd_sof_dev *sdev);
185 int amd_sof_acp_remove(struct snd_sof_dev *sdev);
188 int acp_sof_dsp_run(struct snd_sof_dev *sdev);
189 int acp_dsp_pre_fw_run(struct snd_sof_dev *sdev);
190 int acp_get_bar_index(struct snd_sof_dev *sdev, u32 type);
193 int acp_dsp_block_write(struct snd_sof_dev *sdev, enum snd_sof_fw_blk_type blk_type,
[all …]
Dacp-ipc.c18 void acp_mailbox_write(struct snd_sof_dev *sdev, u32 offset, void *message, size_t bytes) in acp_mailbox_write()
24 void acp_mailbox_read(struct snd_sof_dev *sdev, u32 offset, void *message, size_t bytes) in acp_mailbox_read()
32 struct snd_sof_dev *sdev = adata->dev; in acpbus_trigger_host_to_dsp_swintr()
43 static void acp_ipc_host_msg_set(struct snd_sof_dev *sdev) in acp_ipc_host_msg_set()
51 static void acp_dsp_ipc_host_done(struct snd_sof_dev *sdev) in acp_dsp_ipc_host_done()
59 static void acp_dsp_ipc_dsp_done(struct snd_sof_dev *sdev) in acp_dsp_ipc_dsp_done()
67 int acp_sof_ipc_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) in acp_sof_ipc_send_msg()
96 static void acp_dsp_ipc_get_reply(struct snd_sof_dev *sdev) in acp_dsp_ipc_get_reply()
150 struct snd_sof_dev *sdev = context; in acp_sof_ipc_irq_thread()
190 int acp_sof_ipc_msg_data(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream, in acp_sof_ipc_msg_data()
[all …]
Dacp.c41 struct snd_sof_dev *sdev = adata->dev; in init_dma_descriptor()
55 struct snd_sof_dev *sdev = adata->dev; in configure_dma_descriptor()
70 struct snd_sof_dev *sdev = adata->dev; in config_dma_channel()
100 struct snd_sof_dev *sdev = adata->dev; in acpbus_dma_start()
120 struct snd_sof_dev *sdev = adata->dev; in configure_and_run_dma()
152 struct snd_sof_dev *sdev = adata->dev; in psp_mbox_ready()
179 struct snd_sof_dev *sdev = adata->dev; in psp_send_cmd()
219 struct snd_sof_dev *sdev = adata->dev; in configure_and_run_sha_dma()
269 struct snd_sof_dev *sdev = adata->dev; in acp_dma_status()
285 void memcpy_from_scratch(struct snd_sof_dev *sdev, u32 offset, unsigned int *dst, size_t bytes) in memcpy_from_scratch()
[all …]
/Linux-v6.1/sound/soc/sof/imx/
Dimx-common.h11 void imx8_get_registers(struct snd_sof_dev *sdev,
16 void imx8_dump(struct snd_sof_dev *sdev, u32 flags);
23 int imx8_parse_clocks(struct snd_sof_dev *sdev, struct imx_clocks *clks);
24 int imx8_enable_clocks(struct snd_sof_dev *sdev, struct imx_clocks *clks);
25 void imx8_disable_clocks(struct snd_sof_dev *sdev, struct imx_clocks *clks);
Dimx8ulp.c52 struct snd_sof_dev *sdev;
74 static int imx8ulp_get_mailbox_offset(struct snd_sof_dev *sdev) in imx8ulp_get_mailbox_offset()
79 static int imx8ulp_get_window_offset(struct snd_sof_dev *sdev, u32 id) in imx8ulp_get_window_offset()
116 static int imx8ulp_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) in imx8ulp_send_msg()
127 static int imx8ulp_run(struct snd_sof_dev *sdev) in imx8ulp_run()
136 static int imx8ulp_reset(struct snd_sof_dev *sdev) in imx8ulp_reset()
162 static int imx8ulp_probe(struct snd_sof_dev *sdev) in imx8ulp_probe()
281 static int imx8ulp_remove(struct snd_sof_dev *sdev) in imx8ulp_remove()
292 static int imx8ulp_get_bar_index(struct snd_sof_dev *sdev, u32 type) in imx8ulp_get_bar_index()
297 static int imx8ulp_suspend(struct snd_sof_dev *sdev) in imx8ulp_suspend()
[all …]
Dimx8m.c51 struct snd_sof_dev *sdev;
63 static int imx8m_get_mailbox_offset(struct snd_sof_dev *sdev) in imx8m_get_mailbox_offset()
68 static int imx8m_get_window_offset(struct snd_sof_dev *sdev, u32 id) in imx8m_get_window_offset()
103 static int imx8m_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) in imx8m_send_msg()
117 static int imx8m_run(struct snd_sof_dev *sdev) in imx8m_run()
126 static int imx8m_reset(struct snd_sof_dev *sdev) in imx8m_reset()
150 static int imx8m_probe(struct snd_sof_dev *sdev) in imx8m_probe()
272 static int imx8m_remove(struct snd_sof_dev *sdev) in imx8m_remove()
283 static int imx8m_get_bar_index(struct snd_sof_dev *sdev, u32 type) in imx8m_get_bar_index()
320 static int imx8m_dsp_set_power_state(struct snd_sof_dev *sdev, in imx8m_dsp_set_power_state()
[all …]
/Linux-v6.1/sound/soc/sof/mediatek/mt8186/
Dmt8186-clk.h12 struct snd_sof_dev;
21 int mt8186_adsp_init_clock(struct snd_sof_dev *sdev);
22 int mt8186_adsp_clock_on(struct snd_sof_dev *sdev);
23 void mt8186_adsp_clock_off(struct snd_sof_dev *sdev);
/Linux-v6.1/sound/soc/sof/mediatek/mt8195/
Dmt8195-clk.h12 struct snd_sof_dev;
25 int mt8195_adsp_init_clock(struct snd_sof_dev *sdev);
26 int adsp_clock_on(struct snd_sof_dev *sdev);
27 int adsp_clock_off(struct snd_sof_dev *sdev);
/Linux-v6.1/include/trace/events/
Dsof_intel.h18 TP_PROTO(struct snd_sof_dev *sdev, char *source),
33 TP_ARGS(struct snd_sof_dev *sdev, u32 msg, u32 msg_ext),
50 TP_PROTO(struct snd_sof_dev *sdev, u32 msg, u32 msg_ext),
55 TP_PROTO(struct snd_sof_dev *sdev, u32 msg, u32 msg_ext),
60 TP_PROTO(struct snd_sof_dev *sdev, u8 reg),
75 TP_PROTO(struct snd_sof_dev *sdev, u32 irq_status),
90 TP_PROTO(struct snd_sof_dev *sdev,
131 TP_PROTO(struct snd_sof_dev *sdev, u32 status),

1234