Skip to contentSkip to conversation

media:dvb-frontends: Change setting of variable interval to the correct values in the function, hd29l2_get_frontend for the switch statement checking the frame header

PATCH Antti Palosaari 1 participant 1 message Feb 3, 2015 1 message not in the archive Media (V4L/DVB)

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Yet another bad patch. Do not touch whole driver unless you understand and can test your patches!

Antti

Quoted 35 lines · Nicholas Krause

This changes the switch statement checking the frame header of the pointer, c as a pointer to a structure of type,dtv_frontend_properties to set the variable,interval correctly in the switch statement for checking the frame header as part of this structure pointer,c for this function correctly as required by the cases in this switch statement.

---
  drivers/media/dvb-frontends/hd29l2.c | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)
drivers/media/dvb-frontends/hd29l2.c +3 -3
index d7b9d54..3d1a013 100644
@@ -635,15 +635,15 @@ static int hd29l2_get_frontend(struct dvb_frontend *fe)
  	switch ((buf[1] >> 0) & 0x03) {
  	case 0: /* PN945 */
  		str_guard_interval = "PN945";
-		c->guard_interval = GUARD_INTERVAL_AUTO; /* FIXME */
+		c->guard_interval = GUARD_INTERVAL_PN945;
  		break;
  	case 1: /* PN595 */
  		str_guard_interval = "PN595";
-		c->guard_interval = GUARD_INTERVAL_AUTO; /* FIXME */
+		c->guard_interval = GUARD_INTERVAL_PN595;
  		break;
  	case 2: /* PN420 */
  		str_guard_interval = "PN420";
-		c->guard_interval = GUARD_INTERVAL_AUTO; /* FIXME */
+		c->guard_interval = GUARD_INTERVAL_PN420;
  		break;
  	default:
  		str_guard_interval = "?";
Signature · 1 line
http://palosaari.fi/