diff options
Diffstat (limited to 'stream/tv.c')
-rw-r--r-- | stream/tv.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/stream/tv.c b/stream/tv.c index b3bcc37923..8fe173c3bb 100644 --- a/stream/tv.c +++ b/stream/tv.c @@ -781,6 +781,21 @@ int tv_set_freq(tvi_handle_t *tvh, unsigned long freq) return(1); } +/***************************************************************** + * \brief tune current frequency by step_interval value + * \parameter step_interval increment value in 1/16 MHz + * \note frequency is rounded to 1/16 MHz value + * \return 1 + * + */ +int tv_step_freq(tvi_handle_t* tvh, float step_interval){ + unsigned long frequency; + + tv_get_freq(tvh,&frequency); + frequency+=step_interval; + return tv_set_freq(tvh,frequency); +} + int tv_step_channel_real(tvi_handle_t *tvh, int direction) { struct CHANLIST cl; |