media: rockchip: vicap restore sequence of sof after resume

Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I58723bd60429a5fa77982602514689c32e08d25f
This commit is contained in:
Zefa Chen
2023-11-10 15:56:14 +08:00
committed by Tao Huang
parent 9e5b5dff61
commit c252d35d35

View File

@@ -10419,6 +10419,8 @@ static int rkcif_subdevs_set_stream(struct rkcif_device *cif_dev, int on)
int ret = 0;
for (i = 0; i < p->num_subdevs; i++) {
if (p->subdevs[i] == terminal_sensor->sd && on)
rkcif_set_sof(cif_dev, cif_dev->stream[0].frame_idx);
if (p->subdevs[i] == terminal_sensor->sd && cif_dev->is_rtt_suspend) {
if (!rk_tb_mcu_is_done() && on) {
cif_dev->tb_client.data = p->subdevs[i];