OSDN Git Service

greybus: gb-audio: Allocate space for 20 configurations
authorMark A. Greer <mgreer@animalcreek.com>
Thu, 21 May 2015 22:54:48 +0000 (15:54 -0700)
committerGreg Kroah-Hartman <gregkh@google.com>
Sat, 23 May 2015 23:13:58 +0000 (16:13 -0700)
commit555a0645b17114c559a2079ed64a8edb079b2339
tree0c765159a534f4eb5d6e772bc46da83ef97f69ac
parent0e995aab21dc4a74a4e2daca5df027937cb0b975
greybus: gb-audio: Allocate space for 20 configurations

The greybus code requires that an operation's response buffer be
the exact size of the response; however, the size of the response to
the GB_I2S_MGMT_TYPE_GET_SUPPORTED_CONFIGURATIONS operation is unknown.
To fix this, an extension to the I2S specification is required.

In the meantime, set the number of configurations returned to 20
because that is how many configurations will be returned (using
"insider knowledge" of the firmware).

Signed-off-by: Mark A. Greer <mgreer@animalcreek.com>
Tested-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/audio.h