Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0c9008e7 authored by Chinmay Sawarkar's avatar Chinmay Sawarkar
Browse files

msm: vidc: Convert cache names to ids



New LLCC apis take ID as the input, when creating a
cache device, instead of Cache name.

CRs-Fixed: 2384822
Change-Id: Ic3455e1e975e2f87cb89c1ee9b6d3998fea9bd50
Signed-off-by: default avatarChinmay Sawarkar <chinmays@codeaurora.org>
parent e594f806
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -4047,7 +4047,16 @@ static int __init_subcaches(struct venus_hfi_device *device)
		return 0;

	venus_hfi_for_each_subcache(device, sinfo) {
		if (!strcmp("vidsc0", sinfo->name)) {
			sinfo->subcache = llcc_slice_getd(LLCC_VIDSC0);
		} else if (!strcmp("vidsc1", sinfo->name)) {
			sinfo->subcache = llcc_slice_getd(LLCC_VIDSC1);
		} else if (!strcmp("vidscfw", sinfo->name)) {
			sinfo->subcache = llcc_slice_getd(LLCC_VIDFW);
		} else {
			dprintk(VIDC_ERR, "Invalid subcache name %s\n",
					sinfo->name);
		}
		if (IS_ERR_OR_NULL(sinfo->subcache)) {
			rc = PTR_ERR(sinfo->subcache) ?
				PTR_ERR(sinfo->subcache) : -EBADHANDLE;