You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
drm/tegra: sor - Use bits-per-color from panel
This change uses the value of bits-per-color from panel to remove one more hardcoded value. Signed-off-by: Stéphane Marchesin <marcheu@chromium.org> Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
committed by
Thierry Reding
parent
961e3beae3
commit
054b1bd161
@@ -525,7 +525,7 @@ static int tegra_output_sor_enable(struct tegra_output *output)
|
||||
dev_err(sor->dev, "failed to set safe parent clock: %d\n", err);
|
||||
|
||||
memset(&config, 0, sizeof(config));
|
||||
config.bits_per_pixel = 24; /* XXX: don't hardcode? */
|
||||
config.bits_per_pixel = output->connector.display_info.bpc * 3;
|
||||
|
||||
err = tegra_sor_calc_config(sor, mode, &config, &link);
|
||||
if (err < 0)
|
||||
|
||||
Reference in New Issue
Block a user