]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
ALSA: hda - Avoid tricky macros
authorTakashi Iwai <tiwai@suse.de>
Wed, 29 Mar 2017 06:27:15 +0000 (08:27 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 3 Apr 2017 06:42:43 +0000 (08:42 +0200)
commit2c1f81381eadc6dd3c288ec4477b2fe572cf86dc
tree0bf95149f0aa98af439e5b690d0eff68f4f0c1c6
parentd1600401faad4bc186bfdb291d8af644465e20bd
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>
include/sound/hdaudio.h
sound/hda/hdac_controller.c
sound/hda/hdac_stream.c