{
char *enabled = val & PIPEACONF_ENABLE ? "enabled" : "disabled";
char *bit30;
- char *bpc = NULL;
if (IS_965(devid))
bit30 = val & I965_PIPECONF_ACTIVE ? "active" : "inactive";
val & PIPEACONF_DOUBLE_WIDE ? "double-wide" : "single-wide";
if (HAS_PCH_SPLIT(devid)) {
+ char *bpc;
+
switch (val & (7 << 5)) {
case PIPECONF_8BPP:
bpc = "8bpc";
case PIPECONF_12BPP:
bpc = "12bpc";
break;
+ default:
+ bpc = "invalid bpc";
+ break;
}
- }
- if (HAS_PCH_SPLIT(devid))
snprintf(result, len, "%s, %s, %s", enabled, bit30, bpc);
- else
+ } else
snprintf(result, len, "%s, %s", enabled, bit30);
}