Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu/dce11: fix audio offset for asics with >7 audio pins

Missing offset in the audio offset array.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

+3 -1
+1
drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
··· 1602 1602 AUD4_REGISTER_OFFSET, 1603 1603 AUD5_REGISTER_OFFSET, 1604 1604 AUD6_REGISTER_OFFSET, 1605 + AUD7_REGISTER_OFFSET, 1605 1606 }; 1606 1607 1607 1608 static int dce_v11_0_audio_init(struct amdgpu_device *adev)
+2 -1
drivers/gpu/drm/amd/amdgpu/vid.h
··· 54 54 #define AUD3_REGISTER_OFFSET (0x17b4 - 0x17a8) 55 55 #define AUD4_REGISTER_OFFSET (0x17b8 - 0x17a8) 56 56 #define AUD5_REGISTER_OFFSET (0x17bc - 0x17a8) 57 - #define AUD6_REGISTER_OFFSET (0x17c4 - 0x17a8) 57 + #define AUD6_REGISTER_OFFSET (0x17c0 - 0x17a8) 58 + #define AUD7_REGISTER_OFFSET (0x17c4 - 0x17a8) 58 59 59 60 /* hpd instance offsets */ 60 61 #define HPD0_REGISTER_OFFSET (0x1898 - 0x1898)