From: Philipp Zabel
Date: Thu, 28 Jun 2018 16:20:47 +0000 (-0400)
Subject: media: tvp5150: add sync lock/loss signal debug messages
X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7bb3c33892ea5b6e272ac89bfab894dc33d48a64;p=linux.git
media: tvp5150: add sync lock/loss signal debug messages
Signed-off-by: Philipp Zabel
Signed-off-by: Marco Felsch
Signed-off-by: Mauro Carvalho Chehab
---
diff --git a/drivers/media/i2c/tvp5150.c b/drivers/media/i2c/tvp5150.c
index ab0d3c137481a..ad55ee362b0be 100644
--- a/drivers/media/i2c/tvp5150.c
+++ b/drivers/media/i2c/tvp5150.c
@@ -821,6 +821,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);