greybus: gb-audio: Set samples per message during init
authorMark A. Greer <mgreer@animalcreek.com>
Thu, 21 May 2015 22:57:04 +0000 (15:57 -0700)
committerGreg Kroah-Hartman <gregkh@google.com>
Sat, 23 May 2015 23:26:41 +0000 (16:26 -0700)
commit0d17e0c9f164d9c56471438b51ad75f4e894effa
tree602107c3cc6eb9f697409e661048153157356fee
parent6b34099ec326e6c94fc5cf3ce3e1e4a9877c43ea
greybus: gb-audio: Set samples per message during init

A recent commit moved the I2S samples per message operation
to the PCM's 'hw_params' callback.  However, the 'hw_params'
callback is called numerous times while the samples per
message need only be done once (or seldom).  Eliminate the
unnecessary samples per message operations by doing it only
once at Greybus protocol init time.

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