Vedang Nagar
ef0baf36f7
media: iris: implement power scaling for vpu2 and vpu3
...
Implement power scaling including a specific vpu2 and vpu3 calculation
for clock and bus bandwidth, which depends on the hardware
configuration, codec format, resolution and frame rate.
Signed-off-by: Vedang Nagar <quic_vnagar@quicinc.com >
Tested-by: Stefan Schmidt <stefan.schmidt@linaro.org > # x1e80100 (Dell XPS 13 9345)
Reviewed-by: Stefan Schmidt <stefan.schmidt@linaro.org >
Tested-by: Neil Armstrong <neil.armstrong@linaro.org > # on SM8550-QRD
Tested-by: Neil Armstrong <neil.armstrong@linaro.org > # on SM8550-HDK
Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com >
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl >
2025-02-07 11:51:55 +01:00
Dikshita Agarwal
c1f8b2cc72
media: iris: handle streamoff/on from client in dynamic resolution change
...
The decoder is stopped after it completes the dynamic resolution change
sequence. Handle VIDIOC_STREAMOFF() and VIDIOC_STREAMON() on the CAPTURE
queue to resume the decoding process.
Tested-by: Stefan Schmidt <stefan.schmidt@linaro.org > # x1e80100 (Dell XPS 13 9345)
Reviewed-by: Stefan Schmidt <stefan.schmidt@linaro.org >
Tested-by: Neil Armstrong <neil.armstrong@linaro.org > # on SM8550-QRD
Tested-by: Neil Armstrong <neil.armstrong@linaro.org > # on SM8550-HDK
Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com >
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl >
2025-02-07 11:51:49 +01:00
Dikshita Agarwal
17f2a485ca
media: iris: implement vb2 ops for buf_queue and firmware response
...
Implement the vb2 ops for the buf queue. These are the different buffer
attributes:
BUF_ATTR_DEFERRED - buffer queued by the client but not submitted to
firmware.
BUF_ATTR_PENDING_RELEASE - buffers requested to be released from
the firmware.
BUF_ATTR_QUEUED - buffers submitted to the firmware.
BUF_ATTR_DEQUEUED - buffers received from the firmware.
BUF_ATTR_BUFFER_DONE - buffers sent back to vb2.
Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl >
Tested-by: Stefan Schmidt <stefan.schmidt@linaro.org > # x1e80100 (Dell XPS 13 9345)
Reviewed-by: Stefan Schmidt <stefan.schmidt@linaro.org >
Tested-by: Neil Armstrong <neil.armstrong@linaro.org > # on SM8550-QRD
Tested-by: Neil Armstrong <neil.armstrong@linaro.org > # on SM8550-HDK
Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com >
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl >
2025-02-07 11:51:45 +01:00
Dikshita Agarwal
73702f45db
media: iris: allocate, initialize and queue internal buffers
...
Implement the functions for creating, queueing, releasing and destroying
the buffers for internal usage.
Tested-by: Stefan Schmidt <stefan.schmidt@linaro.org > # x1e80100 (Dell XPS 13 9345)
Reviewed-by: Stefan Schmidt <stefan.schmidt@linaro.org >
Tested-by: Neil Armstrong <neil.armstrong@linaro.org > # on SM8550-QRD
Tested-by: Neil Armstrong <neil.armstrong@linaro.org > # on SM8550-HDK
Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com >
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl >
2025-02-07 11:51:42 +01:00
Vedang Nagar
3a19d7b9e0
media: iris: implement set properties to firmware during streamon
...
During the stream on operation, set some mandatory properties on the
firmware to start a session. Set all v4l2 properties, which are set by
the client, on to firmware, which is prepared with the dependency graph.
Signed-off-by: Vedang Nagar <quic_vnagar@quicinc.com >
Tested-by: Stefan Schmidt <stefan.schmidt@linaro.org > # x1e80100 (Dell XPS 13 9345)
Reviewed-by: Stefan Schmidt <stefan.schmidt@linaro.org >
Tested-by: Neil Armstrong <neil.armstrong@linaro.org > # on SM8550-QRD
Tested-by: Neil Armstrong <neil.armstrong@linaro.org > # on SM8550-HDK
Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com >
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl >
2025-02-07 11:51:37 +01:00
Dikshita Agarwal
38fc8beaba
media: iris: implement reqbuf ioctl with vb2_queue_setup
...
Implement the reqbuf IOCTL op and the vb2_queue_setup vb2 op in the
driver with necessary hooks.
Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl >
Tested-by: Stefan Schmidt <stefan.schmidt@linaro.org > # x1e80100 (Dell XPS 13 9345)
Reviewed-by: Stefan Schmidt <stefan.schmidt@linaro.org >
Tested-by: Neil Armstrong <neil.armstrong@linaro.org > # on SM8550-QRD
Tested-by: Neil Armstrong <neil.armstrong@linaro.org > # on SM8550-HDK
Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com >
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl >
2025-02-07 11:51:24 +01:00