hda_intel.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * This program is free software; you can redistribute it and/or modify it
  3. * under the terms of the GNU General Public License as published by the Free
  4. * Software Foundation; either version 2 of the License, or (at your option)
  5. * any later version.
  6. *
  7. * This program is distributed in the hope that it will be useful, but WITHOUT
  8. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  9. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  10. * more details.
  11. *
  12. * You should have received a copy of the GNU General Public License along with
  13. * this program; if not, write to the Free Software Foundation, Inc., 59
  14. * Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  15. */
  16. #ifndef __SOUND_HDA_INTEL_H
  17. #define __SOUND_HDA_INTEL_H
  18. #include "hda_controller.h"
  19. struct hda_intel {
  20. struct azx chip;
  21. /* for pending irqs */
  22. struct work_struct irq_pending_work;
  23. /* sync probing */
  24. struct completion probe_wait;
  25. struct work_struct probe_work;
  26. /* card list (for power_save trigger) */
  27. struct list_head list;
  28. /* extra flags */
  29. unsigned int irq_pending_warned:1;
  30. unsigned int probe_continued:1;
  31. /* vga_switcheroo setup */
  32. unsigned int use_vga_switcheroo:1;
  33. unsigned int vga_switcheroo_registered:1;
  34. unsigned int init_failed:1; /* delayed init failed */
  35. /* secondary power domain for hdmi audio under vga device */
  36. struct dev_pm_domain hdmi_pm_domain;
  37. bool need_i915_power:1; /* the hda controller needs i915 power */
  38. };
  39. #endif