media: atomisp: Remove unused atomisp_get_css_pipe_id() function
authorHans de Goede <hdegoede@redhat.com>
Fri, 12 May 2023 16:27:10 +0000 (17:27 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 9 Jun 2023 13:51:47 +0000 (14:51 +0100)
Remove no longer user atomisp_get_css_pipe_id() function.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_ioctl.c
drivers/staging/media/atomisp/pci/atomisp_ioctl.h

index 6bae107..1deeb7c 100644 (file)
@@ -1068,34 +1068,6 @@ static int atomisp_dqbuf_wrapper(struct file *file, void *fh, struct v4l2_buffer
        return 0;
 }
 
-enum ia_css_pipe_id atomisp_get_css_pipe_id(struct atomisp_sub_device *asd)
-{
-       /*
-        * Disable vf_pp and run CSS in video mode. This allows using ISP
-        * scaling but it has one frame delay due to CSS internal buffering.
-        */
-       if (asd->vfpp->val == ATOMISP_VFPP_DISABLE_SCALER)
-               return IA_CSS_PIPE_ID_VIDEO;
-
-       /*
-        * Disable vf_pp and run CSS in still capture mode. In this mode
-        * CSS does not cause extra latency with buffering, but scaling
-        * is not available.
-        */
-       if (asd->vfpp->val == ATOMISP_VFPP_DISABLE_LOWLAT)
-               return IA_CSS_PIPE_ID_CAPTURE;
-
-       switch (asd->run_mode->val) {
-       case ATOMISP_RUN_MODE_PREVIEW:
-               return IA_CSS_PIPE_ID_PREVIEW;
-       case ATOMISP_RUN_MODE_VIDEO:
-               return IA_CSS_PIPE_ID_VIDEO;
-       case ATOMISP_RUN_MODE_STILL_CAPTURE:
-       default:
-               return IA_CSS_PIPE_ID_CAPTURE;
-       }
-}
-
 /* Input system HW workaround */
 /* Input system address translation corrupts burst during */
 /* invalidate. SW workaround for this is to set burst length */
index 997fa61..56d3df8 100644 (file)
@@ -42,9 +42,6 @@ int atomisp_alloc_css_stat_bufs(struct atomisp_sub_device *asd,
 int atomisp_start_streaming(struct vb2_queue *vq, unsigned int count);
 void atomisp_stop_streaming(struct vb2_queue *vq);
 
-enum ia_css_pipe_id atomisp_get_css_pipe_id(struct atomisp_sub_device
-       *asd);
-
 extern const struct v4l2_ioctl_ops atomisp_ioctl_ops;
 
 /* compat_ioctl for 32bit userland app and 64bit kernel */