Skip to content

Commit 45cc2b8

Browse files
wangchenlu2236opsiff
authored andcommitted
media: phytium-jpeg: Reduce switch resolution latency
The previous delay is so long that it interferes with the proper operation of the switch resolution. This incorrect operation would occasionally cause the BMC to hang. Mainline: Open-Source Signed-off-by: Wang Min <wangmin@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn> Signed-off-by: Wang Chenlu <wangchenlu2236@phytium.com.cn>
1 parent 6ee9761 commit 45cc2b8

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

drivers/media/platform/phytium/phytium_jpeg_core.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,6 @@ static void phytium_jpeg_off(struct phytium_jpeg_dev *jpeg_dev)
186186
}
187187

188188
clear_bit(VIDEO_CLOCKS_ON, &jpeg_dev->status);
189-
/* wait 50 ms */
190-
mdelay(50);
191-
/* C08 bit7 1:busy */
192189
}
193190

194191
static inline void phytium_jpeg_enable_source_detecting(struct phytium_jpeg_dev *jpeg_dev)

drivers/media/platform/phytium/phytium_jpeg_core.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
#define MAX_PIXEL_CLOCK (1920 * 1080 * 60) /* 1920 x 1080 x 60Hz */
4747

4848
#define SOURCE_RESOLUTION_DETECT_TIMEOUT msecs_to_jiffies(500)
49-
#define RESOLUTION_CHANGE_DELAY msecs_to_jiffies(250)
49+
#define RESOLUTION_CHANGE_DELAY msecs_to_jiffies(150)
5050
#define INVALID_RESOLUTION_DELAY msecs_to_jiffies(250)
5151
#define STOP_TIMEOUT msecs_to_jiffies(1000)
5252

0 commit comments

Comments
 (0)