drm/amd/display: support spdif
authorCharlene Liu <charlene.liu@amd.com>
Fri, 2 Aug 2019 18:49:58 +0000 (14:49 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 23 Aug 2019 16:42:05 +0000 (11:42 -0500)
commitb5a41620bb88efb9fb31a4fa5e652e3d5bead7d4
treef8975dd570fcb3f2281903279702c9ff56bce48f
parenta9f54ce3c6032361d2b69910114b6e8baf9bdf49
drm/amd/display: support spdif

[Description]
port spdif fix to staging:
 spdif hardwired to afmt inst 1.
 spdif func pointer
 spdif resource allocation (reserve last audio endpoint for spdif only)

Signed-off-by: Charlene Liu <charlene.liu@amd.com>
Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
drivers/gpu/drm/amd/display/dc/dce/dce_audio.c