[PATCH 3/5] drm/radeon: add audio support for DCE6/8 GPUs (v11)

Rafał Miłecki zajec5 at gmail.com
Thu Aug 15 08:02:13 PDT 2013


> @@ -169,13 +169,17 @@ int r600_audio_init(struct radeon_device *rdev)
>         if (!radeon_audio || !r600_audio_chipset_supported(rdev))
>                 return 0;
>
> -       r600_audio_engine_enable(rdev, true);
> +       rdev->audio.enabled = true;
> +
> +       rdev->audio.num_pins = 1;
> +       rdev->audio.pin[0].channels = -1;
> +       rdev->audio.pin[0].rate = -1;
> +       rdev->audio.pin[0].bits_per_sample = -1;
> +       rdev->audio.pin[0].status_bits = 0;
> +       rdev->audio.pin[0].category_code = 0;
> +       rdev->audio.pin[0].id = 0;
>
> -       rdev->audio_status.channels = -1;
> -       rdev->audio_status.rate = -1;
> -       rdev->audio_status.bits_per_sample = -1;
> -       rdev->audio_status.status_bits = 0;
> -       rdev->audio_status.category_code = 0;
> +       r600_audio_enable(rdev, &rdev->audio.pin[0], false);

I was really wondering why my audio was *DISABLED* during init :P Fix
this regression please ;)


More information about the dri-devel mailing list