Date:2011-10-03 00:41:44 (8 years 9 months ago)
Author:Maarten ter Huurne
Commit:73abbd7a545c39bb6a842913093783642645c100
Message:media: radio: RDA5807: RSSI is 7 bits wide.

Jérôme reported that values over 63 do occur, although one probably has to
go outside to get such good reception.
Files: drivers/media/radio/radio-rda5807.c (1 diff)

Change Details

drivers/media/radio/radio-rda5807.c
314314        .rxsubchans = rxsubchans,
315315        /* TODO: Implement forced mono (RDA5807_MASK_CTRL_MONO). */
316316        .audmode = V4L2_TUNER_MODE_STEREO,
317        /* TODO: Is the signal strength 6 or 7 bits wide?
318                 Good reception is about 56, which would suggest
319                 that 63 is max, so 6 bits. */
320        /* TODO: RSSI is logarithmic, does V4L2 expect log or linear? */
321        .signal = signal < 0x40 ? signal << 10 : 0xFFFF,
317        .signal = signal << (16 - 7),
322318        .afc = 0, /* automatic frequency control */
323319    };
324320

Archive Download the corresponding diff file



interactive