sdm660-mainline / linux

Linux-sdm660 kernel source tree
Other
27 stars 17 forks source link

Venus support #23

Open minlexx opened 8 months ago

minlexx commented 8 months ago

barni2000:

CONFIG_MEDIA_PLATFORM_SUPPORT=y
CONFIG_MEDIA_PLATFORM_DRIVERS=y
CONFIG_V4L_MEM2MEM_DRIVERS=y
CONFIG_VIDEO_QCOM_VENUS=m
CONFIG_VIDEOBUF2_CORE=m
CONFIG_VIDEOBUF2_V4L2=m
CONFIG_VIDEOBUF2_MEMOPS=m
CONFIG_VIDEOBUF2_DMA_CONTIG=m

these needed for venus but maybe some config could be missing idk

barni2000 commented 7 months ago

Venus is working if all related smmu and clock controllers are enabled. Issues are:

minlexx commented 7 months ago

Any special invocation command line arguments needed to test it using mpv (or any other software) or is hw accelerated decoding is used automagically (if these configs are present)?

barni2000 commented 7 months ago

Any special invocation command line arguments needed to test it using mpv (or any other software) or is hw accelerated decoding is used automagically (if these configs are present)?

mpv --hwdec=auto <file> or mpv --hwdec=v4l2m2m-copy <file> or gst-play-1.0 <file> or you can use ffplay but i don't remember the parameters.

minlexx commented 7 months ago

CONFIG_V4L2_MEM2MEM_DEV=m

This is not manually selectable, it's automatically selected if other config options are enabled

 Symbol: V4L2_MEM2MEM_DEV [=m]                                                                                                                                                                                                                                   │  
  │ Type  : tristate                                                                                                                                                                                                                                             │  
  │ Defined at drivers/media/v4l2-core/Kconfig:52                                                                                                                                                                                                                │  
  │   Depends on: MEDIA_SUPPORT [=m] && VIDEOBUF2_CORE [=m]                                                                                                                                                                                                      │  
  │ Selected by [m]:                                                                                                                                                                                                                                             │  
  │   - VIDEO_QCOM_VENUS [=m] && MEDIA_SUPPORT [=m] && MEDIA_PLATFORM_SUPPORT [=y] && MEDIA_PLATFORM_DRIVERS [=y] && V4L_MEM2MEM_DRIVERS [=y] && VIDEO_DEV [=m] && QCOM_SMEM [=y] && (ARCH_QCOM [=y] && IOMMU_DMA [=y] || COMPILE_TEST [=n])
barni2000 commented 7 months ago

ffplay -vcodec h264_v4l2m2m <file>