Home
last modified time | relevance | path

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

12

/Linux-v5.10/sound/soc/sof/
Dsof-priv.h82 struct snd_sof_dev;
98 int (*probe)(struct snd_sof_dev *sof_dev); /* mandatory */
99 int (*remove)(struct snd_sof_dev *sof_dev); /* optional */
102 int (*run)(struct snd_sof_dev *sof_dev); /* mandatory */
103 int (*stall)(struct snd_sof_dev *sof_dev); /* optional */
104 int (*reset)(struct snd_sof_dev *sof_dev); /* optional */
105 int (*core_power_up)(struct snd_sof_dev *sof_dev,
107 int (*core_power_down)(struct snd_sof_dev *sof_dev,
115 void (*write)(struct snd_sof_dev *sof_dev, void __iomem *addr,
117 u32 (*read)(struct snd_sof_dev *sof_dev,
[all …]
Dops.h27 static inline int snd_sof_probe(struct snd_sof_dev *sdev) in snd_sof_probe()
32 static inline int snd_sof_remove(struct snd_sof_dev *sdev) in snd_sof_remove()
46 static inline int snd_sof_dsp_run(struct snd_sof_dev *sdev) in snd_sof_dsp_run()
51 static inline int snd_sof_dsp_stall(struct snd_sof_dev *sdev) in snd_sof_dsp_stall()
59 static inline int snd_sof_dsp_reset(struct snd_sof_dev *sdev) in snd_sof_dsp_reset()
68 static inline int snd_sof_dsp_core_power_up(struct snd_sof_dev *sdev, in snd_sof_dsp_core_power_up()
77 static inline int snd_sof_dsp_core_power_down(struct snd_sof_dev *sdev, in snd_sof_dsp_core_power_down()
87 static inline int snd_sof_dsp_pre_fw_run(struct snd_sof_dev *sdev) in snd_sof_dsp_pre_fw_run()
95 static inline int snd_sof_dsp_post_fw_run(struct snd_sof_dev *sdev) in snd_sof_dsp_post_fw_run()
114 static inline int snd_sof_dsp_get_bar_index(struct snd_sof_dev *sdev, u32 type) in snd_sof_dsp_get_bar_index()
[all …]
Dprobe.h16 struct snd_sof_dev;
69 int sof_ipc_probe_init(struct snd_sof_dev *sdev,
71 int sof_ipc_probe_deinit(struct snd_sof_dev *sdev);
72 int sof_ipc_probe_dma_info(struct snd_sof_dev *sdev,
74 int sof_ipc_probe_dma_add(struct snd_sof_dev *sdev,
76 int sof_ipc_probe_dma_remove(struct snd_sof_dev *sdev,
78 int sof_ipc_probe_points_info(struct snd_sof_dev *sdev,
80 int sof_ipc_probe_points_add(struct snd_sof_dev *sdev,
82 int sof_ipc_probe_points_remove(struct snd_sof_dev *sdev,
Dutils.c25 void sof_io_write(struct snd_sof_dev *sdev, void __iomem *addr, u32 value) in sof_io_write()
31 u32 sof_io_read(struct snd_sof_dev *sdev, void __iomem *addr) in sof_io_read()
37 void sof_io_write64(struct snd_sof_dev *sdev, void __iomem *addr, u64 value) in sof_io_write64()
43 u64 sof_io_read64(struct snd_sof_dev *sdev, void __iomem *addr) in sof_io_read64()
53 void sof_mailbox_write(struct snd_sof_dev *sdev, u32 offset, in sof_mailbox_write()
62 void sof_mailbox_read(struct snd_sof_dev *sdev, u32 offset, in sof_mailbox_read()
75 void sof_block_write(struct snd_sof_dev *sdev, u32 bar, u32 offset, void *src, in sof_block_write()
106 void sof_block_read(struct snd_sof_dev *sdev, u32 bar, u32 offset, void *dest, 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()
145 void snd_sof_dsp_panic(struct snd_sof_dev *sdev, u32 offset) in snd_sof_dsp_panic()
Dsof-audio.c18 bool snd_sof_dsp_only_d0i3_compatible_stream_active(struct snd_sof_dev *sdev) in snd_sof_dsp_only_d0i3_compatible_stream_active()
47 bool snd_sof_stream_suspend_ignored(struct snd_sof_dev *sdev) in snd_sof_stream_suspend_ignored()
62 struct snd_sof_dev *sdev = dev_get_drvdata(dev); in sof_set_hw_params_upon_resume()
98 struct snd_sof_dev *sdev = dev_get_drvdata(dev); in sof_restore_kcontrols()
145 const struct sof_ipc_pipe_new *snd_sof_pipeline_find(struct snd_sof_dev *sdev, in snd_sof_pipeline_find()
163 struct snd_sof_dev *sdev = dev_get_drvdata(dev); in sof_restore_pipelines()
329 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp); in snd_sof_find_spcm_name()
355 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp); in snd_sof_find_spcm_comp()
374 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp); in snd_sof_find_spcm_pcm_id()
388 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp); in snd_sof_find_swidget()
[all …]
Dpm.c21 static u32 snd_sof_dsp_power_target(struct snd_sof_dev *sdev) in snd_sof_dsp_power_target()
51 static int sof_send_pm_ctx_ipc(struct snd_sof_dev *sdev, int cmd) in sof_send_pm_ctx_ipc()
68 static void sof_cache_debugfs(struct snd_sof_dev *sdev) in sof_cache_debugfs()
88 struct snd_sof_dev *sdev = dev_get_drvdata(dev); in sof_resume()
180 struct snd_sof_dev *sdev = dev_get_drvdata(dev); in sof_suspend()
264 int snd_sof_dsp_power_down_notify(struct snd_sof_dev *sdev) in snd_sof_dsp_power_down_notify()
281 struct snd_sof_dev *sdev = dev_get_drvdata(dev); in snd_sof_runtime_idle()
307 struct snd_sof_dev *sdev = dev_get_drvdata(dev); in snd_sof_prepare()
327 struct snd_sof_dev *sdev = dev_get_drvdata(dev); in snd_sof_complete()
Dtrace.c16 static size_t sof_trace_avail(struct snd_sof_dev *sdev, in sof_trace_avail()
36 static size_t sof_wait_trace_avail(struct snd_sof_dev *sdev, in sof_wait_trace_avail()
73 struct snd_sof_dev *sdev = dfse->sdev; in sof_dfsentry_trace_read()
119 struct snd_sof_dev *sdev = dfse->sdev; in sof_dfsentry_trace_release()
135 static int trace_debugfs_create(struct snd_sof_dev *sdev) in trace_debugfs_create()
157 int snd_sof_init_trace_ipc(struct snd_sof_dev *sdev) in snd_sof_init_trace_ipc()
224 int snd_sof_init_trace(struct snd_sof_dev *sdev) in snd_sof_init_trace()
283 int snd_sof_trace_update_pos(struct snd_sof_dev *sdev, in snd_sof_trace_update_pos()
303 void snd_sof_trace_notify_for_error(struct snd_sof_dev *sdev) in snd_sof_trace_notify_for_error()
316 void snd_sof_release_trace(struct snd_sof_dev *sdev) in snd_sof_release_trace()
[all …]
Dsof-audio.h160 int sof_pipeline_core_enable(struct snd_sof_dev *sdev,
182 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp); in snd_sof_find_spcm_dai()
201 const struct sof_ipc_pipe_new *snd_sof_pipeline_find(struct snd_sof_dev *sdev,
218 bool snd_sof_stream_suspend_ignored(struct snd_sof_dev *sdev);
219 bool snd_sof_dsp_only_d0i3_compatible_stream_active(struct snd_sof_dev *sdev);
222 int sof_machine_register(struct snd_sof_dev *sdev, void *pdata);
223 void sof_machine_unregister(struct snd_sof_dev *sdev, void *pdata);
Dprobe.c28 int sof_ipc_probe_init(struct snd_sof_dev *sdev, in sof_ipc_probe_init()
60 int sof_ipc_probe_deinit(struct snd_sof_dev *sdev) in sof_ipc_probe_deinit()
73 static int sof_ipc_probe_info(struct snd_sof_dev *sdev, unsigned int cmd, in sof_ipc_probe_info()
130 int sof_ipc_probe_dma_info(struct snd_sof_dev *sdev, in sof_ipc_probe_dma_info()
149 int sof_ipc_probe_dma_add(struct snd_sof_dev *sdev, in sof_ipc_probe_dma_add()
183 int sof_ipc_probe_dma_remove(struct snd_sof_dev *sdev, in sof_ipc_probe_dma_remove()
216 int sof_ipc_probe_points_info(struct snd_sof_dev *sdev, in sof_ipc_probe_points_info()
237 int sof_ipc_probe_points_add(struct snd_sof_dev *sdev, in sof_ipc_probe_points_add()
269 int sof_ipc_probe_points_remove(struct snd_sof_dev *sdev, in sof_ipc_probe_points_remove()
Dloader.c18 static int get_ext_windows(struct snd_sof_dev *sdev, in get_ext_windows()
44 static int get_cc_info(struct snd_sof_dev *sdev, in get_cc_info()
89 int snd_sof_fw_parse_ext_data(struct snd_sof_dev *sdev, u32 bar, u32 offset) in snd_sof_fw_parse_ext_data()
151 static int ext_man_get_fw_version(struct snd_sof_dev *sdev, in ext_man_get_fw_version()
164 static int ext_man_get_windows(struct snd_sof_dev *sdev, in ext_man_get_windows()
174 static int ext_man_get_cc_info(struct snd_sof_dev *sdev, in ext_man_get_cc_info()
184 static int ext_man_get_dbg_abi_info(struct snd_sof_dev *sdev, in ext_man_get_dbg_abi_info()
226 static int snd_sof_fw_ext_man_parse(struct snd_sof_dev *sdev, in snd_sof_fw_ext_man_parse()
309 static void sof_get_windows(struct snd_sof_dev *sdev) in sof_get_windows()
438 int sof_fw_ready(struct snd_sof_dev *sdev, u32 msg_id) in sof_fw_ready()
[all …]
Dipc.c21 static void ipc_trace_message(struct snd_sof_dev *sdev, u32 msg_id);
22 static void ipc_stream_message(struct snd_sof_dev *sdev, u32 msg_cmd);
30 struct snd_sof_dev *sdev;
209 struct snd_sof_dev *sdev = ipc->sdev; in tx_wait_done()
244 struct snd_sof_dev *sdev = ipc->sdev; in sof_ipc_tx_message_unlocked()
344 void snd_sof_ipc_reply(struct snd_sof_dev *sdev, u32 msg_id) in snd_sof_ipc_reply()
362 void snd_sof_ipc_msgs_rx(struct snd_sof_dev *sdev) in snd_sof_ipc_msgs_rx()
418 static void ipc_trace_message(struct snd_sof_dev *sdev, u32 msg_id) in ipc_trace_message()
439 static void ipc_period_elapsed(struct snd_sof_dev *sdev, u32 msg_id) in ipc_period_elapsed()
469 static void ipc_xrun(struct snd_sof_dev *sdev, u32 msg_id) in ipc_xrun()
[all …]
/Linux-v5.10/sound/soc/sof/intel/
Dhda.h452 static inline struct hdac_bus *sof_to_bus(struct snd_sof_dev *s) in sof_to_bus()
459 static inline struct hda_bus *sof_to_hbus(struct snd_sof_dev *s) in sof_to_hbus()
467 struct snd_sof_dev *sdev;
486 int hda_dsp_probe(struct snd_sof_dev *sdev);
487 int hda_dsp_remove(struct snd_sof_dev *sdev);
488 int hda_dsp_core_reset_enter(struct snd_sof_dev *sdev,
490 int hda_dsp_core_reset_leave(struct snd_sof_dev *sdev,
492 int hda_dsp_core_stall_reset(struct snd_sof_dev *sdev, unsigned int core_mask);
493 int hda_dsp_core_run(struct snd_sof_dev *sdev, unsigned int core_mask);
494 int hda_dsp_core_power_up(struct snd_sof_dev *sdev, unsigned int core_mask);
[all …]
Dhda-dsp.c37 int hda_dsp_core_reset_enter(struct snd_sof_dev *sdev, unsigned int core_mask) in hda_dsp_core_reset_enter()
76 int hda_dsp_core_reset_leave(struct snd_sof_dev *sdev, unsigned int core_mask) in hda_dsp_core_reset_leave()
116 int hda_dsp_core_stall_reset(struct snd_sof_dev *sdev, unsigned int core_mask) in hda_dsp_core_stall_reset()
128 int hda_dsp_core_run(struct snd_sof_dev *sdev, unsigned int core_mask) in hda_dsp_core_run()
159 int hda_dsp_core_power_up(struct snd_sof_dev *sdev, unsigned int core_mask) in hda_dsp_core_power_up()
198 int hda_dsp_core_power_down(struct snd_sof_dev *sdev, unsigned int core_mask) in hda_dsp_core_power_down()
221 bool hda_dsp_core_is_enabled(struct snd_sof_dev *sdev, in hda_dsp_core_is_enabled()
240 int hda_dsp_enable_core(struct snd_sof_dev *sdev, unsigned int core_mask) in hda_dsp_enable_core()
264 int hda_dsp_core_reset_power_down(struct snd_sof_dev *sdev, in hda_dsp_core_reset_power_down()
304 void hda_dsp_ipc_int_enable(struct snd_sof_dev *sdev) in hda_dsp_ipc_int_enable()
[all …]
Dhda-ipc.c21 static void hda_dsp_ipc_host_done(struct snd_sof_dev *sdev) in hda_dsp_ipc_host_done()
39 static void hda_dsp_ipc_dsp_done(struct snd_sof_dev *sdev) in hda_dsp_ipc_dsp_done()
57 int hda_dsp_ipc_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) in hda_dsp_ipc_send_msg()
68 void hda_dsp_ipc_get_reply(struct snd_sof_dev *sdev) in hda_dsp_ipc_get_reply()
131 struct snd_sof_dev *sdev = context; in hda_dsp_ipc_irq_thread()
225 bool hda_dsp_check_ipc_irq(struct snd_sof_dev *sdev) in hda_dsp_check_ipc_irq()
246 int hda_dsp_ipc_get_mailbox_offset(struct snd_sof_dev *sdev) in hda_dsp_ipc_get_mailbox_offset()
251 int hda_dsp_ipc_get_window_offset(struct snd_sof_dev *sdev, u32 id) in hda_dsp_ipc_get_window_offset()
256 void hda_ipc_msg_data(struct snd_sof_dev *sdev, in hda_ipc_msg_data()
277 int hda_ipc_pcm_params(struct snd_sof_dev *sdev, in hda_ipc_pcm_params()
Dhda.c57 struct snd_sof_dev *sdev = dev_get_drvdata(dev); in sdw_params_stream()
89 struct snd_sof_dev *sdev = dev_get_drvdata(dev); in sdw_free_stream()
122 void hda_sdw_int_enable(struct snd_sof_dev *sdev, bool enable) in hda_sdw_int_enable()
127 static int hda_sdw_acpi_scan(struct snd_sof_dev *sdev) in hda_sdw_acpi_scan()
145 static int hda_sdw_probe(struct snd_sof_dev *sdev) in hda_sdw_probe()
185 int hda_sdw_startup(struct snd_sof_dev *sdev) in hda_sdw_startup()
197 static int hda_sdw_exit(struct snd_sof_dev *sdev) in hda_sdw_exit()
212 static bool hda_dsp_check_sdw_irq(struct snd_sof_dev *sdev) in hda_dsp_check_sdw_irq()
243 static bool hda_sdw_check_wakeen_irq(struct snd_sof_dev *sdev) in hda_sdw_check_wakeen_irq()
256 void hda_sdw_process_wakeen(struct snd_sof_dev *sdev) in hda_sdw_process_wakeen()
[all …]
Dbdw.c72 static void bdw_host_done(struct snd_sof_dev *sdev);
73 static void bdw_dsp_done(struct snd_sof_dev *sdev);
74 static void bdw_get_reply(struct snd_sof_dev *sdev);
80 static int bdw_run(struct snd_sof_dev *sdev) in bdw_run()
95 static int bdw_reset(struct snd_sof_dev *sdev) in bdw_reset()
113 static int bdw_set_dsp_D0(struct snd_sof_dev *sdev) in bdw_set_dsp_D0()
220 static void bdw_get_registers(struct snd_sof_dev *sdev, in bdw_get_registers()
246 static void bdw_dump(struct snd_sof_dev *sdev, u32 flags) in bdw_dump()
288 struct snd_sof_dev *sdev = context; in bdw_irq_handler()
302 struct snd_sof_dev *sdev = context; in bdw_irq_thread()
[all …]
Dbyt.c85 static void byt_host_done(struct snd_sof_dev *sdev);
86 static void byt_dsp_done(struct snd_sof_dev *sdev);
87 static void byt_get_reply(struct snd_sof_dev *sdev);
93 static void byt_get_registers(struct snd_sof_dev *sdev, in byt_get_registers()
119 static void byt_dump(struct snd_sof_dev *sdev, u32 flags) in byt_dump()
162 struct snd_sof_dev *sdev = context; in byt_irq_handler()
194 struct snd_sof_dev *sdev = context; in byt_irq_thread()
237 static int byt_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) in byt_send_msg()
251 static void byt_get_reply(struct snd_sof_dev *sdev) in byt_get_reply()
290 static int byt_get_mailbox_offset(struct snd_sof_dev *sdev) in byt_get_mailbox_offset()
[all …]
Dhda-codec.c66 void hda_codec_jack_wake_enable(struct snd_sof_dev *sdev) in hda_codec_jack_wake_enable()
81 void hda_codec_jack_check(struct snd_sof_dev *sdev) in hda_codec_jack_check()
100 void hda_codec_jack_wake_enable(struct snd_sof_dev *sdev) {} in hda_codec_jack_wake_enable()
101 void hda_codec_jack_check(struct snd_sof_dev *sdev) {} in hda_codec_jack_check()
114 static int hda_codec_probe(struct snd_sof_dev *sdev, int address, in hda_codec_probe()
197 void hda_codec_probe_bus(struct snd_sof_dev *sdev, in hda_codec_probe_bus()
222 void hda_codec_i915_display_power(struct snd_sof_dev *sdev, bool enable) in hda_codec_i915_display_power()
233 int hda_codec_i915_init(struct snd_sof_dev *sdev) in hda_codec_i915_init()
250 int hda_codec_i915_exit(struct snd_sof_dev *sdev) in hda_codec_i915_exit()
Dhda-pcm.c30 u32 hda_dsp_get_mult_div(struct snd_sof_dev *sdev, int rate) in hda_dsp_get_mult_div()
64 u32 hda_dsp_get_bits(struct snd_sof_dev *sdev, int sample_bits) in hda_dsp_get_bits()
84 int hda_dsp_pcm_hw_params(struct snd_sof_dev *sdev, in hda_dsp_pcm_hw_params()
138 int hda_dsp_pcm_trigger(struct snd_sof_dev *sdev, in hda_dsp_pcm_trigger()
147 snd_pcm_uframes_t hda_dsp_pcm_pointer(struct snd_sof_dev *sdev, in hda_dsp_pcm_pointer()
215 int hda_dsp_pcm_open(struct snd_sof_dev *sdev, in hda_dsp_pcm_open()
233 int hda_dsp_pcm_close(struct snd_sof_dev *sdev, in hda_dsp_pcm_close()
Dhda-compress.c22 int hda_probe_compr_assign(struct snd_sof_dev *sdev, in hda_probe_compr_assign()
39 int hda_probe_compr_free(struct snd_sof_dev *sdev, in hda_probe_compr_free()
59 int hda_probe_compr_set_params(struct snd_sof_dev *sdev, in hda_probe_compr_set_params()
92 int hda_probe_compr_trigger(struct snd_sof_dev *sdev, in hda_probe_compr_trigger()
101 int hda_probe_compr_pointer(struct snd_sof_dev *sdev, in hda_probe_compr_pointer()
Dintel-ipc.c28 void intel_ipc_msg_data(struct snd_sof_dev *sdev, in intel_ipc_msg_data()
44 int intel_ipc_pcm_params(struct snd_sof_dev *sdev, in intel_ipc_pcm_params()
65 int intel_pcm_open(struct snd_sof_dev *sdev, in intel_pcm_open()
80 int intel_pcm_close(struct snd_sof_dev *sdev, in intel_pcm_close()
Dhda-trace.c22 static int hda_dsp_trace_prepare(struct snd_sof_dev *sdev) in hda_dsp_trace_prepare()
40 int hda_dsp_trace_init(struct snd_sof_dev *sdev, u32 *stream_tag) in hda_dsp_trace_init()
71 int hda_dsp_trace_release(struct snd_sof_dev *sdev) in hda_dsp_trace_release()
89 int hda_dsp_trace_trigger(struct snd_sof_dev *sdev, int cmd) in hda_dsp_trace_trigger()
/Linux-v5.10/sound/soc/sof/imx/
Dimx8m.c27 struct snd_sof_dev *sdev;
34 static void imx8m_get_reply(struct snd_sof_dev *sdev) in imx8m_get_reply()
68 static int imx8m_get_mailbox_offset(struct snd_sof_dev *sdev) in imx8m_get_mailbox_offset()
73 static int imx8m_get_window_offset(struct snd_sof_dev *sdev, u32 id) in imx8m_get_window_offset()
109 static int imx8m_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) in imx8m_send_msg()
123 static int imx8m_run(struct snd_sof_dev *sdev) in imx8m_run()
129 static int imx8m_probe(struct snd_sof_dev *sdev) in imx8m_probe()
219 static int imx8m_remove(struct snd_sof_dev *sdev) in imx8m_remove()
229 static int imx8m_get_bar_index(struct snd_sof_dev *sdev, u32 type) in imx8m_get_bar_index()
234 static void imx8m_ipc_msg_data(struct snd_sof_dev *sdev, in imx8m_ipc_msg_data()
[all …]
Dimx8.c45 struct snd_sof_dev *sdev;
61 static void imx8_get_reply(struct snd_sof_dev *sdev) in imx8_get_reply()
95 static int imx8_get_mailbox_offset(struct snd_sof_dev *sdev) in imx8_get_mailbox_offset()
100 static int imx8_get_window_offset(struct snd_sof_dev *sdev, u32 id) in imx8_get_window_offset()
136 static int imx8_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) in imx8_send_msg()
150 static int imx8x_run(struct snd_sof_dev *sdev) in imx8x_run()
190 static int imx8_run(struct snd_sof_dev *sdev) in imx8_run()
208 static int imx8_probe(struct snd_sof_dev *sdev) in imx8_probe()
349 static int imx8_remove(struct snd_sof_dev *sdev) in imx8_remove()
365 static int imx8_get_bar_index(struct snd_sof_dev *sdev, u32 type) in imx8_get_bar_index()
[all …]

12