• Takashi Sakamoto's avatar
    ALSA: bebob: use correct type for __be32 data · 0633adb5
    Takashi Sakamoto authored
    commit fef586d5 upstream.
    
    In former commit, metering is supported for BeBoB based models
    customized by M-Audio. The data in transaction is aligned to
    big-endianness, while in the driver code u16 typed variable is assigned
    to the data. This causes sparse warnings.
    
    bebob_maudio.c:651:31: warning: cast to restricted __be16
    bebob_maudio.c:651:31: warning: cast to restricted __be16
    bebob_maudio.c:651:31: warning: cast to restricted __be16
    bebob_maudio.c:651:31: warning: cast to restricted __be16
    
    This commit fixes this bug by using __be16 variable for the data.
    
    Fixes: 3149ac48('ALSA: bebob: Add support for M-Audio special Firewire series')
    Signed-off-by: default avatarTakashi Sakamoto <o-takashi@sakamocchi.jp>
    Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
    0633adb5
bebob_maudio.c 21 KB