From a98a7c95a8e81ca367995a72d380df61f7d08636 Mon Sep 17 00:00:00 2001 From: Ralph Metzler Date: Thu, 4 Aug 2016 19:40:55 +0200 Subject: [PATCH] fix for V2 --- ddbridge/ddbridge-mod.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ddbridge/ddbridge-mod.c b/ddbridge/ddbridge-mod.c index 99b37c3..6545f7a 100644 --- a/ddbridge/ddbridge-mod.c +++ b/ddbridge/ddbridge-mod.c @@ -1070,7 +1070,8 @@ static int mod_set_modulation(struct ddb *dev, int chan, enum fe_modulation mod) dev->mod[chan].modulation = mod; dev->mod[chan].obitrate = 0x0061072787900000ULL * (mod + 3); dev->mod[chan].ibitrate = dev->mod[chan].obitrate; - ddbwritel(dev, qamtab[mod], CHANNEL_SETTINGS(chan)); + if (dev->link[0].info->version < 2) + ddbwritel(dev, qamtab[mod], CHANNEL_SETTINGS(chan)); return 0; } @@ -1486,7 +1487,6 @@ static int mod_ioctl_2(struct file *file, unsigned int cmd, void *parg) int res; u32 ri; - pr_info("set modulation\n"); res = mod_set_modulation(dev, output->nr, cp->modulation); if (res) return res;