OSDN Git Service

greybus: gb-audio: Reset sample count when CPort deactivated
authorMark Greer <mgreer@animalcreek.com>
Tue, 9 Jun 2015 22:29:35 +0000 (15:29 -0700)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 10 Jun 2015 17:35:03 +0000 (10:35 -0700)
commit45f427a02ecee25885542ad1e449b1ae72b85a53
treee2be35f065b698e6bfe9b41f86b9f41884f63b53
parentcce310367603f8a91be0078bb6ddef2fecaf64ad
greybus: gb-audio: Reset sample count when CPort deactivated

The sample count placed in Greybus I2S audio messages should be
reset every time a new audio stream is set up.  However, the
current code does not do the reset so make it so it does.

Signed-off-by: Mark 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-pcm.c