Re: [PATCH 1/2] v4l: vsp1: Reset VSP1 RPF source address

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Hayama-san,

On Wed, Nov 26, 2014 at 7:19 AM, Takanari Hayama <taki@xxxxxxxxxx> wrote:
> @@ -179,6 +190,10 @@ static void rpf_vdev_queue(struct vsp1_video *video,
>                            struct vsp1_video_buffer *buf)
>  {
>         struct vsp1_rwpf *rpf = container_of(video, struct vsp1_rwpf, video);
> +       int i;
> +
> +       for (i = 0; i < 3; i++)
> +               rpf->buf_addr[i] = buf->addr[i];

vsp1_video_buffer.addr is "dma_addr_t addr[3];"...

BTW, you can use memcpy() instead of an explicit loop.

>
>         vsp1_rpf_write(rpf, VI6_RPF_SRCM_ADDR_Y,
>                        buf->addr[0] + rpf->offsets[0]);
> diff --git a/drivers/media/platform/vsp1/vsp1_rwpf.h b/drivers/media/platform/vsp1/vsp1_rwpf.h
> index 28dd9e7..1f98fe3 100644
> --- a/drivers/media/platform/vsp1/vsp1_rwpf.h
> +++ b/drivers/media/platform/vsp1/vsp1_rwpf.h
> @@ -39,6 +39,8 @@ struct vsp1_rwpf {
>         struct v4l2_rect crop;
>
>         unsigned int offsets[2];
> +
> +       unsigned int buf_addr[3];

... hence the above should use dma_addr_t, too.

If CONFIG_ARM_LPAE is enabled, CONFIG_ARCH_DMA_ADDR_T_64BIT
will be enabled, too, and dma_addr_t will be u64.

>  };

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux