Merge branch 'topic/hda' into for-4.2
authorTakashi Iwai <tiwai@suse.de>
Mon, 27 Apr 2015 10:25:42 +0000 (12:25 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 27 Apr 2015 10:25:42 +0000 (12:25 +0200)
1  2 
sound/pci/hda/hda_controller.h
sound/pci/hda/hda_intel.c

index 0efdb094d21cf90e0e90a3fa8745b29276a82fb0,173bf7c85b6e7cc0b72233e7375d3c08d67b415a..3c6ebaf033a5dfc4e84967d45dd7be7c99ce03c2
@@@ -378,33 -172,20 +172,20 @@@ struct azx 
   */
  
  #define azx_writel(chip, reg, value) \
-       ((chip)->ops->reg_writel(value, (chip)->remap_addr + AZX_REG_##reg))
+       snd_hdac_chip_writel(azx_bus(chip), reg, value)
  #define azx_readl(chip, reg) \
-       ((chip)->ops->reg_readl((chip)->remap_addr + AZX_REG_##reg))
+       snd_hdac_chip_readl(azx_bus(chip), reg)
  #define azx_writew(chip, reg, value) \
-       ((chip)->ops->reg_writew(value, (chip)->remap_addr + AZX_REG_##reg))
+       snd_hdac_chip_writew(azx_bus(chip), reg, value)
  #define azx_readw(chip, reg) \
-       ((chip)->ops->reg_readw((chip)->remap_addr + AZX_REG_##reg))
+       snd_hdac_chip_readw(azx_bus(chip), reg)
  #define azx_writeb(chip, reg, value) \
-       ((chip)->ops->reg_writeb(value, (chip)->remap_addr + AZX_REG_##reg))
+       snd_hdac_chip_writeb(azx_bus(chip), reg, value)
  #define azx_readb(chip, reg) \
-       ((chip)->ops->reg_readb((chip)->remap_addr + AZX_REG_##reg))
- #define azx_sd_writel(chip, dev, reg, value) \
-       ((chip)->ops->reg_writel(value, (dev)->sd_addr + AZX_REG_##reg))
- #define azx_sd_readl(chip, dev, reg) \
-       ((chip)->ops->reg_readl((dev)->sd_addr + AZX_REG_##reg))
- #define azx_sd_writew(chip, dev, reg, value) \
-       ((chip)->ops->reg_writew(value, (dev)->sd_addr + AZX_REG_##reg))
- #define azx_sd_readw(chip, dev, reg) \
-       ((chip)->ops->reg_readw((dev)->sd_addr + AZX_REG_##reg))
- #define azx_sd_writeb(chip, dev, reg, value) \
-       ((chip)->ops->reg_writeb(value, (dev)->sd_addr + AZX_REG_##reg))
- #define azx_sd_readb(chip, dev, reg) \
-       ((chip)->ops->reg_readb((dev)->sd_addr + AZX_REG_##reg))
+       snd_hdac_chip_readb(azx_bus(chip), reg)
  
  #define azx_has_pm_runtime(chip) \
 -      (!AZX_DCAPS_PM_RUNTIME || ((chip)->driver_caps & AZX_DCAPS_PM_RUNTIME))
 +      ((chip)->driver_caps & AZX_DCAPS_PM_RUNTIME)
  
  /* PCM setup */
  static inline struct azx_dev *get_azx_dev(struct snd_pcm_substream *substream)
Simple merge