drm/amd/display: Expose audio inst from DC to DM
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Fri, 28 Jun 2019 17:39:41 +0000 (13:39 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 11 Jul 2019 19:37:24 +0000 (14:37 -0500)
commit5fdb7c4c7f2691efd760b0b0dc00da4a3699f1a6
tree34e70826fada4a0d06fec29c671ae96fe493ab8c
parent70df8273ca0cebd2bba443a4444b4944a5929151
drm/amd/display: Expose audio inst from DC to DM

[Why]
In order to give pin notifications to the sound driver from DM we need
to know whether audio is enabled on a stream and what pin it's using
from DC.

[How]
Expose the instance via stream status if it's a mapped resource for
the stream. It will be -1 if there's no audio mapped.

Cc: Leo Li <sunpeng.li@amd.com>
Cc: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@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/dc_stream.h