mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
media: rockchip: vpss: fix proc access register when clk off
Signed-off-by: Mingwei Yan <mingwei.yan@rock-chips.com> Change-Id: Ic018bf13051b65a366a3b2ef8e5ca918169d0dd3
This commit is contained in:
@@ -18,6 +18,11 @@ static void show_hw(struct seq_file *p, struct rkvpss_hw_dev *hw)
|
||||
int i;
|
||||
u32 val, mask;
|
||||
|
||||
if (hw->dev->power.usage_count.counter <= 0) {
|
||||
seq_printf(p, "\n%s\n", "HW close");
|
||||
return;
|
||||
}
|
||||
|
||||
seq_printf(p, "\n%s\n", "HW INFO");
|
||||
val = rkvpss_hw_read(hw, RKVPSS_VPSS_CTRL);
|
||||
seq_printf(p, "\tmirror:%s(0x%x)\n", (val & 0x10) ? "ON" : "OFF", val);
|
||||
@@ -104,7 +109,6 @@ static int vpss_show(struct seq_file *p, void *v)
|
||||
stream->crop.height,
|
||||
stream->out_fmt.width,
|
||||
stream->out_fmt.height);
|
||||
;
|
||||
seq_printf(p, "\tframe_cnt:%d rate:%dms delay:%dms frameloss:%d buf_cnt:%d\n",
|
||||
stream->dbg.id,
|
||||
stream->dbg.interval / 1000 / 1000,
|
||||
|
||||
Reference in New Issue
Block a user