aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2018-06-28 12:20:47 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-07-30 20:04:33 -0400
commita034e90214b9109382fe675e1c9a85aca54e950d (patch)
tree93cce838406b463f703b5c148bda81a4a9fd4b76
parent5154b73518d9e55496072cf9cc33e4353ee397ba (diff)
media: tvp5150: add sync lock/loss signal debug messages
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
-rw-r--r--drivers/media/i2c/tvp5150.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/i2c/tvp5150.c b/drivers/media/i2c/tvp5150.c
index 070a7e2bb19e..36bf9b058ffd 100644
--- a/drivers/media/i2c/tvp5150.c
+++ b/drivers/media/i2c/tvp5150.c
@@ -815,6 +815,9 @@ static irqreturn_t tvp5150_isr(int irq, void *dev_id)
if (status & TVP5150_INT_A_LOCK) {
decoder->lock = !!(status & TVP5150_INT_A_LOCK_STATUS);
+ dev_dbg_lvl(decoder->sd.dev, 1, debug,
+ "sync lo%s signal\n",
+ decoder->lock ? "ck" : "ss");
v4l2_subdev_notify_event(&decoder->sd, &tvp5150_ev_fmt);
regmap_update_bits(map, TVP5150_MISC_CTL, mask,
decoder->lock ? decoder->oe : 0);

Privacy Policy