mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-27 15:32:43 +02:00
Merge branch 'master' of https://github.com/TangoCash/libstb-hal-tangos
Conflicts:
libarmbox/video.cpp
Origin commit data
------------------
Branch: master
Commit: d4b841facd
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-05-22 (Tue, 22 May 2018)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -311,6 +311,19 @@ void setAVInput(int val)
|
||||
}
|
||||
}
|
||||
|
||||
void setAVInput(int val)
|
||||
{
|
||||
if (val != 0 && val != 1)
|
||||
return;
|
||||
|
||||
int input_fd = open("/proc/stb/avs/0/input", O_WRONLY);
|
||||
if(input_fd){
|
||||
const char *input[] = {"encoder", "aux"};
|
||||
write(input_fd, input[val], strlen(input[val]));
|
||||
close(input_fd);
|
||||
}
|
||||
}
|
||||
|
||||
cVideo::cVideo(int, void *, void *, unsigned int unit)
|
||||
{
|
||||
lt_debug("%s unit %u\n", __func__, unit);
|
||||
|
Reference in New Issue
Block a user