Commit 45f427a0 authored by Mark Greer's avatar Mark Greer Committed by Greg Kroah-Hartman

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: default avatarMark Greer <mgreer@animalcreek.com>
Acked-by: default avatarJohn Stultz <john.stultz@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent cce31036
...@@ -57,6 +57,7 @@ static void gb_pcm_work(struct work_struct *work) ...@@ -57,6 +57,7 @@ static void gb_pcm_work(struct work_struct *work)
pr_err("deactivate_cport failed: %d\n", ret); pr_err("deactivate_cport failed: %d\n", ret);
snd_dev->cport_active = false; snd_dev->cport_active = false;
snd_dev->send_data_sample_count = 0;
} }
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment