Commit 7bdf5f76 authored by Takashi Sakamoto's avatar Takashi Sakamoto Committed by Kamal Mostafa

ALSA: fireworks: use u32 type for be32_to_cpup() macro

commit 463543ac upstream.

In former commit, snd_efw_command_get_phys_meters() was added to handle
metering data. The given buffer is used to save transaction result and to
convert between endianness. But this causes sparse warnings.

fireworks_command.c:269:25: warning: incorrect type in argument 1 (different base types)
fireworks_command.c:269:25:    expected unsigned int [usertype] *p
fireworks_command.c:269:25:    got restricted __be32 [usertype] *

This commit fixes this bug.

Fixes: bde8a8f2('ALSA: fireworks: Add transaction and some commands')
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>
parent f0d7d300
...@@ -257,7 +257,7 @@ int snd_efw_command_get_phys_meters(struct snd_efw *efw, ...@@ -257,7 +257,7 @@ int snd_efw_command_get_phys_meters(struct snd_efw *efw,
struct snd_efw_phys_meters *meters, struct snd_efw_phys_meters *meters,
unsigned int len) unsigned int len)
{ {
__be32 *buf = (__be32 *)meters; u32 *buf = (u32 *)meters;
unsigned int i; unsigned int i;
int err; int err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment