Commit bd8448f7 authored by Niklas Söderlund's avatar Niklas Söderlund Committed by Mauro Carvalho Chehab

[media] rcar-vin: refactor and fold in function after stall handling rework

With the driver stopping and starting the stream each time the driver is
stalled rvin_capture_off() can be folded in to the only caller.
Signed-off-by: default avatarNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 82ec4ca9
...@@ -397,12 +397,6 @@ static void rvin_capture_on(struct rvin_dev *vin) ...@@ -397,12 +397,6 @@ static void rvin_capture_on(struct rvin_dev *vin)
rvin_write(vin, VNFC_S_FRAME, VNFC_REG); rvin_write(vin, VNFC_S_FRAME, VNFC_REG);
} }
static void rvin_capture_off(struct rvin_dev *vin)
{
/* Set continuous & single transfer off */
rvin_write(vin, 0, VNFC_REG);
}
static int rvin_capture_start(struct rvin_dev *vin) static int rvin_capture_start(struct rvin_dev *vin)
{ {
struct rvin_buffer *buf, *node; struct rvin_buffer *buf, *node;
...@@ -436,7 +430,8 @@ static int rvin_capture_start(struct rvin_dev *vin) ...@@ -436,7 +430,8 @@ static int rvin_capture_start(struct rvin_dev *vin)
static void rvin_capture_stop(struct rvin_dev *vin) static void rvin_capture_stop(struct rvin_dev *vin)
{ {
rvin_capture_off(vin); /* Set continuous & single transfer off */
rvin_write(vin, 0, VNFC_REG);
/* Disable module */ /* Disable module */
rvin_write(vin, rvin_read(vin, VNMC_REG) & ~VNMC_ME, VNMC_REG); rvin_write(vin, rvin_read(vin, VNMC_REG) & ~VNMC_ME, VNMC_REG);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment