[RFC PATCH v2 5/7] media: imx: fsl_asrc: Add memory to memory driver

Daniel Baluta daniel.baluta at gmail.com
Wed Aug 2 00:15:12 AEST 2023


On Tue, Jul 25, 2023 at 10:31 AM Shengjiu Wang <shengjiu.wang at nxp.com> wrote:
>
> Implement the ASRC memory to memory function using
> the v4l2 framework, user can use this function with
> v4l2 ioctl interface.
>
> User send the output and capture buffer to driver and
> driver store the converted data to the capture buffer.
>
> This feature can be shared by ASRC and EASRC drivers
>
> Signed-off-by: Shengjiu Wang <shengjiu.wang at nxp.com>
> ---
>  drivers/media/platform/nxp/Kconfig        |  12 +
>  drivers/media/platform/nxp/Makefile       |   1 +
>  drivers/media/platform/nxp/fsl_asrc_m2m.c | 962 ++++++++++++++++++++++
>  include/sound/fsl_asrc_common.h           |   9 +
>  4 files changed, 984 insertions(+)
>  create mode 100644 drivers/media/platform/nxp/fsl_asrc_m2m.c
>
> diff --git a/drivers/media/platform/nxp/Kconfig b/drivers/media/platform/nxp/Kconfig
> index a0ca6b297fb8..359f11fe2a80 100644
> --- a/drivers/media/platform/nxp/Kconfig
> +++ b/drivers/media/platform/nxp/Kconfig
> @@ -56,3 +56,15 @@ config VIDEO_MX2_EMMAPRP
>
>  source "drivers/media/platform/nxp/dw100/Kconfig"
>  source "drivers/media/platform/nxp/imx-jpeg/Kconfig"
> +
> +config VIDEO_FSL_ASRC_M2M
> +       tristate "MXP i.MX ASRC M2M support"

s/MXP/NXP


> +       depends on V4L_MEM2MEM_DRIVERS
> +       depends on MEDIA_SUPPORT
> +       select VIDEOBUF2_DMA_CONTIG
> +       select V4L2_MEM2MEM_DEV
> +       help
> +           Say Y if you want to add ASRC M2M support for NXP CPUs.
> +           It is a completement for ASRC M2P and ASRC P2M features.

Complement for?


More information about the Linuxppc-dev mailing list