Message ID | 20200730114632.6717-2-stanimir.varbanov@linaro.org |
---|---|
State | Accepted |
Commit | 10865c98986b6d7fcf98580fe12f075cba238730 |
Headers | show |
Series | [1/3] venus: parser: Prepare parser for multiple invocations | expand |
On Thu, Jul 30, 2020 at 4:47 AM Stanimir Varbanov <stanimir.varbanov@linaro.org> wrote: > > Presently the hfi_parser has been called only once during driver > probe. To prepare the parser function to be called multiple times > from recovery we need to initialize few variables which are used > during parsing time. > > Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org> > --- > drivers/media/platform/qcom/venus/hfi_parser.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/media/platform/qcom/venus/hfi_parser.c b/drivers/media/platform/qcom/venus/hfi_parser.c > index 7f515a4b9bd1..363ee2a65453 100644 > --- a/drivers/media/platform/qcom/venus/hfi_parser.c > +++ b/drivers/media/platform/qcom/venus/hfi_parser.c > @@ -239,6 +239,9 @@ u32 hfi_parser(struct venus_core *core, struct venus_inst *inst, void *buf, > > parser_init(inst, &codecs, &domain); > > + core->codecs_count = 0; > + memset(core->caps, 0, sizeof(core->caps)); > + > while (words_count) { > data = word + 1; > > -- > 2.17.1 > Reviewed-by: Fritz Koenig <frkoenig@chromium.org>
diff --git a/drivers/media/platform/qcom/venus/hfi_parser.c b/drivers/media/platform/qcom/venus/hfi_parser.c index 7f515a4b9bd1..363ee2a65453 100644 --- a/drivers/media/platform/qcom/venus/hfi_parser.c +++ b/drivers/media/platform/qcom/venus/hfi_parser.c @@ -239,6 +239,9 @@ u32 hfi_parser(struct venus_core *core, struct venus_inst *inst, void *buf, parser_init(inst, &codecs, &domain); + core->codecs_count = 0; + memset(core->caps, 0, sizeof(core->caps)); + while (words_count) { data = word + 1;
Presently the hfi_parser has been called only once during driver probe. To prepare the parser function to be called multiple times from recovery we need to initialize few variables which are used during parsing time. Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org> --- drivers/media/platform/qcom/venus/hfi_parser.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.17.1