Skip to content

Commit

Permalink
radeon: always enable audio pin fail0verflow#3 on Liverpool
Browse files Browse the repository at this point in the history
  • Loading branch information
marcan authored and stramzel committed Mar 21, 2022
1 parent a03578e commit f20097a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/gpu/drm/radeon/radeon.h
Original file line number Diff line number Diff line change
Expand Up @@ -2656,10 +2656,10 @@ void r100_pll_errata_after_index(struct radeon_device *rdev);
#define ASIC_IS_NODCE(rdev) ((rdev->family == CHIP_HAINAN))
#define ASIC_IS_DCE8(rdev) ((rdev->family >= CHIP_BONAIRE))
#define ASIC_IS_DCE81(rdev) ((rdev->family == CHIP_KAVERI))
#define ASIC_IS_DCE82(rdev) ((rdev->family == CHIP_BONAIRE) || \
(rdev->family == CHIP_LIVERPOOL))
#define ASIC_IS_DCE82(rdev) ((rdev->family == CHIP_BONAIRE))
#define ASIC_IS_DCE83(rdev) ((rdev->family == CHIP_KABINI) || \
(rdev->family == CHIP_MULLINS))
(rdev->family == CHIP_MULLINS) || \
(rdev->family == CHIP_LIVERPOOL))

#define ASIC_IS_LOMBOK(rdev) ((rdev->ddev->pdev->device == 0x6849) || \
(rdev->ddev->pdev->device == 0x6850) || \
Expand Down
5 changes: 5 additions & 0 deletions drivers/gpu/drm/radeon/radeon_audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,11 @@ int radeon_audio_init(struct radeon_device *rdev)
for (i = 0; i < rdev->audio.num_pins; i++)
radeon_audio_enable(rdev, &rdev->audio.pin[i], 0);

/* LVP has standalone S/PDIF on the third pin, always enable */
if (rdev->family == CHIP_LIVERPOOL) {
radeon_audio_enable(rdev, &rdev->audio.pin[2], 0xf);
}

return 0;
}

Expand Down

0 comments on commit f20097a

Please sign in to comment.