Commit f4c6c081 authored by Alex Deucher's avatar Alex Deucher

drm/radeon: whitespace clean up in radeon_audio.c

Clean up some formatting in radeon_audio.c to be
more consistent with the rest of the driver.
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e55bca26
...@@ -367,36 +367,36 @@ static void radeon_audio_write_sad_regs(struct drm_encoder *encoder) ...@@ -367,36 +367,36 @@ static void radeon_audio_write_sad_regs(struct drm_encoder *encoder)
static void radeon_audio_write_speaker_allocation(struct drm_encoder *encoder) static void radeon_audio_write_speaker_allocation(struct drm_encoder *encoder)
{ {
struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder);
struct drm_connector *connector; struct drm_connector *connector;
struct radeon_connector *radeon_connector = NULL; struct radeon_connector *radeon_connector = NULL;
u8 *sadb = NULL; u8 *sadb = NULL;
int sad_count; int sad_count;
list_for_each_entry(connector, list_for_each_entry(connector,
&encoder->dev->mode_config.connector_list, head) { &encoder->dev->mode_config.connector_list, head) {
if (connector->encoder == encoder) { if (connector->encoder == encoder) {
radeon_connector = to_radeon_connector(connector); radeon_connector = to_radeon_connector(connector);
break; break;
} }
} }
if (!radeon_connector) { if (!radeon_connector) {
DRM_ERROR("Couldn't find encoder's connector\n"); DRM_ERROR("Couldn't find encoder's connector\n");
return; return;
} }
sad_count = drm_edid_to_speaker_allocation( sad_count = drm_edid_to_speaker_allocation(
radeon_connector_edid(connector), &sadb); radeon_connector_edid(connector), &sadb);
if (sad_count < 0) { if (sad_count < 0) {
DRM_DEBUG("Couldn't read Speaker Allocation Data Block: %d\n", DRM_DEBUG("Couldn't read Speaker Allocation Data Block: %d\n",
sad_count); sad_count);
sad_count = 0; sad_count = 0;
} }
if (radeon_encoder->audio && radeon_encoder->audio->write_speaker_allocation) if (radeon_encoder->audio && radeon_encoder->audio->write_speaker_allocation)
radeon_encoder->audio->write_speaker_allocation(encoder, sadb, sad_count); radeon_encoder->audio->write_speaker_allocation(encoder, sadb, sad_count);
kfree(sadb); kfree(sadb);
} }
static void radeon_audio_write_latency_fields(struct drm_encoder *encoder, static void radeon_audio_write_latency_fields(struct drm_encoder *encoder,
...@@ -520,7 +520,7 @@ static void radeon_audio_set_dto(struct drm_encoder *encoder, unsigned int clock ...@@ -520,7 +520,7 @@ static void radeon_audio_set_dto(struct drm_encoder *encoder, unsigned int clock
static int radeon_audio_set_avi_packet(struct drm_encoder *encoder, static int radeon_audio_set_avi_packet(struct drm_encoder *encoder,
struct drm_display_mode *mode) struct drm_display_mode *mode)
{ {
struct radeon_device *rdev = encoder->dev->dev_private; struct radeon_device *rdev = encoder->dev->dev_private;
struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder);
struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv;
u8 buffer[HDMI_INFOFRAME_HEADER_SIZE + HDMI_AVI_INFOFRAME_SIZE]; u8 buffer[HDMI_INFOFRAME_HEADER_SIZE + HDMI_AVI_INFOFRAME_SIZE];
...@@ -625,9 +625,9 @@ static const struct radeon_hdmi_acr* radeon_audio_acr(unsigned int clock) ...@@ -625,9 +625,9 @@ static const struct radeon_hdmi_acr* radeon_audio_acr(unsigned int clock)
*/ */
static void radeon_audio_update_acr(struct drm_encoder *encoder, unsigned int clock) static void radeon_audio_update_acr(struct drm_encoder *encoder, unsigned int clock)
{ {
const struct radeon_hdmi_acr *acr = radeon_audio_acr(clock); const struct radeon_hdmi_acr *acr = radeon_audio_acr(clock);
struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder);
struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv;
if (!dig || !dig->afmt) if (!dig || !dig->afmt)
return; return;
...@@ -638,8 +638,8 @@ static void radeon_audio_update_acr(struct drm_encoder *encoder, unsigned int cl ...@@ -638,8 +638,8 @@ static void radeon_audio_update_acr(struct drm_encoder *encoder, unsigned int cl
static void radeon_audio_set_vbi_packet(struct drm_encoder *encoder) static void radeon_audio_set_vbi_packet(struct drm_encoder *encoder)
{ {
struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder);
struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv;
if (!dig || !dig->afmt) if (!dig || !dig->afmt)
return; return;
...@@ -668,8 +668,8 @@ static void radeon_hdmi_set_color_depth(struct drm_encoder *encoder) ...@@ -668,8 +668,8 @@ static void radeon_hdmi_set_color_depth(struct drm_encoder *encoder)
static void radeon_audio_set_audio_packet(struct drm_encoder *encoder) static void radeon_audio_set_audio_packet(struct drm_encoder *encoder)
{ {
struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder);
struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv;
if (!dig || !dig->afmt) if (!dig || !dig->afmt)
return; return;
...@@ -680,8 +680,8 @@ static void radeon_audio_set_audio_packet(struct drm_encoder *encoder) ...@@ -680,8 +680,8 @@ static void radeon_audio_set_audio_packet(struct drm_encoder *encoder)
static void radeon_audio_set_mute(struct drm_encoder *encoder, bool mute) static void radeon_audio_set_mute(struct drm_encoder *encoder, bool mute)
{ {
struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder);
struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv;
if (!dig || !dig->afmt) if (!dig || !dig->afmt)
return; return;
...@@ -696,7 +696,7 @@ static void radeon_audio_set_mute(struct drm_encoder *encoder, bool mute) ...@@ -696,7 +696,7 @@ static void radeon_audio_set_mute(struct drm_encoder *encoder, bool mute)
static void radeon_audio_hdmi_mode_set(struct drm_encoder *encoder, static void radeon_audio_hdmi_mode_set(struct drm_encoder *encoder,
struct drm_display_mode *mode) struct drm_display_mode *mode)
{ {
struct radeon_device *rdev = encoder->dev->dev_private; struct radeon_device *rdev = encoder->dev->dev_private;
struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder);
struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment