Manually resolve the conflict between the new enum drm property
helpers in drm-next and the new "force-dvi" option that the "audio" output
property gained in drm-intel-next.
While resolving this conflict, switch the new drm_prop_enum_list to
use the newly introduced enum defines instead of magic values.
Conflicts:
drivers/gpu/drm/i915/intel_modes.c
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
return ret;
}
- static const char *force_audio_names[] = {
- "force-dvi",
- "off",
- "auto",
- "on",
+ static const struct drm_prop_enum_list force_audio_names[] = {
- { -1, "off" },
- { 0, "auto" },
- { 1, "on" },
++ { HDMI_AUDIO_OFF_DVI, "force-dvi" },
++ { HDMI_AUDIO_OFF, "off" },
++ { HDMI_AUDIO_AUTO, "auto" },
++ { HDMI_AUDIO_ON, "on" },
};
void