diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3921-drm-amd-display-Add-one-to-EDID-s-audio-channel-coun.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3921-drm-amd-display-Add-one-to-EDID-s-audio-channel-coun.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3921-drm-amd-display-Add-one-to-EDID-s-audio-channel-coun.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3921-drm-amd-display-Add-one-to-EDID-s-audio-channel-coun.patch new file mode 100644 index 00000000..0b5364bc --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3921-drm-amd-display-Add-one-to-EDID-s-audio-channel-coun.patch @@ -0,0 +1,32 @@ +From f7d278a8970d1311dadf5badfc7f7b7cc2a105b6 Mon Sep 17 00:00:00 2001 +From: Harry Wentland <harry.wentland@amd.com> +Date: Wed, 7 Mar 2018 13:45:33 -0500 +Subject: [PATCH 3921/4131] drm/amd/display: Add one to EDID's audio channel + count when passing to DC + +DC takes channel count to mean the actual count. cea_sad's channels +represent it as number of channels - 1. + +Signed-off-by: Harry Wentland <harry.wentland@amd.com> +Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> +Acked-by: Harry Wentland <harry.wentland@amd.com> +--- + drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c +index 9ab69b2..ca0b08b 100644 +--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c ++++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c +@@ -109,7 +109,7 @@ enum dc_edid_status dm_helpers_parse_edid_caps( + struct cea_sad *sad = &sads[i]; + + edid_caps->audio_modes[i].format_code = sad->format; +- edid_caps->audio_modes[i].channel_count = sad->channels; ++ edid_caps->audio_modes[i].channel_count = sad->channels + 1; + edid_caps->audio_modes[i].sample_rate = sad->freq; + edid_caps->audio_modes[i].sample_size = sad->byte2; + } +-- +2.7.4 + |