Lines Matching refs:snd_sof_dev

526 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);
571 int hda_dsp_core_get(struct snd_sof_dev *sdev, int core);
572 void hda_dsp_ipc_int_enable(struct snd_sof_dev *sdev);
573 void hda_dsp_ipc_int_disable(struct snd_sof_dev *sdev);
574 bool hda_dsp_core_is_enabled(struct snd_sof_dev *sdev, unsigned int core_mask);
576 int hda_dsp_set_power_state(struct snd_sof_dev *sdev,
579 int hda_dsp_suspend(struct snd_sof_dev *sdev, u32 target_state);
580 int hda_dsp_resume(struct snd_sof_dev *sdev);
581 int hda_dsp_runtime_suspend(struct snd_sof_dev *sdev);
582 int hda_dsp_runtime_resume(struct snd_sof_dev *sdev);
583 int hda_dsp_runtime_idle(struct snd_sof_dev *sdev);
584 int hda_dsp_shutdown(struct snd_sof_dev *sdev);
585 int hda_dsp_set_hw_params_upon_resume(struct snd_sof_dev *sdev);
586 void hda_dsp_dump(struct snd_sof_dev *sdev, u32 flags);
587 void hda_ipc_dump(struct snd_sof_dev *sdev);
588 void hda_ipc_irq_dump(struct snd_sof_dev *sdev);
590 int hda_dsp_disable_interrupts(struct snd_sof_dev *sdev);
595 u32 hda_dsp_get_mult_div(struct snd_sof_dev *sdev, int rate);
596 u32 hda_dsp_get_bits(struct snd_sof_dev *sdev, int sample_bits);
597 int hda_dsp_pcm_open(struct snd_sof_dev *sdev,
599 int hda_dsp_pcm_close(struct snd_sof_dev *sdev,
601 int hda_dsp_pcm_hw_params(struct snd_sof_dev *sdev,
605 int hda_dsp_stream_hw_free(struct snd_sof_dev *sdev,
607 int hda_dsp_pcm_trigger(struct snd_sof_dev *sdev,
609 snd_pcm_uframes_t hda_dsp_pcm_pointer(struct snd_sof_dev *sdev,
611 int hda_dsp_pcm_ack(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream);
617 int hda_dsp_stream_init(struct snd_sof_dev *sdev);
618 void hda_dsp_stream_free(struct snd_sof_dev *sdev);
619 int hda_dsp_stream_hw_params(struct snd_sof_dev *sdev,
623 int hda_dsp_iccmax_stream_hw_params(struct snd_sof_dev *sdev,
627 int hda_dsp_stream_trigger(struct snd_sof_dev *sdev,
630 int hda_dsp_stream_setup_bdl(struct snd_sof_dev *sdev,
633 bool hda_dsp_check_ipc_irq(struct snd_sof_dev *sdev);
634 bool hda_dsp_check_stream_irq(struct snd_sof_dev *sdev);
640 hda_dsp_stream_get(struct snd_sof_dev *sdev, int direction, u32 flags);
641 int hda_dsp_stream_put(struct snd_sof_dev *sdev, int direction, int stream_tag);
642 int hda_dsp_stream_spib_config(struct snd_sof_dev *sdev,
646 int hda_ipc_msg_data(struct snd_sof_dev *sdev,
649 int hda_set_stream_data_offset(struct snd_sof_dev *sdev,
656 int hda_dsp_ipc_send_msg(struct snd_sof_dev *sdev,
658 void hda_dsp_ipc_get_reply(struct snd_sof_dev *sdev);
659 int hda_dsp_ipc_get_mailbox_offset(struct snd_sof_dev *sdev);
660 int hda_dsp_ipc_get_window_offset(struct snd_sof_dev *sdev, u32 id);
663 int hda_dsp_ipc_cmd_done(struct snd_sof_dev *sdev, int dir);
668 int hda_dsp_cl_boot_firmware(struct snd_sof_dev *sdev);
669 int hda_dsp_cl_boot_firmware_iccmax(struct snd_sof_dev *sdev);
670 int hda_cl_copy_fw(struct snd_sof_dev *sdev, struct hdac_ext_stream *hext_stream);
671 struct hdac_ext_stream *hda_cl_stream_prepare(struct snd_sof_dev *sdev, unsigned int format,
674 int hda_cl_cleanup(struct snd_sof_dev *sdev, struct snd_dma_buffer *dmab,
676 int cl_dsp_init(struct snd_sof_dev *sdev, int stream_tag, bool imr_boot);
680 int hda_dsp_pre_fw_run(struct snd_sof_dev *sdev);
681 int hda_dsp_post_fw_run(struct snd_sof_dev *sdev);
684 int hda_dsp_ext_man_get_cavs_config_data(struct snd_sof_dev *sdev,
690 int hda_dsp_ctrl_get_caps(struct snd_sof_dev *sdev);
691 void hda_dsp_ctrl_ppcap_enable(struct snd_sof_dev *sdev, bool enable);
692 void hda_dsp_ctrl_ppcap_int_enable(struct snd_sof_dev *sdev, bool enable);
693 int hda_dsp_ctrl_link_reset(struct snd_sof_dev *sdev, bool reset);
694 void hda_dsp_ctrl_misc_clock_gating(struct snd_sof_dev *sdev, bool enable);
695 int hda_dsp_ctrl_clock_power_gating(struct snd_sof_dev *sdev, bool enable);
696 int hda_dsp_ctrl_init_chip(struct snd_sof_dev *sdev, bool full_reset);
697 void hda_dsp_ctrl_stop_chip(struct snd_sof_dev *sdev);
707 void hda_codec_probe_bus(struct snd_sof_dev *sdev,
709 void hda_codec_jack_wake_enable(struct snd_sof_dev *sdev, bool enable);
710 void hda_codec_jack_check(struct snd_sof_dev *sdev);
718 void hda_codec_i915_display_power(struct snd_sof_dev *sdev, bool enable);
719 int hda_codec_i915_init(struct snd_sof_dev *sdev);
720 int hda_codec_i915_exit(struct snd_sof_dev *sdev);
724 static inline void hda_codec_i915_display_power(struct snd_sof_dev *sdev, in hda_codec_i915_display_power()
726 static inline int hda_codec_i915_init(struct snd_sof_dev *sdev) { return 0; } in hda_codec_i915_init()
727 static inline int hda_codec_i915_exit(struct snd_sof_dev *sdev) { return 0; } in hda_codec_i915_exit()
734 int hda_dsp_trace_init(struct snd_sof_dev *sdev, struct snd_dma_buffer *dmab,
736 int hda_dsp_trace_release(struct snd_sof_dev *sdev);
737 int hda_dsp_trace_trigger(struct snd_sof_dev *sdev, int cmd);
744 int hda_sdw_startup(struct snd_sof_dev *sdev);
745 void hda_sdw_int_enable(struct snd_sof_dev *sdev, bool enable);
746 void hda_sdw_process_wakeen(struct snd_sof_dev *sdev);
747 bool hda_common_check_sdw_irq(struct snd_sof_dev *sdev);
751 static inline int hda_sdw_startup(struct snd_sof_dev *sdev) in hda_sdw_startup()
756 static inline void hda_sdw_int_enable(struct snd_sof_dev *sdev, bool enable) in hda_sdw_int_enable()
760 static inline void hda_sdw_process_wakeen(struct snd_sof_dev *sdev) in hda_sdw_process_wakeen()
764 static inline bool hda_common_check_sdw_irq(struct snd_sof_dev *sdev) in hda_common_check_sdw_irq()
773 int hda_dsp_dais_suspend(struct snd_sof_dev *sdev);
781 int sof_skl_ops_init(struct snd_sof_dev *sdev);
783 int sof_apl_ops_init(struct snd_sof_dev *sdev);
785 int sof_cnl_ops_init(struct snd_sof_dev *sdev);
787 int sof_tgl_ops_init(struct snd_sof_dev *sdev);
789 int sof_icl_ops_init(struct snd_sof_dev *sdev);
791 int sof_mtl_ops_init(struct snd_sof_dev *sdev);
806 int hda_probes_register(struct snd_sof_dev *sdev);
807 void hda_probes_unregister(struct snd_sof_dev *sdev);
809 static inline int hda_probes_register(struct snd_sof_dev *sdev) in hda_probes_register()
814 static inline void hda_probes_unregister(struct snd_sof_dev *sdev) in hda_probes_unregister()
820 int hda_register_clients(struct snd_sof_dev *sdev);
821 void hda_unregister_clients(struct snd_sof_dev *sdev);
824 struct snd_soc_acpi_mach *hda_machine_select(struct snd_sof_dev *sdev);
826 struct snd_sof_dev *sdev);
844 void hda_set_dai_drv_ops(struct snd_sof_dev *sdev, struct snd_sof_dsp_ops *ops);
845 void hda_ops_free(struct snd_sof_dev *sdev);
848 int hda_dsp_cl_boot_firmware_skl(struct snd_sof_dev *sdev);
849 int hda_dsp_core_stall_reset(struct snd_sof_dev *sdev, unsigned int core_mask);
853 int cnl_ipc4_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg);
855 int hda_dsp_ipc4_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg);
856 void hda_ipc4_dump(struct snd_sof_dev *sdev);