mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-05 09:06:50 +08:00

When in multi-codecs cases, the check_sysfs_iommu function reenters with high probability, so some codec instances may fail to obtain the correct memory type. The root cause is scandir call in find_dir_in_path function. For efficiency consideration it is better to lock ion_heap_id value. Change-Id: I60a0eb27c3ac35bc022aa00b2cffc4e26e54bf24 Signed-off-by: Chengmc <Martin.Cheng@rock-chips.com> Signed-off-by: Herman Chen <herman.chen@rock-chips.com>