dragonboard: camera and audio support
Signed-off-by: August <mingxin.android@gmail.com>
This commit is contained in:
parent
8b35ede853
commit
53d5d63254
4 changed files with 24 additions and 19 deletions
|
@ -97,6 +97,7 @@ void sigint_handler(int sig)
|
|||
|
||||
void close_speaker()
|
||||
{
|
||||
fprintf(stderr, "close_to_speaker\n");
|
||||
tinymix_set_value_byname(mixer,"External Speaker Switch",0);
|
||||
tinymix_set_value_byname(mixer,"SPK_R Mux",0);
|
||||
tinymix_set_value_byname(mixer,"SPK_L Mux",0);
|
||||
|
@ -104,6 +105,8 @@ void close_speaker()
|
|||
|
||||
void set_to_speaker()
|
||||
{
|
||||
fprintf(stderr, "set_to_speaker\n");
|
||||
|
||||
tinymix_set_value_byname(mixer,"AIF1IN0R Mux", (unsigned int)"AIF1_DA0R");
|
||||
tinymix_set_value_byname(mixer,"AIF1IN0L Mux", (unsigned int)"AIF1_DA0L");
|
||||
tinymix_set_value_byname(mixer,"DACR Mixer AIF1DA0R Switch",1);
|
||||
|
@ -125,11 +128,14 @@ void set_to_speaker()
|
|||
|
||||
void close_jack()
|
||||
{
|
||||
fprintf(stderr, "close_to_jack\n");
|
||||
tinymix_set_value_byname(mixer,"Headphone Switch", 0);
|
||||
}
|
||||
|
||||
void set_to_jack()
|
||||
{
|
||||
fprintf(stderr, "set_to_jack\n");
|
||||
|
||||
tinymix_set_value_byname(mixer,"AIF1IN0R Mux", (unsigned int)"AIF1_DA0R");
|
||||
tinymix_set_value_byname(mixer,"AIF1IN0L Mux", (unsigned int)"AIF1_DA0L");
|
||||
tinymix_set_value_byname(mixer,"DACR Mixer AIF1DA0R Switch",1);
|
||||
|
|
|
@ -1568,7 +1568,7 @@ static int df_windows_init(void)
|
|||
INIT_LIST_HEAD(&auto_tc_list);
|
||||
INIT_LIST_HEAD(&manual_tc_list);
|
||||
INIT_LIST_HEAD(&wifi_list);
|
||||
#if 0
|
||||
#if 1
|
||||
printf("------------- to open video node\n");
|
||||
while((access("/dev/video0",F_OK)) == -1)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue