From: Hans Verkuil Date: Wed, 16 Jun 2021 07:22:20 +0000 (+0200) Subject: media: vivid: increase max number of allowed X-Git-Tag: v5.15~420^2~158 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=40c7f9c31d86bfa86306a7104ca361e78e76ba2c;p=platform%2Fkernel%2Flinux-starfive.git media: vivid: increase max number of allowed The max number of allowed logical addresses was set to 1 in vivid, for no good reason. This prevented testing with multiple logical addresses for the same CEC device. Increase this number to CEC_MAX_LOG_ADDRS. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/test-drivers/vivid/vivid-cec.c b/drivers/media/test-drivers/vivid/vivid-cec.c index 4d2413e8..55ea039 100644 --- a/drivers/media/test-drivers/vivid/vivid-cec.c +++ b/drivers/media/test-drivers/vivid/vivid-cec.c @@ -282,5 +282,5 @@ struct cec_adapter *vivid_cec_alloc_adap(struct vivid_dev *dev, snprintf(name, sizeof(name), "vivid-%03d-vid-%s%d", dev->inst, is_source ? "out" : "cap", idx); return cec_allocate_adapter(&vivid_cec_adap_ops, dev, - name, caps, 1); + name, caps, CEC_MAX_LOG_ADDRS); }