you are supposed to pass frequency * 16000 instead of frequency * 16.
This is sooo coherent.
- msg_Dbg( p_access, "input set to :%d", p_sys->i_input);
+ msg_Dbg( p_access, "input set to: %d", p_sys->i_input);
- msg_Dbg( p_access, "video standard set to :%x", p_sys->i_standard);
+ msg_Dbg( p_access, "video standard set to: %x", p_sys->i_standard);
- msg_Dbg( p_access, "picture size set to :%dx%d",
+ msg_Dbg( p_access, "picture size set to: %dx%d",
vfmt.fmt.pix.width, vfmt.fmt.pix.height );
}
}
vfmt.fmt.pix.width, vfmt.fmt.pix.height );
}
}
- vf.frequency = (p_sys->i_frequency * 16 + 500) / 1000;
+ if( p_sys->i_radio_fd == -1 )
+ vf.frequency = (p_sys->i_frequency * 16 + 500) / 1000;
+ else
+ vf.frequency = p_sys->i_frequency * 16;
+
if( ioctl( i_fd, VIDIOC_S_FREQUENCY, &vf ) < 0 )
{
msg_Warn( p_access, "VIDIOC_S_FREQUENCY failed (%s)",
if( ioctl( i_fd, VIDIOC_S_FREQUENCY, &vf ) < 0 )
{
msg_Warn( p_access, "VIDIOC_S_FREQUENCY failed (%s)",
- msg_Dbg( p_access, "tuner frequency set to :%d",
+ msg_Dbg( p_access, "tuner frequency set to: %d",
p_sys->i_frequency );
}
}
p_sys->i_frequency );
}
}