Skip to contentSkip to conversation

drm/radeon/dce6: set correct number of audio pins

PATCH In review Alex Deucher 3 participants 4 messages Dec 12, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index de86493..ab59fd7 100644
@@ -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
#1 lore raw

2013/12/12 Alex Deucher <[email protected]>:

Quoted 13 lines

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 +0 -0
index de86493..ab59fd7 100644

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?

#2 lore raw
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 pins

2013/12/12 Alex Deucher <[email protected]>:

Review

Quoted 9 lines

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(-)
(quoted diff) +0 -0

b/drivers/gpu/drm/radeon/dce6_afmt.c

drivers/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

#3 lore raw

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 pins

2013/12/12 Alex Deucher <[email protected]>:

Review

Quoted 9 lines

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(-)
(quoted diff) +0 -0

b/drivers/gpu/drm/radeon/dce6_afmt.c

drivers/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