aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2012-08-28 19:39:25 -0400
committerTakashi Iwai <tiwai@suse.de>2012-08-30 10:50:40 -0400
commit4b927345a38c8e9eb2482c091f96ac06884aff8e (patch)
treebdf5f58e087eacd4a421c4adb6a379942ef81e77 /sound/pci/hda
parent83012a7ccbb90dee33c97a004b3e374f988612af (diff)
ALSA: hda - Optimize bitfield usage in struct hda_codec
Move up a few bitfields to be packed into a single int. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda')
-rw-r--r--sound/pci/hda/hda_codec.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/pci/hda/hda_codec.h b/sound/pci/hda/hda_codec.h
index 7e1709cb8995..9ac477334d2d 100644
--- a/sound/pci/hda/hda_codec.h
+++ b/sound/pci/hda/hda_codec.h
@@ -867,6 +867,8 @@ struct hda_codec {
867 unsigned int epss:1; /* supporting EPSS? */ 867 unsigned int epss:1; /* supporting EPSS? */
868#ifdef CONFIG_PM 868#ifdef CONFIG_PM
869 unsigned int power_on :1; /* current (global) power-state */ 869 unsigned int power_on :1; /* current (global) power-state */
870 unsigned int d3_stop_clk:1; /* support D3 operation without BCLK */
871 unsigned int d3_stop_clk_ok:1; /* BCLK can stop */
870 int power_transition; /* power-state in transition */ 872 int power_transition; /* power-state in transition */
871 int power_count; /* current (global) power refcount */ 873 int power_count; /* current (global) power refcount */
872 struct delayed_work power_work; /* delayed task for powerdown */ 874 struct delayed_work power_work; /* delayed task for powerdown */
@@ -874,9 +876,6 @@ struct hda_codec {
874 unsigned long power_off_acct; 876 unsigned long power_off_acct;
875 unsigned long power_jiffies; 877 unsigned long power_jiffies;
876 spinlock_t power_lock; 878 spinlock_t power_lock;
877
878 unsigned int d3_stop_clk:1; /* support D3 operation without BCLK */
879 unsigned int d3_stop_clk_ok:1; /* BCLK can stop */
880#endif 879#endif
881 880
882 /* codec-specific additional proc output */ 881 /* codec-specific additional proc output */