Lines Matching refs:snd_sof_dev
458 static inline struct hdac_bus *sof_to_bus(struct snd_sof_dev *s) in sof_to_bus()
465 static inline struct hda_bus *sof_to_hbus(struct snd_sof_dev *s) in sof_to_hbus()
473 struct snd_sof_dev *sdev;
493 int hda_dsp_probe(struct snd_sof_dev *sdev);
494 int hda_dsp_remove(struct snd_sof_dev *sdev);
495 int hda_dsp_core_reset_enter(struct snd_sof_dev *sdev,
497 int hda_dsp_core_reset_leave(struct snd_sof_dev *sdev,
499 int hda_dsp_core_stall_reset(struct snd_sof_dev *sdev, unsigned int core_mask);
500 int hda_dsp_core_run(struct snd_sof_dev *sdev, unsigned int core_mask);
501 int hda_dsp_core_power_up(struct snd_sof_dev *sdev, unsigned int core_mask);
502 int hda_dsp_enable_core(struct snd_sof_dev *sdev, unsigned int core_mask);
503 int hda_dsp_core_power_down(struct snd_sof_dev *sdev, unsigned int core_mask);
504 bool hda_dsp_core_is_enabled(struct snd_sof_dev *sdev,
506 int hda_dsp_core_reset_power_down(struct snd_sof_dev *sdev,
508 void hda_dsp_ipc_int_enable(struct snd_sof_dev *sdev);
509 void hda_dsp_ipc_int_disable(struct snd_sof_dev *sdev);
511 int hda_dsp_set_power_state(struct snd_sof_dev *sdev,
514 int hda_dsp_suspend(struct snd_sof_dev *sdev, u32 target_state);
515 int hda_dsp_resume(struct snd_sof_dev *sdev);
516 int hda_dsp_runtime_suspend(struct snd_sof_dev *sdev);
517 int hda_dsp_runtime_resume(struct snd_sof_dev *sdev);
518 int hda_dsp_runtime_idle(struct snd_sof_dev *sdev);
519 int hda_dsp_shutdown(struct snd_sof_dev *sdev);
520 int hda_dsp_set_hw_params_upon_resume(struct snd_sof_dev *sdev);
521 void hda_dsp_dump(struct snd_sof_dev *sdev, u32 flags);
522 void hda_ipc_dump(struct snd_sof_dev *sdev);
523 void hda_ipc_irq_dump(struct snd_sof_dev *sdev);
529 u32 hda_dsp_get_mult_div(struct snd_sof_dev *sdev, int rate);
530 u32 hda_dsp_get_bits(struct snd_sof_dev *sdev, int sample_bits);
531 int hda_dsp_pcm_open(struct snd_sof_dev *sdev,
533 int hda_dsp_pcm_close(struct snd_sof_dev *sdev,
535 int hda_dsp_pcm_hw_params(struct snd_sof_dev *sdev,
539 int hda_dsp_stream_hw_free(struct snd_sof_dev *sdev,
541 int hda_dsp_pcm_trigger(struct snd_sof_dev *sdev,
543 snd_pcm_uframes_t hda_dsp_pcm_pointer(struct snd_sof_dev *sdev,
550 int hda_dsp_stream_init(struct snd_sof_dev *sdev);
551 void hda_dsp_stream_free(struct snd_sof_dev *sdev);
552 int hda_dsp_stream_hw_params(struct snd_sof_dev *sdev,
556 int hda_dsp_iccmax_stream_hw_params(struct snd_sof_dev *sdev, struct hdac_ext_stream *stream,
559 int hda_dsp_stream_trigger(struct snd_sof_dev *sdev,
562 int hda_dsp_stream_setup_bdl(struct snd_sof_dev *sdev,
565 bool hda_dsp_check_ipc_irq(struct snd_sof_dev *sdev);
566 bool hda_dsp_check_stream_irq(struct snd_sof_dev *sdev);
569 hda_dsp_stream_get(struct snd_sof_dev *sdev, int direction, u32 flags);
570 int hda_dsp_stream_put(struct snd_sof_dev *sdev, int direction, int stream_tag);
571 int hda_dsp_stream_spib_config(struct snd_sof_dev *sdev,
575 void hda_ipc_msg_data(struct snd_sof_dev *sdev,
578 int hda_ipc_pcm_params(struct snd_sof_dev *sdev,
586 int hda_probe_compr_assign(struct snd_sof_dev *sdev,
589 int hda_probe_compr_free(struct snd_sof_dev *sdev,
592 int hda_probe_compr_set_params(struct snd_sof_dev *sdev,
596 int hda_probe_compr_trigger(struct snd_sof_dev *sdev,
599 int hda_probe_compr_pointer(struct snd_sof_dev *sdev,
608 int hda_dsp_ipc_send_msg(struct snd_sof_dev *sdev,
610 void hda_dsp_ipc_get_reply(struct snd_sof_dev *sdev);
611 int hda_dsp_ipc_get_mailbox_offset(struct snd_sof_dev *sdev);
612 int hda_dsp_ipc_get_window_offset(struct snd_sof_dev *sdev, u32 id);
615 int hda_dsp_ipc_cmd_done(struct snd_sof_dev *sdev, int dir);
620 int hda_dsp_cl_boot_firmware(struct snd_sof_dev *sdev);
621 int hda_dsp_cl_boot_firmware_iccmax(struct snd_sof_dev *sdev);
622 int hda_dsp_cl_boot_firmware_iccmax_icl(struct snd_sof_dev *sdev);
623 int hda_dsp_cl_boot_firmware_skl(struct snd_sof_dev *sdev);
626 int hda_dsp_pre_fw_run(struct snd_sof_dev *sdev);
627 int hda_dsp_post_fw_run(struct snd_sof_dev *sdev);
628 int hda_dsp_post_fw_run_icl(struct snd_sof_dev *sdev);
629 int hda_dsp_core_stall_icl(struct snd_sof_dev *sdev, unsigned int core_mask);
632 int hda_dsp_ext_man_get_cavs_config_data(struct snd_sof_dev *sdev,
638 int hda_dsp_ctrl_get_caps(struct snd_sof_dev *sdev);
639 void hda_dsp_ctrl_ppcap_enable(struct snd_sof_dev *sdev, bool enable);
640 void hda_dsp_ctrl_ppcap_int_enable(struct snd_sof_dev *sdev, bool enable);
641 int hda_dsp_ctrl_link_reset(struct snd_sof_dev *sdev, bool reset);
642 void hda_dsp_ctrl_misc_clock_gating(struct snd_sof_dev *sdev, bool enable);
643 int hda_dsp_ctrl_clock_power_gating(struct snd_sof_dev *sdev, bool enable);
644 int hda_dsp_ctrl_init_chip(struct snd_sof_dev *sdev, bool full_reset);
645 void hda_dsp_ctrl_stop_chip(struct snd_sof_dev *sdev);
655 void hda_codec_probe_bus(struct snd_sof_dev *sdev,
657 void hda_codec_jack_wake_enable(struct snd_sof_dev *sdev, bool enable);
658 void hda_codec_jack_check(struct snd_sof_dev *sdev);
666 void hda_codec_i915_display_power(struct snd_sof_dev *sdev, bool enable);
667 int hda_codec_i915_init(struct snd_sof_dev *sdev);
668 int hda_codec_i915_exit(struct snd_sof_dev *sdev);
672 static inline void hda_codec_i915_display_power(struct snd_sof_dev *sdev, in hda_codec_i915_display_power()
674 static inline int hda_codec_i915_init(struct snd_sof_dev *sdev) { return 0; } in hda_codec_i915_init()
675 static inline int hda_codec_i915_exit(struct snd_sof_dev *sdev) { return 0; } in hda_codec_i915_exit()
682 int hda_dsp_trace_init(struct snd_sof_dev *sdev, u32 *stream_tag);
683 int hda_dsp_trace_release(struct snd_sof_dev *sdev);
684 int hda_dsp_trace_trigger(struct snd_sof_dev *sdev, int cmd);
691 int hda_sdw_startup(struct snd_sof_dev *sdev);
692 void hda_sdw_int_enable(struct snd_sof_dev *sdev, bool enable);
693 void hda_sdw_process_wakeen(struct snd_sof_dev *sdev);
694 bool hda_common_check_sdw_irq(struct snd_sof_dev *sdev);
698 static inline int hda_sdw_acpi_scan(struct snd_sof_dev *sdev) in hda_sdw_acpi_scan()
703 static inline int hda_sdw_probe(struct snd_sof_dev *sdev) in hda_sdw_probe()
708 static inline int hda_sdw_startup(struct snd_sof_dev *sdev) in hda_sdw_startup()
713 static inline int hda_sdw_exit(struct snd_sof_dev *sdev) in hda_sdw_exit()
718 static inline void hda_sdw_int_enable(struct snd_sof_dev *sdev, bool enable) in hda_sdw_int_enable()
722 static inline bool hda_dsp_check_sdw_irq(struct snd_sof_dev *sdev) in hda_dsp_check_sdw_irq()
732 static inline bool hda_sdw_check_wakeen_irq(struct snd_sof_dev *sdev) in hda_sdw_check_wakeen_irq()
737 static inline void hda_sdw_process_wakeen(struct snd_sof_dev *sdev) in hda_sdw_process_wakeen()
741 static inline bool hda_common_check_sdw_irq(struct snd_sof_dev *sdev) in hda_common_check_sdw_irq()
770 void hda_machine_select(struct snd_sof_dev *sdev);
772 struct snd_sof_dev *sdev);