hda_intel.h 823 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. */
  4. #ifndef __SOUND_HDA_INTEL_H
  5. #define __SOUND_HDA_INTEL_H
  6. #include "hda_controller.h"
  7. struct hda_intel {
  8. struct azx chip;
  9. /* for pending irqs */
  10. struct work_struct irq_pending_work;
  11. /* sync probing */
  12. struct completion probe_wait;
  13. struct delayed_work probe_work;
  14. /* card list (for power_save trigger) */
  15. struct list_head list;
  16. /* extra flags */
  17. unsigned int irq_pending_warned:1;
  18. unsigned int probe_continued:1;
  19. /* vga_switcheroo setup */
  20. unsigned int use_vga_switcheroo:1;
  21. unsigned int vga_switcheroo_registered:1;
  22. unsigned int init_failed:1; /* delayed init failed */
  23. unsigned int freed:1; /* resources already released */
  24. bool need_i915_power:1; /* the hda controller needs i915 power */
  25. int probe_retry; /* being probe-retry */
  26. };
  27. #endif