Re: [PATCH for v3.6] VIDIOC_ENUM_FREQ_BANDS fix

2012-08-02 Thread Hans Verkuil
On Wed August 1 2012 22:41:16 Rémi Denis-Courmont wrote: Le mercredi 1 août 2012 22:52:46 Hans Verkuil, vous avez écrit : When VIDIOC_ENUM_FREQ_BANDS is called for a driver that doesn't supply an enum_freq_bands op, then it will fall back to reporting a single freq band based on information

[PATCH for v3.6] VIDIOC_ENUM_FREQ_BANDS fix

2012-08-01 Thread Hans Verkuil
When VIDIOC_ENUM_FREQ_BANDS is called for a driver that doesn't supply an enum_freq_bands op, then it will fall back to reporting a single freq band based on information from g_tuner or g_modulator. Due to a bug this is an infinite list since the index field wasn't tested. This patch fixes this

Re: [PATCH for v3.6] VIDIOC_ENUM_FREQ_BANDS fix

2012-08-01 Thread Rémi Denis-Courmont
Le mercredi 1 août 2012 22:52:46 Hans Verkuil, vous avez écrit : When VIDIOC_ENUM_FREQ_BANDS is called for a driver that doesn't supply an enum_freq_bands op, then it will fall back to reporting a single freq band based on information from g_tuner or g_modulator. By the way... Isn't