mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
ODROID-N2: vout: update current vout mode string
Change-Id: I19584a9dedfcf66a7ad2efbdcfddd9b5218add70
This commit is contained in:
@@ -917,6 +917,13 @@ static int refresh_tvout_mode(void)
|
||||
cur_vmode = validate_vmode(cvbsmode);
|
||||
snprintf(cur_mode_str, VMODE_NAME_LEN_MAX, "%s", cvbsmode);
|
||||
}
|
||||
|
||||
/* update current vout mode string */
|
||||
memset(local_name, 0, sizeof(local_name));
|
||||
strncpy(local_name, cur_mode_str, VMODE_NAME_LEN_MAX);
|
||||
|
||||
strncpy(vout_mode, cur_mode_str, VMODE_NAME_LEN_MAX);
|
||||
|
||||
if (cur_vmode >= VMODE_MAX) {
|
||||
VOUTERR("%s: no matched cur_mode: %s, force to invalid\n",
|
||||
__func__, cur_mode_str);
|
||||
|
||||
Reference in New Issue
Block a user