]> git.baikalelectronics.ru Git - 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)
commit45e8941fa4b01867e5fb11d39aba37cc5d9c5aed
tree0bf95149f0aa98af439e5b690d0eff68f4f0c1c6
parenta676cc018fd97454a0a60e21124f850f74817fc8
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