hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c
....@@ -1060,7 +1060,7 @@
10601060 }
10611061
10621062 /* aspect ratio VUI */
1063
- readl(mfc_regs->e_h264_options);
1063
+ reg = readl(mfc_regs->e_h264_options);
10641064 reg &= ~(0x1 << 5);
10651065 reg |= ((p_h264->vui_sar & 0x1) << 5);
10661066 writel(reg, mfc_regs->e_h264_options);
....@@ -1083,7 +1083,7 @@
10831083
10841084 /* intra picture period for H.264 open GOP */
10851085 /* control */
1086
- readl(mfc_regs->e_h264_options);
1086
+ reg = readl(mfc_regs->e_h264_options);
10871087 reg &= ~(0x1 << 4);
10881088 reg |= ((p_h264->open_gop & 0x1) << 4);
10891089 writel(reg, mfc_regs->e_h264_options);
....@@ -1097,23 +1097,23 @@
10971097 }
10981098
10991099 /* 'WEIGHTED_BI_PREDICTION' for B is disable */
1100
- readl(mfc_regs->e_h264_options);
1100
+ reg = readl(mfc_regs->e_h264_options);
11011101 reg &= ~(0x3 << 9);
11021102 writel(reg, mfc_regs->e_h264_options);
11031103
11041104 /* 'CONSTRAINED_INTRA_PRED_ENABLE' is disable */
1105
- readl(mfc_regs->e_h264_options);
1105
+ reg = readl(mfc_regs->e_h264_options);
11061106 reg &= ~(0x1 << 14);
11071107 writel(reg, mfc_regs->e_h264_options);
11081108
11091109 /* ASO */
1110
- readl(mfc_regs->e_h264_options);
1110
+ reg = readl(mfc_regs->e_h264_options);
11111111 reg &= ~(0x1 << 6);
11121112 reg |= ((p_h264->aso & 0x1) << 6);
11131113 writel(reg, mfc_regs->e_h264_options);
11141114
11151115 /* hier qp enable */
1116
- readl(mfc_regs->e_h264_options);
1116
+ reg = readl(mfc_regs->e_h264_options);
11171117 reg &= ~(0x1 << 8);
11181118 reg |= ((p_h264->open_gop & 0x1) << 8);
11191119 writel(reg, mfc_regs->e_h264_options);
....@@ -1134,7 +1134,7 @@
11341134 writel(reg, mfc_regs->e_h264_num_t_layer);
11351135
11361136 /* frame packing SEI generation */
1137
- readl(mfc_regs->e_h264_options);
1137
+ reg = readl(mfc_regs->e_h264_options);
11381138 reg &= ~(0x1 << 25);
11391139 reg |= ((p_h264->sei_frame_packing & 0x1) << 25);
11401140 writel(reg, mfc_regs->e_h264_options);