[PATCH] drm/radeon/kms/evergreen: don't enable hdmi audio stuff

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Alex Deucher <alexdeucher at gmail.com>
---
 drivers/gpu/drm/radeon/r600_audio.c |    2 +-
 drivers/gpu/drm/radeon/r600_hdmi.c  |    9 +++++++++
 2 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/drivers/gpu/drm/radeon/r600_audio.c
b/drivers/gpu/drm/radeon/r600_audio.c
index dac7042..1d89805 100644
--- a/drivers/gpu/drm/radeon/r600_audio.c
+++ b/drivers/gpu/drm/radeon/r600_audio.c
@@ -35,7 +35,7 @@
  */
 static int r600_audio_chipset_supported(struct radeon_device *rdev)
 {
-	return rdev->family >= CHIP_R600
+	return (rdev->family >= CHIP_R600 && rdev->family < CHIP_CEDAR)
 		|| rdev->family == CHIP_RS600
 		|| rdev->family == CHIP_RS690
 		|| rdev->family == CHIP_RS740;
diff --git a/drivers/gpu/drm/radeon/r600_hdmi.c
b/drivers/gpu/drm/radeon/r600_hdmi.c
index 029fa14..2616b82 100644
--- a/drivers/gpu/drm/radeon/r600_hdmi.c
+++ b/drivers/gpu/drm/radeon/r600_hdmi.c
@@ -314,6 +314,9 @@ void r600_hdmi_setmode(struct drm_encoder
*encoder, struct drm_display_mode *mod
 	struct radeon_device *rdev = dev->dev_private;
 	uint32_t offset = to_radeon_encoder(encoder)->hdmi_offset;

+	if (ASIC_IS_DCE4(rdev))
+		return;
+
 	if (!offset)
 		return;

@@ -484,6 +487,9 @@ void r600_hdmi_enable(struct drm_encoder *encoder)
 	struct radeon_device *rdev = dev->dev_private;
 	struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder);

+	if (ASIC_IS_DCE4(rdev))
+		return;
+
 	if (!radeon_encoder->hdmi_offset) {
 		r600_hdmi_assign_block(encoder);
 		if (!radeon_encoder->hdmi_offset) {
@@ -525,6 +531,9 @@ void r600_hdmi_disable(struct drm_encoder *encoder)
 	struct radeon_device *rdev = dev->dev_private;
 	struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder);

+	if (ASIC_IS_DCE4(rdev))
+		return;
+
 	if (!radeon_encoder->hdmi_offset) {
 		dev_err(rdev->dev, "Disabling not enabled HDMI\n");
 		return;
-- 
1.5.6.3

--0015174482ce4b72d404845c65eb
Content-Type: text/x-diff; charset=US-ASCII; 
	name="0001-drm-radeon-kms-evergreen-don-t-enable-hdmi-audio-st.patch"
Content-Disposition: attachment; 
	filename="0001-drm-radeon-kms-evergreen-don-t-enable-hdmi-audio-st.patch"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_g835xyx40

RnJvbSA2OTgxYTVhOTYzMmY4NWZkODk3YWJkZTBlMjk2YjQ5YWI3MjQ1Njc4IE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBBbGV4IERldWNoZXIgPGFsZXhkZXVjaGVyQGdtYWlsLmNvbT4K
RGF0ZTogRnJpLCAxNiBBcHIgMjAxMCAxMTozNTozMCAtMDQwMApTdWJqZWN0OiBbUEFUQ0hdIGRy
bS9yYWRlb24va21zL2V2ZXJncmVlbjogZG9uJ3QgZW5hYmxlIGhkbWkgYXVkaW8gc3R1ZmYKClNp
Z25lZC1vZmYtYnk6IEFsZXggRGV1Y2hlciA8YWxleGRldWNoZXJAZ21haWwuY29tPgotLS0KIGRy
aXZlcnMvZ3B1L2RybS9yYWRlb24vcjYwMF9hdWRpby5jIHwgICAgMiArLQogZHJpdmVycy9ncHUv
ZHJtL3JhZGVvbi9yNjAwX2hkbWkuYyAgfCAgICA5ICsrKysrKysrKwogMiBmaWxlcyBjaGFuZ2Vk
LCAxMCBpbnNlcnRpb25zKCspLCAxIGRlbGV0aW9ucygtKQoKZGlmZiAtLWdpdCBhL2RyaXZlcnMv
Z3B1L2RybS9yYWRlb24vcjYwMF9hdWRpby5jIGIvZHJpdmVycy9ncHUvZHJtL3JhZGVvbi9yNjAw
X2F1ZGlvLmMKaW5kZXggZGFjNzA0Mi4uM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[Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux