Lines Matching refs:sdev

577 	struct snd_sof_dev *sdev;
600 bool hda_is_chain_dma_supported(struct snd_sof_dev *sdev, u32 dai_type);
605 int hda_dsp_probe_early(struct snd_sof_dev *sdev);
606 int hda_dsp_probe(struct snd_sof_dev *sdev);
607 void hda_dsp_remove(struct snd_sof_dev *sdev);
608 void hda_dsp_remove_late(struct snd_sof_dev *sdev);
609 int hda_dsp_core_power_up(struct snd_sof_dev *sdev, unsigned int core_mask);
610 int hda_dsp_core_run(struct snd_sof_dev *sdev, unsigned int core_mask);
611 int hda_dsp_enable_core(struct snd_sof_dev *sdev, unsigned int core_mask);
612 int hda_dsp_core_reset_power_down(struct snd_sof_dev *sdev,
614 int hda_power_down_dsp(struct snd_sof_dev *sdev);
615 int hda_dsp_core_get(struct snd_sof_dev *sdev, int core);
616 void hda_dsp_ipc_int_enable(struct snd_sof_dev *sdev);
617 void hda_dsp_ipc_int_disable(struct snd_sof_dev *sdev);
618 bool hda_dsp_core_is_enabled(struct snd_sof_dev *sdev, unsigned int core_mask);
620 int hda_dsp_set_power_state_ipc3(struct snd_sof_dev *sdev,
622 int hda_dsp_set_power_state_ipc4(struct snd_sof_dev *sdev,
625 int hda_dsp_suspend(struct snd_sof_dev *sdev, u32 target_state);
626 int hda_dsp_resume(struct snd_sof_dev *sdev);
627 int hda_dsp_runtime_suspend(struct snd_sof_dev *sdev);
628 int hda_dsp_runtime_resume(struct snd_sof_dev *sdev);
629 int hda_dsp_runtime_idle(struct snd_sof_dev *sdev);
630 int hda_dsp_shutdown_dma_flush(struct snd_sof_dev *sdev);
631 int hda_dsp_shutdown(struct snd_sof_dev *sdev);
632 int hda_dsp_set_hw_params_upon_resume(struct snd_sof_dev *sdev);
633 void hda_dsp_dump(struct snd_sof_dev *sdev, u32 flags);
634 void hda_ipc4_dsp_dump(struct snd_sof_dev *sdev, u32 flags);
635 void hda_ipc_dump(struct snd_sof_dev *sdev);
636 void hda_ipc_irq_dump(struct snd_sof_dev *sdev);
638 int hda_dsp_disable_interrupts(struct snd_sof_dev *sdev);
639 bool hda_check_ipc_irq(struct snd_sof_dev *sdev);
640 u32 hda_get_interface_mask(struct snd_sof_dev *sdev);
645 u32 hda_dsp_get_mult_div(struct snd_sof_dev *sdev, int rate);
646 u32 hda_dsp_get_bits(struct snd_sof_dev *sdev, int sample_bits);
647 int hda_dsp_pcm_open(struct snd_sof_dev *sdev,
649 int hda_dsp_pcm_close(struct snd_sof_dev *sdev,
651 int hda_dsp_pcm_hw_params(struct snd_sof_dev *sdev,
655 int hda_dsp_stream_hw_free(struct snd_sof_dev *sdev,
657 int hda_dsp_pcm_trigger(struct snd_sof_dev *sdev,
659 snd_pcm_uframes_t hda_dsp_pcm_pointer(struct snd_sof_dev *sdev,
661 int hda_dsp_pcm_ack(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream);
667 int hda_dsp_stream_init(struct snd_sof_dev *sdev);
668 void hda_dsp_stream_free(struct snd_sof_dev *sdev);
669 int hda_dsp_stream_hw_params(struct snd_sof_dev *sdev,
673 int hda_dsp_iccmax_stream_hw_params(struct snd_sof_dev *sdev,
677 int hda_dsp_stream_trigger(struct snd_sof_dev *sdev,
680 int hda_dsp_stream_setup_bdl(struct snd_sof_dev *sdev,
683 bool hda_dsp_check_ipc_irq(struct snd_sof_dev *sdev);
684 bool hda_dsp_check_stream_irq(struct snd_sof_dev *sdev);
688 u64 hda_dsp_get_stream_llp(struct snd_sof_dev *sdev,
691 u64 hda_dsp_get_stream_ldp(struct snd_sof_dev *sdev,
696 hda_dsp_stream_get(struct snd_sof_dev *sdev, int direction, u32 flags);
698 hda_dsp_stream_pair_get(struct snd_sof_dev *sdev, int direction, u32 flags);
699 int hda_dsp_stream_put(struct snd_sof_dev *sdev, int direction, int stream_tag);
700 int hda_dsp_stream_pair_put(struct snd_sof_dev *sdev, int direction, int stream_tag);
701 int hda_dsp_stream_spib_config(struct snd_sof_dev *sdev,
705 int hda_ipc_msg_data(struct snd_sof_dev *sdev,
708 int hda_set_stream_data_offset(struct snd_sof_dev *sdev,
715 int hda_dsp_ipc_send_msg(struct snd_sof_dev *sdev,
717 void hda_dsp_ipc_get_reply(struct snd_sof_dev *sdev);
718 int hda_dsp_ipc_get_mailbox_offset(struct snd_sof_dev *sdev);
719 int hda_dsp_ipc_get_window_offset(struct snd_sof_dev *sdev, u32 id);
722 int hda_dsp_ipc_cmd_done(struct snd_sof_dev *sdev, int dir);
724 void hda_dsp_get_state(struct snd_sof_dev *sdev, const char *level);
725 void hda_dsp_dump_ext_rom_status(struct snd_sof_dev *sdev, const char *level,
731 int hda_dsp_cl_boot_firmware(struct snd_sof_dev *sdev);
732 int hda_dsp_cl_boot_firmware_iccmax(struct snd_sof_dev *sdev);
733 int hda_cl_copy_fw(struct snd_sof_dev *sdev, struct hdac_ext_stream *hext_stream);
743 int cl_dsp_init(struct snd_sof_dev *sdev, int stream_tag, bool imr_boot);
747 int hda_dsp_pre_fw_run(struct snd_sof_dev *sdev);
748 int hda_dsp_post_fw_run(struct snd_sof_dev *sdev);
751 int hda_dsp_ext_man_get_cavs_config_data(struct snd_sof_dev *sdev,
757 int hda_dsp_ctrl_get_caps(struct snd_sof_dev *sdev);
758 void hda_dsp_ctrl_ppcap_enable(struct snd_sof_dev *sdev, bool enable);
759 void hda_dsp_ctrl_ppcap_int_enable(struct snd_sof_dev *sdev, bool enable);
760 int hda_dsp_ctrl_link_reset(struct snd_sof_dev *sdev, bool reset);
761 void hda_dsp_ctrl_misc_clock_gating(struct snd_sof_dev *sdev, bool enable);
762 int hda_dsp_ctrl_clock_power_gating(struct snd_sof_dev *sdev, bool enable);
763 int hda_dsp_ctrl_init_chip(struct snd_sof_dev *sdev, bool detect_codec);
764 void hda_dsp_ctrl_stop_chip(struct snd_sof_dev *sdev);
768 void sof_hda_bus_init(struct snd_sof_dev *sdev, struct device *dev);
769 void sof_hda_bus_exit(struct snd_sof_dev *sdev);
775 void hda_codec_probe_bus(struct snd_sof_dev *sdev);
776 void hda_codec_jack_wake_enable(struct snd_sof_dev *sdev, bool enable);
777 void hda_codec_jack_check(struct snd_sof_dev *sdev);
778 void hda_codec_check_for_state_change(struct snd_sof_dev *sdev);
779 void hda_codec_init_cmd_io(struct snd_sof_dev *sdev);
780 void hda_codec_resume_cmd_io(struct snd_sof_dev *sdev);
781 void hda_codec_stop_cmd_io(struct snd_sof_dev *sdev);
782 void hda_codec_suspend_cmd_io(struct snd_sof_dev *sdev);
783 void hda_codec_detect_mask(struct snd_sof_dev *sdev);
784 void hda_codec_rirb_status_clear(struct snd_sof_dev *sdev);
785 bool hda_codec_check_rirb_status(struct snd_sof_dev *sdev);
786 void hda_codec_set_codec_wakeup(struct snd_sof_dev *sdev, bool status);
787 void hda_codec_device_remove(struct snd_sof_dev *sdev);
791 static inline void hda_codec_probe_bus(struct snd_sof_dev *sdev) { }
792 static inline void hda_codec_jack_wake_enable(struct snd_sof_dev *sdev, bool enable) { }
793 static inline void hda_codec_jack_check(struct snd_sof_dev *sdev) { }
794 static inline void hda_codec_check_for_state_change(struct snd_sof_dev *sdev) { }
795 static inline void hda_codec_init_cmd_io(struct snd_sof_dev *sdev) { }
796 static inline void hda_codec_resume_cmd_io(struct snd_sof_dev *sdev) { }
797 static inline void hda_codec_stop_cmd_io(struct snd_sof_dev *sdev) { }
798 static inline void hda_codec_suspend_cmd_io(struct snd_sof_dev *sdev) { }
799 static inline void hda_codec_detect_mask(struct snd_sof_dev *sdev) { }
800 static inline void hda_codec_rirb_status_clear(struct snd_sof_dev *sdev) { }
801 static inline bool hda_codec_check_rirb_status(struct snd_sof_dev *sdev) { return false; }
802 static inline void hda_codec_set_codec_wakeup(struct snd_sof_dev *sdev, bool status) { }
803 static inline void hda_codec_device_remove(struct snd_sof_dev *sdev) { }
809 void hda_codec_i915_display_power(struct snd_sof_dev *sdev, bool enable);
810 int hda_codec_i915_init(struct snd_sof_dev *sdev);
811 int hda_codec_i915_exit(struct snd_sof_dev *sdev);
815 static inline void hda_codec_i915_display_power(struct snd_sof_dev *sdev, bool enable) { }
816 static inline int hda_codec_i915_init(struct snd_sof_dev *sdev) { return 0; }
817 static inline int hda_codec_i915_exit(struct snd_sof_dev *sdev) { return 0; }
824 int hda_dsp_trace_init(struct snd_sof_dev *sdev, struct snd_dma_buffer *dmab,
826 int hda_dsp_trace_release(struct snd_sof_dev *sdev);
827 int hda_dsp_trace_trigger(struct snd_sof_dev *sdev, int cmd);
834 int hda_sdw_check_lcount_common(struct snd_sof_dev *sdev);
835 int hda_sdw_check_lcount_ext(struct snd_sof_dev *sdev);
836 int hda_sdw_check_lcount(struct snd_sof_dev *sdev);
837 int hda_sdw_startup(struct snd_sof_dev *sdev);
838 void hda_common_enable_sdw_irq(struct snd_sof_dev *sdev, bool enable);
839 void hda_sdw_int_enable(struct snd_sof_dev *sdev, bool enable);
840 bool hda_sdw_check_wakeen_irq_common(struct snd_sof_dev *sdev);
841 void hda_sdw_process_wakeen_common(struct snd_sof_dev *sdev);
842 void hda_sdw_process_wakeen(struct snd_sof_dev *sdev);
843 bool hda_common_check_sdw_irq(struct snd_sof_dev *sdev);
847 static inline int hda_sdw_check_lcount_common(struct snd_sof_dev *sdev)
852 static inline int hda_sdw_check_lcount_ext(struct snd_sof_dev *sdev)
857 static inline int hda_sdw_check_lcount(struct snd_sof_dev *sdev)
862 static inline int hda_sdw_startup(struct snd_sof_dev *sdev)
867 static inline void hda_common_enable_sdw_irq(struct snd_sof_dev *sdev, bool enable)
871 static inline void hda_sdw_int_enable(struct snd_sof_dev *sdev, bool enable)
875 static inline bool hda_sdw_check_wakeen_irq_common(struct snd_sof_dev *sdev)
880 static inline void hda_sdw_process_wakeen_common(struct snd_sof_dev *sdev)
884 static inline void hda_sdw_process_wakeen(struct snd_sof_dev *sdev)
888 static inline bool hda_common_check_sdw_irq(struct snd_sof_dev *sdev)
918 int hda_dsp_dais_suspend(struct snd_sof_dev *sdev);
926 int sof_skl_ops_init(struct snd_sof_dev *sdev);
928 int sof_apl_ops_init(struct snd_sof_dev *sdev);
930 int sof_cnl_ops_init(struct snd_sof_dev *sdev);
932 int sof_tgl_ops_init(struct snd_sof_dev *sdev);
934 int sof_icl_ops_init(struct snd_sof_dev *sdev);
955 int hda_probes_register(struct snd_sof_dev *sdev);
956 void hda_probes_unregister(struct snd_sof_dev *sdev);
958 static inline int hda_probes_register(struct snd_sof_dev *sdev)
963 static inline void hda_probes_unregister(struct snd_sof_dev *sdev)
969 int hda_register_clients(struct snd_sof_dev *sdev);
970 void hda_unregister_clients(struct snd_sof_dev *sdev);
973 struct snd_soc_acpi_mach *hda_machine_select(struct snd_sof_dev *sdev);
975 struct snd_sof_dev *sdev);
989 void hda_set_dai_drv_ops(struct snd_sof_dev *sdev, struct snd_sof_dsp_ops *ops);
990 void hda_ops_free(struct snd_sof_dev *sdev);
993 int hda_dsp_cl_boot_firmware_skl(struct snd_sof_dev *sdev);
994 int hda_dsp_core_stall_reset(struct snd_sof_dev *sdev, unsigned int core_mask);
998 int cnl_ipc4_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg);
1000 bool hda_ipc4_tx_is_busy(struct snd_sof_dev *sdev);
1003 int hda_dsp_ipc4_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg);
1004 void hda_ipc4_dump(struct snd_sof_dev *sdev);
1008 int hda_dsp_ipc4_load_library(struct snd_sof_dev *sdev,
1028 struct hdac_ext_stream *(*get_hext_stream)(struct snd_sof_dev *sdev,
1031 struct hdac_ext_stream *(*assign_hext_stream)(struct snd_sof_dev *sdev,
1034 void (*release_hext_stream)(struct snd_sof_dev *sdev, struct snd_soc_dai *cpu_dai,
1036 void (*setup_hext_stream)(struct snd_sof_dev *sdev, struct hdac_ext_stream *hext_stream,
1038 void (*reset_hext_stream)(struct snd_sof_dev *sdev, struct hdac_ext_stream *hext_sream);
1039 int (*pre_trigger)(struct snd_sof_dev *sdev, struct snd_soc_dai *cpu_dai,
1041 int (*trigger)(struct snd_sof_dev *sdev, struct snd_soc_dai *cpu_dai,
1043 int (*post_trigger)(struct snd_sof_dev *sdev, struct snd_soc_dai *cpu_dai,
1045 void (*codec_dai_set_stream)(struct snd_sof_dev *sdev,
1048 unsigned int (*calc_stream_format)(struct snd_sof_dev *sdev,
1051 struct hdac_ext_link * (*get_hlink)(struct snd_sof_dev *sdev,
1056 hda_select_dai_widget_ops(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget);