aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_priv.h
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/hda/hda_priv.h')
-rw-r--r--sound/pci/hda/hda_priv.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/sound/pci/hda/hda_priv.h b/sound/pci/hda/hda_priv.h
index da12d10b778f..43dd8a19cc09 100644
--- a/sound/pci/hda/hda_priv.h
+++ b/sound/pci/hda/hda_priv.h
@@ -188,15 +188,6 @@ enum { SDI0, SDI1, SDI2, SDI3, SDO0, SDO1, SDO2, SDO3 };
188#define AZX_DCAPS_I915_POWERWELL (1 << 27) /* HSW i915 powerwell support */ 188#define AZX_DCAPS_I915_POWERWELL (1 << 27) /* HSW i915 powerwell support */
189#define AZX_DCAPS_CORBRP_SELF_CLEAR (1 << 28) /* CORBRP clears itself after reset */ 189#define AZX_DCAPS_CORBRP_SELF_CLEAR (1 << 28) /* CORBRP clears itself after reset */
190 190
191/* position fix mode */
192enum {
193 POS_FIX_AUTO,
194 POS_FIX_LPIB,
195 POS_FIX_POSBUF,
196 POS_FIX_VIACOMBO,
197 POS_FIX_COMBO,
198};
199
200/* Defines for ATI HD Audio support in SB450 south bridge */ 191/* Defines for ATI HD Audio support in SB450 south bridge */
201#define ATI_SB450_HDAUDIO_MISC_CNTR2_ADDR 0x42 192#define ATI_SB450_HDAUDIO_MISC_CNTR2_ADDR 0x42
202#define ATI_SB450_HDAUDIO_ENABLE_SNOOP 0x02 193#define ATI_SB450_HDAUDIO_ENABLE_SNOOP 0x02
@@ -321,6 +312,9 @@ struct azx_pcm {
321 struct list_head list; 312 struct list_head list;
322}; 313};
323 314
315typedef unsigned int (*azx_get_pos_callback_t)(struct azx *, struct azx_dev *);
316typedef int (*azx_get_delay_callback_t)(struct azx *, struct azx_dev *, unsigned int pos);
317
324struct azx { 318struct azx {
325 struct snd_card *card; 319 struct snd_card *card;
326 struct pci_dev *pci; 320 struct pci_dev *pci;
@@ -339,6 +333,10 @@ struct azx {
339 /* Register interaction. */ 333 /* Register interaction. */
340 const struct hda_controller_ops *ops; 334 const struct hda_controller_ops *ops;
341 335
336 /* position adjustment callbacks */
337 azx_get_pos_callback_t get_position[2];
338 azx_get_delay_callback_t get_delay[2];
339
342 /* pci resources */ 340 /* pci resources */
343 unsigned long addr; 341 unsigned long addr;
344 void __iomem *remap_addr; 342 void __iomem *remap_addr;
@@ -374,7 +372,6 @@ struct azx {
374#endif 372#endif
375 373
376 /* flags */ 374 /* flags */
377 int position_fix[2]; /* for both playback/capture streams */
378 const int *bdl_pos_adj; 375 const int *bdl_pos_adj;
379 int poll_count; 376 int poll_count;
380 unsigned int running:1; 377 unsigned int running:1;