Lines Matching refs:sdev

554 	struct snd_sof_dev *sdev;  member
576 int hda_dsp_probe(struct snd_sof_dev *sdev);
577 int hda_dsp_remove(struct snd_sof_dev *sdev);
578 int hda_dsp_core_power_up(struct snd_sof_dev *sdev, unsigned int core_mask);
579 int hda_dsp_core_run(struct snd_sof_dev *sdev, unsigned int core_mask);
580 int hda_dsp_enable_core(struct snd_sof_dev *sdev, unsigned int core_mask);
581 int hda_dsp_core_reset_power_down(struct snd_sof_dev *sdev,
583 int hda_power_down_dsp(struct snd_sof_dev *sdev);
584 int hda_dsp_core_get(struct snd_sof_dev *sdev, int core);
585 void hda_dsp_ipc_int_enable(struct snd_sof_dev *sdev);
586 void hda_dsp_ipc_int_disable(struct snd_sof_dev *sdev);
587 bool hda_dsp_core_is_enabled(struct snd_sof_dev *sdev, unsigned int core_mask);
589 int hda_dsp_set_power_state_ipc3(struct snd_sof_dev *sdev,
591 int hda_dsp_set_power_state_ipc4(struct snd_sof_dev *sdev,
594 int hda_dsp_suspend(struct snd_sof_dev *sdev, u32 target_state);
595 int hda_dsp_resume(struct snd_sof_dev *sdev);
596 int hda_dsp_runtime_suspend(struct snd_sof_dev *sdev);
597 int hda_dsp_runtime_resume(struct snd_sof_dev *sdev);
598 int hda_dsp_runtime_idle(struct snd_sof_dev *sdev);
599 int hda_dsp_shutdown_dma_flush(struct snd_sof_dev *sdev);
600 int hda_dsp_shutdown(struct snd_sof_dev *sdev);
601 int hda_dsp_set_hw_params_upon_resume(struct snd_sof_dev *sdev);
602 void hda_dsp_dump(struct snd_sof_dev *sdev, u32 flags);
603 void hda_ipc_dump(struct snd_sof_dev *sdev);
604 void hda_ipc_irq_dump(struct snd_sof_dev *sdev);
606 int hda_dsp_disable_interrupts(struct snd_sof_dev *sdev);
611 u32 hda_dsp_get_mult_div(struct snd_sof_dev *sdev, int rate);
612 u32 hda_dsp_get_bits(struct snd_sof_dev *sdev, int sample_bits);
613 int hda_dsp_pcm_open(struct snd_sof_dev *sdev,
615 int hda_dsp_pcm_close(struct snd_sof_dev *sdev,
617 int hda_dsp_pcm_hw_params(struct snd_sof_dev *sdev,
621 int hda_dsp_stream_hw_free(struct snd_sof_dev *sdev,
623 int hda_dsp_pcm_trigger(struct snd_sof_dev *sdev,
625 snd_pcm_uframes_t hda_dsp_pcm_pointer(struct snd_sof_dev *sdev,
627 int hda_dsp_pcm_ack(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream);
633 int hda_dsp_stream_init(struct snd_sof_dev *sdev);
634 void hda_dsp_stream_free(struct snd_sof_dev *sdev);
635 int hda_dsp_stream_hw_params(struct snd_sof_dev *sdev,
639 int hda_dsp_iccmax_stream_hw_params(struct snd_sof_dev *sdev,
643 int hda_dsp_stream_trigger(struct snd_sof_dev *sdev,
646 int hda_dsp_stream_setup_bdl(struct snd_sof_dev *sdev,
649 bool hda_dsp_check_ipc_irq(struct snd_sof_dev *sdev);
650 bool hda_dsp_check_stream_irq(struct snd_sof_dev *sdev);
656 hda_dsp_stream_get(struct snd_sof_dev *sdev, int direction, u32 flags);
657 int hda_dsp_stream_put(struct snd_sof_dev *sdev, int direction, int stream_tag);
658 int hda_dsp_stream_spib_config(struct snd_sof_dev *sdev,
662 int hda_ipc_msg_data(struct snd_sof_dev *sdev,
665 int hda_set_stream_data_offset(struct snd_sof_dev *sdev,
672 int hda_dsp_ipc_send_msg(struct snd_sof_dev *sdev,
674 void hda_dsp_ipc_get_reply(struct snd_sof_dev *sdev);
675 int hda_dsp_ipc_get_mailbox_offset(struct snd_sof_dev *sdev);
676 int hda_dsp_ipc_get_window_offset(struct snd_sof_dev *sdev, u32 id);
679 int hda_dsp_ipc_cmd_done(struct snd_sof_dev *sdev, int dir);
684 int hda_dsp_cl_boot_firmware(struct snd_sof_dev *sdev);
685 int hda_dsp_cl_boot_firmware_iccmax(struct snd_sof_dev *sdev);
686 int hda_cl_copy_fw(struct snd_sof_dev *sdev, struct hdac_ext_stream *hext_stream);
687 struct hdac_ext_stream *hda_cl_stream_prepare(struct snd_sof_dev *sdev, unsigned int format,
690 int hda_cl_cleanup(struct snd_sof_dev *sdev, struct snd_dma_buffer *dmab,
692 int cl_dsp_init(struct snd_sof_dev *sdev, int stream_tag, bool imr_boot);
696 int hda_dsp_pre_fw_run(struct snd_sof_dev *sdev);
697 int hda_dsp_post_fw_run(struct snd_sof_dev *sdev);
700 int hda_dsp_ext_man_get_cavs_config_data(struct snd_sof_dev *sdev,
706 int hda_dsp_ctrl_get_caps(struct snd_sof_dev *sdev);
707 void hda_dsp_ctrl_ppcap_enable(struct snd_sof_dev *sdev, bool enable);
708 void hda_dsp_ctrl_ppcap_int_enable(struct snd_sof_dev *sdev, bool enable);
709 int hda_dsp_ctrl_link_reset(struct snd_sof_dev *sdev, bool reset);
710 void hda_dsp_ctrl_misc_clock_gating(struct snd_sof_dev *sdev, bool enable);
711 int hda_dsp_ctrl_clock_power_gating(struct snd_sof_dev *sdev, bool enable);
712 int hda_dsp_ctrl_init_chip(struct snd_sof_dev *sdev);
713 void hda_dsp_ctrl_stop_chip(struct snd_sof_dev *sdev);
717 void sof_hda_bus_init(struct snd_sof_dev *sdev, struct device *dev);
718 void sof_hda_bus_exit(struct snd_sof_dev *sdev);
724 void hda_codec_probe_bus(struct snd_sof_dev *sdev);
725 void hda_codec_jack_wake_enable(struct snd_sof_dev *sdev, bool enable);
726 void hda_codec_jack_check(struct snd_sof_dev *sdev);
727 void hda_codec_check_for_state_change(struct snd_sof_dev *sdev);
728 void hda_codec_init_cmd_io(struct snd_sof_dev *sdev);
729 void hda_codec_resume_cmd_io(struct snd_sof_dev *sdev);
730 void hda_codec_stop_cmd_io(struct snd_sof_dev *sdev);
731 void hda_codec_suspend_cmd_io(struct snd_sof_dev *sdev);
732 void hda_codec_detect_mask(struct snd_sof_dev *sdev);
733 void hda_codec_rirb_status_clear(struct snd_sof_dev *sdev);
734 bool hda_codec_check_rirb_status(struct snd_sof_dev *sdev);
735 void hda_codec_set_codec_wakeup(struct snd_sof_dev *sdev, bool status);
736 void hda_codec_device_remove(struct snd_sof_dev *sdev);
740 static inline void hda_codec_probe_bus(struct snd_sof_dev *sdev) { } in hda_codec_probe_bus() argument
741 static inline void hda_codec_jack_wake_enable(struct snd_sof_dev *sdev, bool enable) { } in hda_codec_jack_wake_enable() argument
742 static inline void hda_codec_jack_check(struct snd_sof_dev *sdev) { } in hda_codec_jack_check() argument
743 static inline void hda_codec_check_for_state_change(struct snd_sof_dev *sdev) { } in hda_codec_check_for_state_change() argument
744 static inline void hda_codec_init_cmd_io(struct snd_sof_dev *sdev) { } in hda_codec_init_cmd_io() argument
745 static inline void hda_codec_resume_cmd_io(struct snd_sof_dev *sdev) { } in hda_codec_resume_cmd_io() argument
746 static inline void hda_codec_stop_cmd_io(struct snd_sof_dev *sdev) { } in hda_codec_stop_cmd_io() argument
747 static inline void hda_codec_suspend_cmd_io(struct snd_sof_dev *sdev) { } in hda_codec_suspend_cmd_io() argument
748 static inline void hda_codec_detect_mask(struct snd_sof_dev *sdev) { } in hda_codec_detect_mask() argument
749 static inline void hda_codec_rirb_status_clear(struct snd_sof_dev *sdev) { } in hda_codec_rirb_status_clear() argument
750 static inline bool hda_codec_check_rirb_status(struct snd_sof_dev *sdev) { return false; } in hda_codec_check_rirb_status() argument
751 static inline void hda_codec_set_codec_wakeup(struct snd_sof_dev *sdev, bool status) { } in hda_codec_set_codec_wakeup() argument
752 static inline void hda_codec_device_remove(struct snd_sof_dev *sdev) { } in hda_codec_device_remove() argument
758 void hda_codec_i915_display_power(struct snd_sof_dev *sdev, bool enable);
759 int hda_codec_i915_init(struct snd_sof_dev *sdev);
760 int hda_codec_i915_exit(struct snd_sof_dev *sdev);
764 static inline void hda_codec_i915_display_power(struct snd_sof_dev *sdev, bool enable) { } in hda_codec_i915_display_power() argument
765 static inline int hda_codec_i915_init(struct snd_sof_dev *sdev) { return 0; } in hda_codec_i915_init() argument
766 static inline int hda_codec_i915_exit(struct snd_sof_dev *sdev) { return 0; } in hda_codec_i915_exit() argument
773 int hda_dsp_trace_init(struct snd_sof_dev *sdev, struct snd_dma_buffer *dmab,
775 int hda_dsp_trace_release(struct snd_sof_dev *sdev);
776 int hda_dsp_trace_trigger(struct snd_sof_dev *sdev, int cmd);
783 int hda_sdw_check_lcount_common(struct snd_sof_dev *sdev);
784 int hda_sdw_check_lcount_ext(struct snd_sof_dev *sdev);
785 int hda_sdw_startup(struct snd_sof_dev *sdev);
786 void hda_common_enable_sdw_irq(struct snd_sof_dev *sdev, bool enable);
787 void hda_sdw_int_enable(struct snd_sof_dev *sdev, bool enable);
788 bool hda_sdw_check_wakeen_irq_common(struct snd_sof_dev *sdev);
789 void hda_sdw_process_wakeen(struct snd_sof_dev *sdev);
790 bool hda_common_check_sdw_irq(struct snd_sof_dev *sdev);
794 static inline int hda_sdw_check_lcount_common(struct snd_sof_dev *sdev) in hda_sdw_check_lcount_common() argument
799 static inline int hda_sdw_check_lcount_ext(struct snd_sof_dev *sdev) in hda_sdw_check_lcount_ext() argument
804 static inline int hda_sdw_startup(struct snd_sof_dev *sdev) in hda_sdw_startup() argument
809 static inline void hda_common_enable_sdw_irq(struct snd_sof_dev *sdev, bool enable) in hda_common_enable_sdw_irq() argument
813 static inline void hda_sdw_int_enable(struct snd_sof_dev *sdev, bool enable) in hda_sdw_int_enable() argument
817 static inline bool hda_sdw_check_wakeen_irq_common(struct snd_sof_dev *sdev) in hda_sdw_check_wakeen_irq_common() argument
822 static inline void hda_sdw_process_wakeen(struct snd_sof_dev *sdev) in hda_sdw_process_wakeen() argument
826 static inline bool hda_common_check_sdw_irq(struct snd_sof_dev *sdev) in hda_common_check_sdw_irq() argument
847 int hda_dsp_dais_suspend(struct snd_sof_dev *sdev);
855 int sof_skl_ops_init(struct snd_sof_dev *sdev);
857 int sof_apl_ops_init(struct snd_sof_dev *sdev);
859 int sof_cnl_ops_init(struct snd_sof_dev *sdev);
861 int sof_tgl_ops_init(struct snd_sof_dev *sdev);
863 int sof_icl_ops_init(struct snd_sof_dev *sdev);
865 int sof_mtl_ops_init(struct snd_sof_dev *sdev);
867 int sof_lnl_ops_init(struct snd_sof_dev *sdev);
883 int hda_probes_register(struct snd_sof_dev *sdev);
884 void hda_probes_unregister(struct snd_sof_dev *sdev);
886 static inline int hda_probes_register(struct snd_sof_dev *sdev) in hda_probes_register() argument
891 static inline void hda_probes_unregister(struct snd_sof_dev *sdev) in hda_probes_unregister() argument
897 int hda_register_clients(struct snd_sof_dev *sdev);
898 void hda_unregister_clients(struct snd_sof_dev *sdev);
901 struct snd_soc_acpi_mach *hda_machine_select(struct snd_sof_dev *sdev);
903 struct snd_sof_dev *sdev);
917 void hda_set_dai_drv_ops(struct snd_sof_dev *sdev, struct snd_sof_dsp_ops *ops);
918 void hda_ops_free(struct snd_sof_dev *sdev);
921 int hda_dsp_cl_boot_firmware_skl(struct snd_sof_dev *sdev);
922 int hda_dsp_core_stall_reset(struct snd_sof_dev *sdev, unsigned int core_mask);
926 int cnl_ipc4_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg);
928 bool hda_ipc4_tx_is_busy(struct snd_sof_dev *sdev);
931 int hda_dsp_ipc4_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg);
932 void hda_ipc4_dump(struct snd_sof_dev *sdev);
936 int hda_dsp_ipc4_load_library(struct snd_sof_dev *sdev,
956 struct hdac_ext_stream *(*get_hext_stream)(struct snd_sof_dev *sdev,
959 struct hdac_ext_stream *(*assign_hext_stream)(struct snd_sof_dev *sdev,
962 void (*release_hext_stream)(struct snd_sof_dev *sdev, struct snd_soc_dai *cpu_dai,
964 void (*setup_hext_stream)(struct snd_sof_dev *sdev, struct hdac_ext_stream *hext_stream,
966 void (*reset_hext_stream)(struct snd_sof_dev *sdev, struct hdac_ext_stream *hext_sream);
967 int (*pre_trigger)(struct snd_sof_dev *sdev, struct snd_soc_dai *cpu_dai,
969 int (*trigger)(struct snd_sof_dev *sdev, struct snd_soc_dai *cpu_dai,
971 int (*post_trigger)(struct snd_sof_dev *sdev, struct snd_soc_dai *cpu_dai,
973 void (*codec_dai_set_stream)(struct snd_sof_dev *sdev,
976 unsigned int (*calc_stream_format)(struct snd_sof_dev *sdev,
979 struct hdac_ext_link * (*get_hlink)(struct snd_sof_dev *sdev,
984 hda_select_dai_widget_ops(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget);