diff options
Diffstat (limited to 'drivers/media/video/cx88')
-rw-r--r-- | drivers/media/video/cx88/cx88-core.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/media/video/cx88/cx88-core.c b/drivers/media/video/cx88/cx88-core.c index cea3212d28b4..ce7f1f0ae054 100644 --- a/drivers/media/video/cx88/cx88-core.c +++ b/drivers/media/video/cx88/cx88-core.c | |||
@@ -434,10 +434,13 @@ void cx88_sram_channel_dump(struct cx88_core *core, | |||
434 | printk("%s: cmds: %-12s: 0x%08x\n", | 434 | printk("%s: cmds: %-12s: 0x%08x\n", |
435 | core->name,name[i], | 435 | core->name,name[i], |
436 | cx_read(ch->cmds_start + 4*i)); | 436 | cx_read(ch->cmds_start + 4*i)); |
437 | for (i = 0; i < 4; i++) { | 437 | for (n = 1, i = 0; i < 4; i++) { |
438 | risc = cx_read(ch->cmds_start + 4 * (i+11)); | 438 | risc = cx_read(ch->cmds_start + 4 * (i+11)); |
439 | printk("%s: risc%d: ", core->name, i); | 439 | printk("%s: risc%d: ", core->name, i); |
440 | cx88_risc_decode(risc); | 440 | if (--n) |
441 | printk("0x%08x [ arg #%d ]\n", risc, n); | ||
442 | else | ||
443 | n = cx88_risc_decode(risc); | ||
441 | } | 444 | } |
442 | for (i = 0; i < 16; i += n) { | 445 | for (i = 0; i < 16; i += n) { |
443 | risc = cx_read(ch->ctrl_start + 4 * i); | 446 | risc = cx_read(ch->ctrl_start + 4 * i); |