diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2015-10-18 16:39:52 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-10-19 12:57:03 +0300 |
commit | fef586d58960bc867c1fa8126ee5d7364a5a89ac (patch) | |
tree | 1d662b989705f706eeb917350a83131ca9b9f5ad /sound/firewire | |
parent | 463543ac2effaeb2b524f0a0a92f2413c23998ca (diff) | |
download | linux-fef586d58960bc867c1fa8126ee5d7364a5a89ac.tar.xz |
ALSA: bebob: use correct type for __be32 data
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: 3149ac489ff8('ALSA: bebob: Add support for M-Audio special Firewire series')
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire')
-rw-r--r-- | sound/firewire/bebob/bebob_maudio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/firewire/bebob/bebob_maudio.c b/sound/firewire/bebob/bebob_maudio.c index 7b86a6b99f07..07e5abdbceb5 100644 --- a/sound/firewire/bebob/bebob_maudio.c +++ b/sound/firewire/bebob/bebob_maudio.c @@ -628,7 +628,7 @@ static const char *const special_meter_labels[] = { static int special_meter_get(struct snd_bebob *bebob, u32 *target, unsigned int size) { - u16 *buf; + __be16 *buf; unsigned int i, c, channels; int err; |