Skip to content

Commit 6c1549c

Browse files
takaswietiwai
authored andcommitted
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 <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
1 parent a8eaad7 commit 6c1549c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/firewire/motu/motu-protocol-v2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ static void calculate_differed_part(struct snd_motu_packet_format *formats,
176176
enum snd_motu_spec_flags flags,
177177
u32 data, u32 mask, u32 shift)
178178
{
179-
unsigned char pcm_chunks[3] = {0, 0};
179+
unsigned char pcm_chunks[2] = {0, 0};
180180

181181
/*
182182
* When optical interfaces are configured for S/PDIF (TOSLINK),

0 commit comments

Comments
 (0)