#define FW_52_0_3 ((52 << 24) | (0 << 16) | (3 << 8))
#define FW_52_4_3 ((52 << 24) | (4 << 16) | (3 << 8))
#define FW_52_8_3 ((52 << 24) | (8 << 16) | (3 << 8))
-#define FW_53_19_4 ((53 << 24) | (19 << 16) | (4 << 8))
+#define FW_53 (53 << 24)
/**
* flush commands to the hardware
radeon_vce_52_init(enc);
get_pic_param = radeon_vce_52_get_param;
break;
- case FW_53_19_4:
- radeon_vce_52_init(enc);
- get_pic_param = radeon_vce_52_get_param;
- break;
default:
- goto error;
+ if ((rscreen->info.vce_fw_version & (0xff << 24)) == FW_53) {
+ radeon_vce_52_init(enc);
+ get_pic_param = radeon_vce_52_get_param;
+ } else
+ goto error;
}
return &enc->base;
case FW_52_0_3:
case FW_52_4_3:
case FW_52_8_3:
- case FW_53_19_4:
return true;
default:
- return false;
+ if ((rscreen->info.vce_fw_version & (0xff << 24)) == FW_53)
+ return true;
+ else
+ return false;
}
}