Fix size of "values" fields of audio_gain_config.
It should be sizeof(audio_channel_mask_t) * 8 not sizeof(audio_channel_mask_t) alone. Change-Id: I3523dd4d44a0900ba1845b3675a22451f1fc2f3c
This commit is contained in:
parent
a78fc23491
commit
f7e5aeadb7
|
@ -645,10 +645,10 @@ struct audio_gain_config {
|
|||
audio_gain_mode_t mode; /* mode requested for this command */
|
||||
audio_channel_mask_t channel_mask; /* channels which gain value follows.
|
||||
N/A in joint mode */
|
||||
int values[sizeof(audio_channel_mask_t)]; /* gain values in millibels for each
|
||||
channel ordered from LSb to MSb in channel mask.
|
||||
The number of values is 1 in joint mode or
|
||||
popcount(channel_mask) */
|
||||
int values[sizeof(audio_channel_mask_t) * 8]; /* gain values in millibels
|
||||
for each channel ordered from LSb to MSb in
|
||||
channel mask. The number of values is 1 in joint
|
||||
mode or popcount(channel_mask) */
|
||||
unsigned int ramp_duration_ms; /* ramp duration in ms */
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue