drm/radeon/dce6: set correct number of audio pins
Subsystems (2)
PATCH 1/1 drm/radeon/dce6: set correct number of audio pins
DCE6.0, 8.x has 6
DCE6.1 has 4
--- drivers/gpu/drm/radeon/dce6_afmt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/radeon/dce6_afmt.c +3 -1
@@ -308,7 +308,9 @@ int dce6_audio_init(struct radeon_device *rdev) rdev->audio.enabled = true;if (ASIC_IS_DCE8 (rdev)) - rdev->audio.num_pins =7 ; + rdev->audio.num_pins =6 ; +else if (ASIC_IS_DCE61 (rdev)) + rdev->audio.num_pins =4 ;else rdev->audio.num_pins =6 ;
Signature · 1 line
1.8.3.1
2013/12/12 Alex Deucher <[email protected]>:
Quoted 13 lines
DCE6.0, 8.x has 6
DCE6.1 has 4Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/radeon/dce6_afmt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)drivers/gpu/drm/radeon/dce6_afmt.c +0
-0
drivers/gpu/drm/radeon/dce6_afmt.c int dce6_audio_init(struct radeon_device *rdev) · line 315
Quoted 9 lines
drivers/gpu/drm/radeon/dce6_afmt.c +3
-1@@ -308,7 +308,9 @@ int dce6_audio_init(struct radeon_device *rdev) rdev->audio.enabled = true;if (ASIC_IS_DCE8 (rdev)) - rdev->audio.num_pins =7 ; + rdev->audio.num_pins =6 ; +else if (ASIC_IS_DCE61 (rdev)) + rdev->audio.num_pins =4 ;else rdev->audio.num_pins =6 ;
You don't check for DCE64, so OLAND will be treated as DCE6.0 (since there isn't IGP Oland, so it won't be treated as 6.1).
Does 6.4 also have 6 pins?
Deucher, Alexander
maintainerQuoted 35 lines
-----Original Message-----
From: Rafał Miłecki [mailto:[email protected]]
Sent: Thursday, December 12, 2013 1:10 PM
To: Alex Deucher
Cc: dri-devel; Deucher, Alexander
Subject: Re: [PATCH] drm/radeon/dce6: set correct number of audio pins2013/12/12 Alex Deucher <[email protected]>:
Review
Quoted 9 lines
DCE6.0, 8.x has 6
DCE6.1 has 4Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/radeon/dce6_afmt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)(quoted diff) +0
-0
b/drivers/gpu/drm/radeon/dce6_afmt.cdrivers/gpu/drm/radeon/dce6_afmt.c int dce6_audio_init(struct radeon_device *rdev) · line 315
Quoted 13 lines
index de86493..ab59fd7 100644
drivers/gpu/drm/radeon/dce6_afmt.c +3
-1@@ -308,7 +308,9 @@ int dce6_audio_init(struct radeon_device *rdev) rdev->audio.enabled = true;if (ASIC_IS_DCE8 (rdev)) - rdev->audio.num_pins =7 ; + rdev->audio.num_pins =6 ; +else if (ASIC_IS_DCE61 (rdev)) + rdev->audio.num_pins =4 ;else rdev->audio.num_pins =6 ;You don't check for DCE64, so OLAND will be treated as DCE6.0 (since there isn't IGP Oland, so it won't be treated as 6.1).
Quoted 1 line
Does 6.4 also have 6 pins?
Yes. Oland has the same audio chip as the other SI parts.
Alex
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
2013/12/12 Deucher, Alexander <[email protected]>:
Quoted 35 lines
Quoted 35 lines
-----Original Message-----
From: Rafał Miłecki [mailto:[email protected]]
Sent: Thursday, December 12, 2013 1:10 PM
To: Alex Deucher
Cc: dri-devel; Deucher, Alexander
Subject: Re: [PATCH] drm/radeon/dce6: set correct number of audio pins2013/12/12 Alex Deucher <[email protected]>:
Review
Quoted 9 lines
DCE6.0, 8.x has 6
DCE6.1 has 4Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/radeon/dce6_afmt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)(quoted diff) +0
-0
b/drivers/gpu/drm/radeon/dce6_afmt.cdrivers/gpu/drm/radeon/dce6_afmt.c int dce6_audio_init(struct radeon_device *rdev) · line 315
Quoted 13 lines
index de86493..ab59fd7 100644
drivers/gpu/drm/radeon/dce6_afmt.c +3
-1@@ -308,7 +308,9 @@ int dce6_audio_init(struct radeon_device *rdev) rdev->audio.enabled = true;if (ASIC_IS_DCE8 (rdev)) - rdev->audio.num_pins =7 ; + rdev->audio.num_pins =6 ; +else if (ASIC_IS_DCE61 (rdev)) + rdev->audio.num_pins =4 ;else rdev->audio.num_pins =6 ;You don't check for DCE64, so OLAND will be treated as DCE6.0 (since there isn't IGP Oland, so it won't be treated as 6.1).
Quoted 3 lines
Quoted 1 line
Does 6.4 also have 6 pins?
Yes. Oland has the same audio chip as the other SI parts.
Great. Thanks for the patch!
Signature · 5 lines
Rafał _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel