- 25 7月, 2018 40 次提交
-
-
由 Stanimir Varbanov 提交于
This move the calculations of raw and compressed buffer sizes on common helper and make it identical for encoder and decoder. Signed-off-by: NStanimir Varbanov <stanimir.varbanov@linaro.org> Reviewed-by: NTomasz Figa <tfiga@chromium.org> Reviewed-by: NAlexandre Courbot <acourbot@chromium.org> Tested-by: NAlexandre Courbot <acourbot@chromium.org> Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Stanimir Varbanov 提交于
Make a new function vdec_output_conf() for decoder output configuration. vdec_output_conf() will set properties via HFI interface related to the output configuration, and keep vdec_set_properties() which will set properties related to decoding parameters. Signed-off-by: NStanimir Varbanov <stanimir.varbanov@linaro.org> Reviewed-by: NTomasz Figa <tfiga@chromium.org> Reviewed-by: NAlexandre Courbot <acourbot@chromium.org> Tested-by: NAlexandre Courbot <acourbot@chromium.org> Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Stanimir Varbanov 提交于
Rework and rename vdec_cap_num_buffers() to get the number of input buffers too. Signed-off-by: NStanimir Varbanov <stanimir.varbanov@linaro.org> Reviewed-by: NTomasz Figa <tfiga@chromium.org> Reviewed-by: NAlexandre Courbot <acourbot@chromium.org> Tested-by: NAlexandre Courbot <acourbot@chromium.org> Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Stanimir Varbanov 提交于
Add a helper function to return current output picture buffer size. OPB sizes can vary depending on the selected decoder output(s). Signed-off-by: NStanimir Varbanov <stanimir.varbanov@linaro.org> Reviewed-by: NTomasz Figa <tfiga@chromium.org> Reviewed-by: NAlexandre Courbot <acourbot@chromium.org> Tested-by: NAlexandre Courbot <acourbot@chromium.org> Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Stanimir Varbanov 提交于
Extend venus_helper_set_num_bufs() helper function with one more argument to set number of output buffers for the secondary decoder output. Signed-off-by: NStanimir Varbanov <stanimir.varbanov@linaro.org> Reviewed-by: NTomasz Figa <tfiga@chromium.org> Reviewed-by: NAlexandre Courbot <acourbot@chromium.org> Tested-by: NAlexandre Courbot <acourbot@chromium.org> Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Stanimir Varbanov 提交于
These are new properties applicable to Venus version 4xx. Add the helpers and call them from decoder and encoder drivers. Signed-off-by: NStanimir Varbanov <stanimir.varbanov@linaro.org> Reviewed-by: NTomasz Figa <tfiga@chromium.org> Reviewed-by: NAlexandre Courbot <acourbot@chromium.org> Tested-by: NAlexandre Courbot <acourbot@chromium.org> Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Stanimir Varbanov 提交于
The new helper will has one more argument for buffer type, that way the decoder can configure the format on it's secondary output. Signed-off-by: NStanimir Varbanov <stanimir.varbanov@linaro.org> Reviewed-by: NTomasz Figa <tfiga@chromium.org> Reviewed-by: NAlexandre Courbot <acourbot@chromium.org> Tested-by: NAlexandre Courbot <acourbot@chromium.org> Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Stanimir Varbanov 提交于
This adds one more function argument to pass buffer type to set_output_resolution() helper function. That is a preparation to support secondary decoder output. Signed-off-by: NStanimir Varbanov <stanimir.varbanov@linaro.org> Reviewed-by: NTomasz Figa <tfiga@chromium.org> Reviewed-by: NAlexandre Courbot <acourbot@chromium.org> Tested-by: NAlexandre Courbot <acourbot@chromium.org> Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Stanimir Varbanov 提交于
Delete not used flag for capture buffer allocation mode and no longer used cap_bufs_mode_dynamic from instance structure. Signed-off-by: NStanimir Varbanov <stanimir.varbanov@linaro.org> Reviewed-by: NTomasz Figa <tfiga@chromium.org> Reviewed-by: NAlexandre Courbot <acourbot@chromium.org> Tested-by: NAlexandre Courbot <acourbot@chromium.org> Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Stanimir Varbanov 提交于
Add and use a helper function to set actual buffer size for particular buffer type. This is also preparation to use the second decoder output. Signed-off-by: NStanimir Varbanov <stanimir.varbanov@linaro.org> Reviewed-by: NTomasz Figa <tfiga@chromium.org> Reviewed-by: NAlexandre Courbot <acourbot@chromium.org> Tested-by: NAlexandre Courbot <acourbot@chromium.org> Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Stanimir Varbanov 提交于
Adds a new helper function to set dynamic buffer mode if it is supported by current HFI version. The dynamic buffer mode is set unconditionally for both decoder outputs. Signed-off-by: NStanimir Varbanov <stanimir.varbanov@linaro.org> Reviewed-by: NTomasz Figa <tfiga@chromium.org> Reviewed-by: NAlexandre Courbot <acourbot@chromium.org> Tested-by: NAlexandre Courbot <acourbot@chromium.org> Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Stanimir Varbanov 提交于
Rename is_reg_unreg_needed() to better name is_dynamic_bufmode() and use buffer mode from enumerated per codec capabilities. Signed-off-by: NStanimir Varbanov <stanimir.varbanov@linaro.org> Reviewed-by: NTomasz Figa <tfiga@chromium.org> Reviewed-by: NAlexandre Courbot <acourbot@chromium.org> Tested-by: NAlexandre Courbot <acourbot@chromium.org> Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Stanimir Varbanov 提交于
This adds common capability parser for all supported Venus versions. Having it will help to enumerate better the supported raw formats and codecs and also the capabilities for every codec like max/min width/height, framerate, bitrate and so on. Signed-off-by: NStanimir Varbanov <stanimir.varbanov@linaro.org> Reviewed-by: NTomasz Figa <tfiga@chromium.org> Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Stanimir Varbanov 提交于
Add two more clocks for Venus 4xx in core structure and create a new power enable function to handle it for 3xx/4xx versions. Signed-off-by: NStanimir Varbanov <stanimir.varbanov@linaro.org> Reviewed-by: NTomasz Figa <tfiga@chromium.org> Reviewed-by: NAlexandre Courbot <acourbot@chromium.org> Tested-by: NAlexandre Courbot <acourbot@chromium.org> Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Stanimir Varbanov 提交于
This adds suspend (power collapse) functionality by reusing the suspend function for Venus 3xx and also enables idle indicator property for Venus 4xx (where it is disabled by default). Signed-off-by: NStanimir Varbanov <stanimir.varbanov@linaro.org> Reviewed-by: NTomasz Figa <tfiga@chromium.org> Reviewed-by: NAlexandre Courbot <acourbot@chromium.org> Tested-by: NAlexandre Courbot <acourbot@chromium.org> Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Stanimir Varbanov 提交于
This moves setting of default properties (firmware debug, idle indicator and low power mode) from session init to core init. All of those properties are need to be enabled/disabled early so that they could be used before the clients are even initialized. The other reason is to set idle indicator property early before we enter into venus_suspend function where we need to check for ARM9 WFI. Signed-off-by: NStanimir Varbanov <stanimir.varbanov@linaro.org> Reviewed-by: NTomasz Figa <tfiga@chromium.org> Reviewed-by: NAlexandre Courbot <acourbot@chromium.org> Tested-by: NAlexandre Courbot <acourbot@chromium.org> Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Stanimir Varbanov 提交于
This fixes the suspend function for Venus 3xx versions by add a check for WFI (wait for interrupt) bit. This bit is on when the ARM9 is idle and entered in low power mode. Signed-off-by: NStanimir Varbanov <stanimir.varbanov@linaro.org> Reviewed-by: NTomasz Figa <tfiga@chromium.org> Reviewed-by: NAlexandre Courbot <acourbot@chromium.org> Tested-by: NAlexandre Courbot <acourbot@chromium.org> Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Stanimir Varbanov 提交于
Add AXI halt support for version 4xx by using venus wrapper registers. Signed-off-by: NStanimir Varbanov <stanimir.varbanov@linaro.org> Reviewed-by: NTomasz Figa <tfiga@chromium.org> Reviewed-by: NAlexandre Courbot <acourbot@chromium.org> Tested-by: NAlexandre Courbot <acourbot@chromium.org> Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Stanimir Varbanov 提交于
This adds handling of buffers of type OUTPUT2 which is needed to support Venus 4xx version. Signed-off-by: NStanimir Varbanov <stanimir.varbanov@linaro.org> Reviewed-by: NTomasz Figa <tfiga@chromium.org> Reviewed-by: NAlexandre Courbot <acourbot@chromium.org> Tested-by: NAlexandre Courbot <acourbot@chromium.org> Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Stanimir Varbanov 提交于
This makes possible to handle session_continue for 4xx as well. Signed-off-by: NStanimir Varbanov <stanimir.varbanov@linaro.org> Reviewed-by: NTomasz Figa <tfiga@chromium.org> Reviewed-by: NAlexandre Courbot <acourbot@chromium.org> Tested-by: NAlexandre Courbot <acourbot@chromium.org> Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Stanimir Varbanov 提交于
Adds set_properties method to handle newer 4xx properties and fall-back to 3xx for the rest. Signed-off-by: NStanimir Varbanov <stanimir.varbanov@linaro.org> Reviewed-by: NTomasz Figa <tfiga@chromium.org> Reviewed-by: NAlexandre Courbot <acourbot@chromium.org> Tested-by: NAlexandre Courbot <acourbot@chromium.org> Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Stanimir Varbanov 提交于
HFI version 4xx can pass more properties in the sequence change event, extend the event structure with them. Signed-off-by: NStanimir Varbanov <stanimir.varbanov@linaro.org> Reviewed-by: NTomasz Figa <tfiga@chromium.org> Reviewed-by: NAlexandre Courbot <acourbot@chromium.org> Tested-by: NAlexandre Courbot <acourbot@chromium.org> Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Stanimir Varbanov 提交于
This covers the differences between 1xx,3xx and 4xx. Signed-off-by: NStanimir Varbanov <stanimir.varbanov@linaro.org> Reviewed-by: NTomasz Figa <tfiga@chromium.org> Reviewed-by: NAlexandre Courbot <acourbot@chromium.org> Tested-by: NAlexandre Courbot <acourbot@chromium.org> Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Stanimir Varbanov 提交于
Data pointer should be incremented by size of the structure not the size of a pointer, correct the mistake. Signed-off-by: NStanimir Varbanov <stanimir.varbanov@linaro.org> Reviewed-by: NTomasz Figa <tfiga@chromium.org> Reviewed-by: NAlexandre Courbot <acourbot@chromium.org> Tested-by: NAlexandre Courbot <acourbot@chromium.org> Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Baruch Siach 提交于
Signed-off-by: NBaruch Siach <baruch@tkos.co.il> Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Hugues Fruchet 提交于
Add an entry to make myself a maintainer of STM32 DCMI media driver. Signed-off-by: NHugues Fruchet <hugues.fruchet@st.com> Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Julia Lawall 提交于
Comparing an int to a size, which is unsigned, causes the int to become unsigned, giving the wrong result. kinect_read returns the result of usb_control_msg, which can return a negtive error code. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ int x; expression e,e1; identifier f; @@ *x = f(...); ... when != x = e1 when != if (x < 0 || ...) { ... return ...; } *x < sizeof(e) // </smpl> Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Krzysztof Ha?asa 提交于
The error path currently calls tw686x_video_free() which requires vc->dev to be initialized, causing a NULL dereference on uninitizalized channels. Fix this by setting the vc->dev fields for all the channels first. Fixes: f8afaa8d ("[media] tw686x: Introduce an interface to support multiple DMA modes") Signed-off-by: NKrzysztof Ha?asa <khalasa@piap.pl> Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Matt Ranostay 提交于
AMG88xx has an on-board thermistor which is used for more accurate processing of its temperature readings from the 8x8 thermopile array Cc: linux-hwmon@vger.kernel.org Signed-off-by: NMatt Ranostay <matt.ranostay@konsulko.com> Acked-by: NGuenter Roeck <linux@roeck-us.net> Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Philipp Zabel 提交于
This enables reordering support for h.264 main profile level 4.2, 5.0, and 5.1 streams. Even though we likely can't play back such streams at full speed, we should still recognize them correctly. Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de> Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Philipp Zabel 提交于
Allow to set a crop rectangle on the encoder output queue to set the visible resolution as required by the V4L2 codec API. Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de> Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Philipp Zabel 提交于
Remove the intermediate width and height variables, the calculation is simple enough. Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de> Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Philipp Zabel 提交于
All internal YCbCr frame buffers are the same size, calculate ycbcr_size once before the allocation loop. Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de> Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Hans Verkuil 提交于
Add the virtual codec driver that uses the Fast Walsh Hadamard Transform. Keiichi Watanabe contributed the multiplanar support. Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Co-Developed-by: NKeiichi Watanabe <keiichiw@chromium.org> Signed-off-by: NKeiichi Watanabe <keiichiw@chromium.org> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Hans Verkuil 提交于
Add a software codec based on the Fast Walsh Hadamard Transform. The original FWHT codec was developed by Tom aan de Wiel, and it was turned into 'proper' kernel code by Hans Verkuil, with a lot of performance and memory improvements. Signed-off-by: NTom aan de Wiel <tom.aandewiel@gmail.com> Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Hans Verkuil 提交于
This can be used to mark the last queued source buffer as the last buffer. Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Hans Verkuil 提交于
Add a new pixelformat for the vicodec software codec using the Fast Walsh Hadamard Transform. Signed-off-by: NHans Verkuil <hansverk@cisco.com> Acked-by: NSakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Hans Verkuil 提交于
Add MEDIA_ENT_F_PROC_VIDEO_EN/DECODER to be used for the encoder and decoder entities of codec hardware. [mchehab+samsung@kernel.org: split description on two senteces by adding dots] Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Acked-by: NSakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Hans Verkuil 提交于
Mention that IDs should not be hardcoded in applications and that the entity name must be unique within the media topology. Signed-off-by: NHans Verkuil <hansverk@cisco.com> Reviewed-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-
由 Hans Verkuil 提交于
Make it clearer that the index starts at 0. Signed-off-by: NHans Verkuil <hansverk@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
-