diff options
author | Takashi Iwai <tiwai@suse.de> | 2017-03-29 09:27:15 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-04-03 09:42:43 +0300 |
commit | 2c1f81381eadc6dd3c288ec4477b2fe572cf86dc (patch) | |
tree | 0bf95149f0aa98af439e5b690d0eff68f4f0c1c6 /sound/hda/hdac_controller.c | |
parent | d1600401faad4bc186bfdb291d8af644465e20bd (diff) | |
download | linux-2c1f81381eadc6dd3c288ec4477b2fe572cf86dc.tar.xz |
ALSA: hda - Avoid tricky macros
The macros _snd_hdac_chip_read() and *_write() expand to different
types (b,w,l) per their argument. They were thought to be used only
internally for other snd_hdac_chip_*() macros, but in some situations
we need to call these directly, and they are way too ugly.
Instead of saving a few lines, we just write these macros explicitly
with the types, so that they can be used in a saner way.
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/hda/hdac_controller.c')
-rw-r--r-- | sound/hda/hdac_controller.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/hda/hdac_controller.c b/sound/hda/hdac_controller.c index 043065867656..d15b653de0bf 100644 --- a/sound/hda/hdac_controller.c +++ b/sound/hda/hdac_controller.c @@ -272,7 +272,7 @@ int snd_hdac_bus_parse_capabilities(struct hdac_bus *bus) /* Lets walk the linked capabilities list */ do { - cur_cap = _snd_hdac_chip_read(l, bus, offset); + cur_cap = _snd_hdac_chip_readl(bus, offset); dev_dbg(bus->dev, "Capability version: 0x%x\n", (cur_cap & AZX_CAP_HDR_VER_MASK) >> AZX_CAP_HDR_VER_OFF); |