diff options
author | Takashi Iwai <tiwai@suse.de> | 2017-03-29 08:27:15 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-04-03 08:42:43 +0200 |
commit | 2c1f81381eadc6dd3c288ec4477b2fe572cf86dc (patch) | |
tree | 0bf95149f0aa98af439e5b690d0eff68f4f0c1c6 /sound/hda/hdac_stream.c | |
parent | ALSA: hda/ca0132: Limit values for chip addresses to 32-bit (diff) | |
download | linux-2c1f81381eadc6dd3c288ec4477b2fe572cf86dc.tar.xz linux-2c1f81381eadc6dd3c288ec4477b2fe572cf86dc.zip |
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_stream.c')
-rw-r--r-- | sound/hda/hdac_stream.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/hda/hdac_stream.c b/sound/hda/hdac_stream.c index c6994ebb4567..e1472c7ab6c1 100644 --- a/sound/hda/hdac_stream.c +++ b/sound/hda/hdac_stream.c @@ -555,12 +555,12 @@ void snd_hdac_stream_sync_trigger(struct hdac_stream *azx_dev, bool set, if (!reg) reg = AZX_REG_SSYNC; - val = _snd_hdac_chip_read(l, bus, reg); + val = _snd_hdac_chip_readl(bus, reg); if (set) val |= streams; else val &= ~streams; - _snd_hdac_chip_write(l, bus, reg, val); + _snd_hdac_chip_writel(bus, reg, val); } EXPORT_SYMBOL_GPL(snd_hdac_stream_sync_trigger); |