Wang Xingchao | 99a2008 | 2013-05-30 22:07:10 +0800 | [diff] [blame] | 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 | */ |
Imre Deak | 347de1f | 2015-01-08 17:54:15 +0200 | [diff] [blame] | 16 | #ifndef __SOUND_HDA_INTEL_H |
| 17 | #define __SOUND_HDA_INTEL_H |
| 18 | |
Takashi Iwai | 89a93fe | 2015-02-19 18:04:17 +0100 | [diff] [blame] | 19 | #include "hda_controller.h" |
Imre Deak | 347de1f | 2015-01-08 17:54:15 +0200 | [diff] [blame] | 20 | |
| 21 | struct hda_intel { |
| 22 | struct azx chip; |
| 23 | |
| 24 | /* for pending irqs */ |
| 25 | struct work_struct irq_pending_work; |
| 26 | |
| 27 | /* sync probing */ |
| 28 | struct completion probe_wait; |
| 29 | struct work_struct probe_work; |
| 30 | |
| 31 | /* card list (for power_save trigger) */ |
| 32 | struct list_head list; |
| 33 | |
| 34 | /* extra flags */ |
| 35 | unsigned int irq_pending_warned:1; |
Takashi Iwai | a41d122 | 2015-04-14 22:13:18 +0200 | [diff] [blame] | 36 | unsigned int probe_continued:1; |
Imre Deak | 347de1f | 2015-01-08 17:54:15 +0200 | [diff] [blame] | 37 | |
Lukas Wunner | 2b760d8 | 2015-09-04 20:49:36 +0200 | [diff] [blame] | 38 | /* vga_switcheroo setup */ |
Imre Deak | 347de1f | 2015-01-08 17:54:15 +0200 | [diff] [blame] | 39 | unsigned int use_vga_switcheroo:1; |
| 40 | unsigned int vga_switcheroo_registered:1; |
| 41 | unsigned int init_failed:1; /* delayed init failed */ |
| 42 | |
Mengdong Lin | 795614d | 2015-04-29 17:43:36 +0800 | [diff] [blame] | 43 | bool need_i915_power:1; /* the hda controller needs i915 power */ |
Imre Deak | 347de1f | 2015-01-08 17:54:15 +0200 | [diff] [blame] | 44 | }; |
Wang Xingchao | 99a2008 | 2013-05-30 22:07:10 +0800 | [diff] [blame] | 45 | |
Wang Xingchao | 99a2008 | 2013-05-30 22:07:10 +0800 | [diff] [blame] | 46 | #endif |