diff options
author | Imre Deak <imre.deak@intel.com> | 2015-01-08 10:54:15 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-01-11 20:48:21 -0500 |
commit | 347de1f8625199d177caf7668cfa1c00717faedb (patch) | |
tree | 4862eea8f8fc767134d4142d0eea7c188f980918 /sound/pci | |
parent | 58fddc288b5cec192ad9eb9221da7ed14d974a27 (diff) |
ALSA: hda: export struct hda_intel
This struct will be needed by the component code added in an upcoming
patch, so export it into a new hda_intel.h file. At the same time also
merge hda_i915.h into this new header, there is no reason to keep two
separate intel specific header file.
Suggested-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/hda/hda_i915.c | 2 | ||||
-rw-r--r-- | sound/pci/hda/hda_intel.c | 27 | ||||
-rw-r--r-- | sound/pci/hda/hda_intel.h (renamed from sound/pci/hda/hda_i915.h) | 31 |
3 files changed, 31 insertions, 29 deletions
diff --git a/sound/pci/hda/hda_i915.c b/sound/pci/hda/hda_i915.c index d4d0375ac181..6a7854d8f2d9 100644 --- a/sound/pci/hda/hda_i915.c +++ b/sound/pci/hda/hda_i915.c | |||
@@ -21,7 +21,7 @@ | |||
21 | #include <sound/core.h> | 21 | #include <sound/core.h> |
22 | #include <drm/i915_powerwell.h> | 22 | #include <drm/i915_powerwell.h> |
23 | #include "hda_priv.h" | 23 | #include "hda_priv.h" |
24 | #include "hda_i915.h" | 24 | #include "hda_intel.h" |
25 | 25 | ||
26 | /* Intel HSW/BDW display HDA controller Extended Mode registers. | 26 | /* Intel HSW/BDW display HDA controller Extended Mode registers. |
27 | * EM4 (M value) and EM5 (N Value) are used to convert CDClk (Core Display | 27 | * EM4 (M value) and EM5 (N Value) are used to convert CDClk (Core Display |
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index d426a0bd6a5f..e4bc0dc29fe5 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c | |||
@@ -63,7 +63,7 @@ | |||
63 | #include "hda_codec.h" | 63 | #include "hda_codec.h" |
64 | #include "hda_controller.h" | 64 | #include "hda_controller.h" |
65 | #include "hda_priv.h" | 65 | #include "hda_priv.h" |
66 | #include "hda_i915.h" | 66 | #include "hda_intel.h" |
67 | 67 | ||
68 | /* position fix mode */ | 68 | /* position fix mode */ |
69 | enum { | 69 | enum { |
@@ -354,31 +354,6 @@ static char *driver_short_names[] = { | |||
354 | [AZX_DRIVER_GENERIC] = "HD-Audio Generic", | 354 | [AZX_DRIVER_GENERIC] = "HD-Audio Generic", |
355 | }; | 355 | }; |
356 | 356 | ||
357 | struct hda_intel { | ||
358 | struct azx chip; | ||
359 | |||
360 | /* for pending irqs */ | ||
361 | struct work_struct irq_pending_work; | ||
362 | |||
363 | /* sync probing */ | ||
364 | struct completion probe_wait; | ||
365 | struct work_struct probe_work; | ||
366 | |||
367 | /* card list (for power_save trigger) */ | ||
368 | struct list_head list; | ||
369 | |||
370 | /* extra flags */ | ||
371 | unsigned int irq_pending_warned:1; | ||
372 | |||
373 | /* VGA-switcheroo setup */ | ||
374 | unsigned int use_vga_switcheroo:1; | ||
375 | unsigned int vga_switcheroo_registered:1; | ||
376 | unsigned int init_failed:1; /* delayed init failed */ | ||
377 | |||
378 | /* secondary power domain for hdmi audio under vga device */ | ||
379 | struct dev_pm_domain hdmi_pm_domain; | ||
380 | }; | ||
381 | |||
382 | #ifdef CONFIG_X86 | 357 | #ifdef CONFIG_X86 |
383 | static void __mark_pages_wc(struct azx *chip, struct snd_dma_buffer *dmab, bool on) | 358 | static void __mark_pages_wc(struct azx *chip, struct snd_dma_buffer *dmab, bool on) |
384 | { | 359 | { |
diff --git a/sound/pci/hda/hda_i915.h b/sound/pci/hda/hda_intel.h index e6072c627583..434f254adb8b 100644 --- a/sound/pci/hda/hda_i915.h +++ b/sound/pci/hda/hda_intel.h | |||
@@ -13,8 +13,35 @@ | |||
13 | * this program; if not, write to the Free Software Foundation, Inc., 59 | 13 | * this program; if not, write to the Free Software Foundation, Inc., 59 |
14 | * Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 14 | * Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
15 | */ | 15 | */ |
16 | #ifndef __SOUND_HDA_I915_H | 16 | #ifndef __SOUND_HDA_INTEL_H |
17 | #define __SOUND_HDA_I915_H | 17 | #define __SOUND_HDA_INTEL_H |
18 | |||
19 | #include "hda_priv.h" | ||
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; | ||
36 | |||
37 | /* VGA-switcheroo setup */ | ||
38 | unsigned int use_vga_switcheroo:1; | ||
39 | unsigned int vga_switcheroo_registered:1; | ||
40 | unsigned int init_failed:1; /* delayed init failed */ | ||
41 | |||
42 | /* secondary power domain for hdmi audio under vga device */ | ||
43 | struct dev_pm_domain hdmi_pm_domain; | ||
44 | }; | ||
18 | 45 | ||
19 | #ifdef CONFIG_SND_HDA_I915 | 46 | #ifdef CONFIG_SND_HDA_I915 |
20 | int hda_display_power(bool enable); | 47 | int hda_display_power(bool enable); |