mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-09-04 20:19:47 +08:00 
			
		
		
		
	media: venus: parser: Prepare parser for multiple invocations
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> Reviewed-by: Fritz Koenig <frkoenig@chromium.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
		
							parent
							
								
									58084b3f6c
								
							
						
					
					
						commit
						10865c9898
					
				| @ -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; | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Stanimir Varbanov
						Stanimir Varbanov