mirror of
https://github.com/DigitalDevices/dddvb.git
synced 2025-03-01 10:35:23 +00:00
avoid print error when using setmod with modc gen 1 cards
This commit is contained in:
parent
5a4d24725a
commit
2445fdea1f
@ -33,6 +33,8 @@ static int set_mod_property (int fd, uint32_t cmd, uint32_t data)
|
||||
p.u.data = data;
|
||||
ret = ioctl(fd, FE_SET_PROPERTY, &c);
|
||||
|
||||
if(cmd == MODULATOR_GAIN && ret == -EINVAL) //Expected for modc Gen 1 cards
|
||||
return 0;
|
||||
if (ret < 0)
|
||||
{
|
||||
fprintf(stderr, "FE_SET_PROPERTY %d returned %d\n", cmd, errno);
|
||||
|
Loading…
x
Reference in New Issue
Block a user