diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2018-06-18 14:07:51 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-06-19 20:44:45 +0200 |
commit | 6c1549c4cc3c1b0d8623cde00e28f094b2db0d41 (patch) | |
tree | edcc084c19a2070fc75cadff409b1a7efec9340f /sound/firewire | |
parent | ALSA: line6: stop using get_seconds() (diff) | |
download | linux-6c1549c4cc3c1b0d8623cde00e28f094b2db0d41.tar.xz linux-6c1549c4cc3c1b0d8623cde00e28f094b2db0d41.zip |
ALSA: firewire-motu: suppless consumption for unused element of array in stack
In MOTU firewire protocol, data block consists of 24 bit data chunks except
for one quadlet for source packet header (SPH). The number of data chunk in
a data block is different between three clock modes; low, middle and high.
When unit supports ADAT on optical interface, the data block includes some
chunks for ADAT channels. These ADAT chunks are unavailable at high mode.
This driver has local functions to calculate the number of ADAT chunks. But
They uses stack for three clock modes. This is useless for higher mode.
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/motu/motu-protocol-v2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/firewire/motu/motu-protocol-v2.c b/sound/firewire/motu/motu-protocol-v2.c index 525b746330be..a51fd196d884 100644 --- a/sound/firewire/motu/motu-protocol-v2.c +++ b/sound/firewire/motu/motu-protocol-v2.c @@ -176,7 +176,7 @@ static void calculate_differed_part(struct snd_motu_packet_format *formats, enum snd_motu_spec_flags flags, u32 data, u32 mask, u32 shift) { - unsigned char pcm_chunks[3] = {0, 0}; + unsigned char pcm_chunks[2] = {0, 0}; /* * When optical interfaces are configured for S/PDIF (TOSLINK), |