drm/radeon: add audio support for DCE6/8 GPUs (v12)
Similar to DCE4/5, but supports multiple audio pins which can be assigned per afmt block. v2: rework the driver to handle more than one audio pin. v3: try different dto reg v4: properly program dto v5 (ck): change dto programming order v6: program speaker allocation block v7: rebase v8: rebase on Rafał's changes v9: integrated Rafał's comments, update to latest drm_edid_to_speaker_allocation API v10: add missing line break in error message v11: add back audio enabled messages v12: fix copy paste typo in r600_audio_enable Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Christian König <christian.koenig@amd.com> Acked-by: Rafał Miłecki <zajec5@gmail.com>
This commit is contained in:
@@ -225,6 +225,7 @@ struct radeon_afmt {
|
||||
int offset;
|
||||
bool last_buffer_filled_status;
|
||||
int id;
|
||||
struct r600_audio_pin *pin;
|
||||
};
|
||||
|
||||
struct radeon_mode_info {
|
||||
@@ -233,7 +234,7 @@ struct radeon_mode_info {
|
||||
enum radeon_connector_table connector_table;
|
||||
bool mode_config_initialized;
|
||||
struct radeon_crtc *crtcs[6];
|
||||
struct radeon_afmt *afmt[6];
|
||||
struct radeon_afmt *afmt[7];
|
||||
/* DVI-I properties */
|
||||
struct drm_property *coherent_mode_property;
|
||||
/* DAC enable load detect */
|
||||
|
Reference in New Issue
Block a user