• Takashi Iwai's avatar
    ALSA: hda - Avoid tricky macros · 2c1f8138
    Takashi Iwai authored
    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: default avatarVinod Koul <vinod.koul@intel.com>
    Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    2c1f8138
hdaudio.h 18.4 KB