| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) Fuzhou Rockchip Electronics Co.Ltd |
|---|
| 3 | 4 | * Author: Jacob Chen <jacob-chen@iotwrt.com> |
|---|
| 4 | | - * |
|---|
| 5 | | - * This software is licensed under the terms of the GNU General Public |
|---|
| 6 | | - * License version 2, as published by the Free Software Foundation, and |
|---|
| 7 | | - * may be copied, distributed, and modified under those terms. |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 10 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 11 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 12 | | - * GNU General Public License for more details. |
|---|
| 13 | 5 | */ |
|---|
| 14 | 6 | |
|---|
| 15 | 7 | #include <linux/pm_runtime.h> |
|---|
| .. | .. |
|---|
| 259 | 251 | } |
|---|
| 260 | 252 | |
|---|
| 261 | 253 | /* |
|---|
| 262 | | - * Cacluate the up/down scaling mode/factor. |
|---|
| 254 | + * Calculate the up/down scaling mode/factor. |
|---|
| 263 | 255 | * |
|---|
| 264 | 256 | * RGA used to scale the picture first, and then rotate second, |
|---|
| 265 | 257 | * so we need to swap the w/h when rotate degree is 90/270. |
|---|
| .. | .. |
|---|
| 307 | 299 | } |
|---|
| 308 | 300 | |
|---|
| 309 | 301 | /* |
|---|
| 310 | | - * Cacluate the framebuffer virtual strides and active size, |
|---|
| 302 | + * Calculate the framebuffer virtual strides and active size, |
|---|
| 311 | 303 | * note that the step of vir_stride / vir_width is 4 byte words |
|---|
| 312 | 304 | */ |
|---|
| 313 | 305 | src_vir_info.data.vir_stride = ctx->in.stride >> 2; |
|---|
| .. | .. |
|---|
| 321 | 313 | dst_act_info.data.act_width = dst_w - 1; |
|---|
| 322 | 314 | |
|---|
| 323 | 315 | /* |
|---|
| 324 | | - * Cacluate the source framebuffer base address with offset pixel. |
|---|
| 316 | + * Calculate the source framebuffer base address with offset pixel. |
|---|
| 325 | 317 | */ |
|---|
| 326 | 318 | src_offsets = rga_get_addr_offset(&ctx->in, src_x, src_y, |
|---|
| 327 | 319 | src_w, src_h); |
|---|