Skip to content

Commit 975bdea

Browse files
Dzmitry Sankouskisuperna9999
authored andcommitted
drm/mipi-dsi: add mipi_dsi_compression_mode_multi
mipi_dsi_compression_mode_multi can help with error handling. Signed-off-by: Dzmitry Sankouski <[email protected]> Reviewed-by: Neil Armstrong <[email protected]> Link: https://lore.kernel.org/r/20241006-starqltechn_integration_upstream-v6-1-8336b9cd6c34@gmail.com Signed-off-by: Neil Armstrong <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/20241006-starqltechn_integration_upstream-v6-1-8336b9cd6c34@gmail.com
1 parent 655b92c commit 975bdea

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

drivers/gpu/drm/drm_mipi_dsi.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1520,6 +1520,22 @@ void mipi_dsi_compression_mode_ext_multi(struct mipi_dsi_multi_context *ctx,
15201520
}
15211521
EXPORT_SYMBOL(mipi_dsi_compression_mode_ext_multi);
15221522

1523+
/**
1524+
* mipi_dsi_compression_mode_multi() - enable/disable DSC on the peripheral
1525+
* @dsi: DSI peripheral device
1526+
* @enable: Whether to enable or disable the DSC
1527+
*
1528+
* Enable or disable Display Stream Compression on the peripheral using the
1529+
* default Picture Parameter Set and VESA DSC 1.1 algorithm.
1530+
*/
1531+
void mipi_dsi_compression_mode_multi(struct mipi_dsi_multi_context *ctx,
1532+
bool enable)
1533+
{
1534+
return mipi_dsi_compression_mode_ext_multi(ctx, enable,
1535+
MIPI_DSI_COMPRESSION_DSC, 0);
1536+
}
1537+
EXPORT_SYMBOL(mipi_dsi_compression_mode_multi);
1538+
15231539
/**
15241540
* mipi_dsi_dcs_nop_multi() - send DCS NOP packet
15251541
* @ctx: Context for multiple DSI transactions

include/drm/drm_mipi_dsi.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,8 @@ void mipi_dsi_compression_mode_ext_multi(struct mipi_dsi_multi_context *ctx,
280280
bool enable,
281281
enum mipi_dsi_compression_algo algo,
282282
unsigned int pps_selector);
283+
void mipi_dsi_compression_mode_multi(struct mipi_dsi_multi_context *ctx,
284+
bool enable);
283285
void mipi_dsi_picture_parameter_set_multi(struct mipi_dsi_multi_context *ctx,
284286
const struct drm_dsc_picture_parameter_set *pps);
285287

0 commit comments

Comments
 (0)