Lines Matching refs:snd_sof_dev
452 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);
495 int hda_dsp_enable_core(struct snd_sof_dev *sdev, unsigned int core_mask);
496 int hda_dsp_core_power_down(struct snd_sof_dev *sdev, unsigned int core_mask);
497 bool hda_dsp_core_is_enabled(struct snd_sof_dev *sdev,
499 int hda_dsp_core_reset_power_down(struct snd_sof_dev *sdev,
501 void hda_dsp_ipc_int_enable(struct snd_sof_dev *sdev);
502 void hda_dsp_ipc_int_disable(struct snd_sof_dev *sdev);
504 int hda_dsp_set_power_state(struct snd_sof_dev *sdev,
507 int hda_dsp_suspend(struct snd_sof_dev *sdev, u32 target_state);
508 int hda_dsp_resume(struct snd_sof_dev *sdev);
509 int hda_dsp_runtime_suspend(struct snd_sof_dev *sdev);
510 int hda_dsp_runtime_resume(struct snd_sof_dev *sdev);
511 int hda_dsp_runtime_idle(struct snd_sof_dev *sdev);
512 int hda_dsp_set_hw_params_upon_resume(struct snd_sof_dev *sdev);
513 void hda_dsp_dump_skl(struct snd_sof_dev *sdev, u32 flags);
514 void hda_dsp_dump(struct snd_sof_dev *sdev, u32 flags);
515 void hda_ipc_dump(struct snd_sof_dev *sdev);
516 void hda_ipc_irq_dump(struct snd_sof_dev *sdev);
522 u32 hda_dsp_get_mult_div(struct snd_sof_dev *sdev, int rate);
523 u32 hda_dsp_get_bits(struct snd_sof_dev *sdev, int sample_bits);
524 int hda_dsp_pcm_open(struct snd_sof_dev *sdev,
526 int hda_dsp_pcm_close(struct snd_sof_dev *sdev,
528 int hda_dsp_pcm_hw_params(struct snd_sof_dev *sdev,
532 int hda_dsp_stream_hw_free(struct snd_sof_dev *sdev,
534 int hda_dsp_pcm_trigger(struct snd_sof_dev *sdev,
536 snd_pcm_uframes_t hda_dsp_pcm_pointer(struct snd_sof_dev *sdev,
543 int hda_dsp_stream_init(struct snd_sof_dev *sdev);
544 void hda_dsp_stream_free(struct snd_sof_dev *sdev);
545 int hda_dsp_stream_hw_params(struct snd_sof_dev *sdev,
549 int hda_dsp_iccmax_stream_hw_params(struct snd_sof_dev *sdev, struct hdac_ext_stream *stream,
552 int hda_dsp_stream_trigger(struct snd_sof_dev *sdev,
555 int hda_dsp_stream_setup_bdl(struct snd_sof_dev *sdev,
558 bool hda_dsp_check_ipc_irq(struct snd_sof_dev *sdev);
559 bool hda_dsp_check_stream_irq(struct snd_sof_dev *sdev);
562 hda_dsp_stream_get(struct snd_sof_dev *sdev, int direction);
563 int hda_dsp_stream_put(struct snd_sof_dev *sdev, int direction, int stream_tag);
564 int hda_dsp_stream_spib_config(struct snd_sof_dev *sdev,
568 void hda_ipc_msg_data(struct snd_sof_dev *sdev,
571 int hda_ipc_pcm_params(struct snd_sof_dev *sdev,
579 int hda_probe_compr_assign(struct snd_sof_dev *sdev,
582 int hda_probe_compr_free(struct snd_sof_dev *sdev,
585 int hda_probe_compr_set_params(struct snd_sof_dev *sdev,
589 int hda_probe_compr_trigger(struct snd_sof_dev *sdev,
592 int hda_probe_compr_pointer(struct snd_sof_dev *sdev,
601 int hda_dsp_ipc_send_msg(struct snd_sof_dev *sdev,
603 void hda_dsp_ipc_get_reply(struct snd_sof_dev *sdev);
604 int hda_dsp_ipc_get_mailbox_offset(struct snd_sof_dev *sdev);
605 int hda_dsp_ipc_get_window_offset(struct snd_sof_dev *sdev, u32 id);
608 int hda_dsp_ipc_cmd_done(struct snd_sof_dev *sdev, int dir);
613 int hda_dsp_cl_boot_firmware(struct snd_sof_dev *sdev);
614 int hda_dsp_cl_boot_firmware_iccmax(struct snd_sof_dev *sdev);
615 int hda_dsp_cl_boot_firmware_skl(struct snd_sof_dev *sdev);
618 int hda_dsp_pre_fw_run(struct snd_sof_dev *sdev);
619 int hda_dsp_post_fw_run(struct snd_sof_dev *sdev);
624 int hda_dsp_ctrl_get_caps(struct snd_sof_dev *sdev);
625 void hda_dsp_ctrl_ppcap_enable(struct snd_sof_dev *sdev, bool enable);
626 void hda_dsp_ctrl_ppcap_int_enable(struct snd_sof_dev *sdev, bool enable);
627 int hda_dsp_ctrl_link_reset(struct snd_sof_dev *sdev, bool reset);
628 void hda_dsp_ctrl_misc_clock_gating(struct snd_sof_dev *sdev, bool enable);
629 int hda_dsp_ctrl_clock_power_gating(struct snd_sof_dev *sdev, bool enable);
630 int hda_dsp_ctrl_init_chip(struct snd_sof_dev *sdev, bool full_reset);
631 void hda_dsp_ctrl_stop_chip(struct snd_sof_dev *sdev);
641 void hda_codec_probe_bus(struct snd_sof_dev *sdev,
643 void hda_codec_jack_wake_enable(struct snd_sof_dev *sdev);
644 void hda_codec_jack_check(struct snd_sof_dev *sdev);
652 void hda_codec_i915_display_power(struct snd_sof_dev *sdev, bool enable);
653 int hda_codec_i915_init(struct snd_sof_dev *sdev);
654 int hda_codec_i915_exit(struct snd_sof_dev *sdev);
658 static inline void hda_codec_i915_display_power(struct snd_sof_dev *sdev, in hda_codec_i915_display_power()
660 static inline int hda_codec_i915_init(struct snd_sof_dev *sdev) { return 0; } in hda_codec_i915_init()
661 static inline int hda_codec_i915_exit(struct snd_sof_dev *sdev) { return 0; } in hda_codec_i915_exit()
668 int hda_dsp_trace_init(struct snd_sof_dev *sdev, u32 *stream_tag);
669 int hda_dsp_trace_release(struct snd_sof_dev *sdev);
670 int hda_dsp_trace_trigger(struct snd_sof_dev *sdev, int cmd);
677 int hda_sdw_startup(struct snd_sof_dev *sdev);
678 void hda_sdw_int_enable(struct snd_sof_dev *sdev, bool enable);
679 void hda_sdw_process_wakeen(struct snd_sof_dev *sdev);
683 static inline int hda_sdw_acpi_scan(struct snd_sof_dev *sdev) in hda_sdw_acpi_scan()
688 static inline int hda_sdw_probe(struct snd_sof_dev *sdev) in hda_sdw_probe()
693 static inline int hda_sdw_startup(struct snd_sof_dev *sdev) in hda_sdw_startup()
698 static inline int hda_sdw_exit(struct snd_sof_dev *sdev) in hda_sdw_exit()
703 static inline void hda_sdw_int_enable(struct snd_sof_dev *sdev, bool enable) in hda_sdw_int_enable()
707 static inline bool hda_dsp_check_sdw_irq(struct snd_sof_dev *sdev) in hda_dsp_check_sdw_irq()
717 static inline bool hda_sdw_check_wakeen_irq(struct snd_sof_dev *sdev) in hda_sdw_check_wakeen_irq()
722 static inline void hda_sdw_process_wakeen(struct snd_sof_dev *sdev) in hda_sdw_process_wakeen()
747 void hda_machine_select(struct snd_sof_dev *sdev);