Tinyalsa之mixer_ctl_set_value(十)

static int set_route_by_array_v2(struct mixer *mixer, struct route_setting *route)                                  
{
  struct mixer_ctl *ctl;                                                                                                                                                                                     
  ctl = mixer_get_ctl_by_name(mixer,"Virt HP Jack Switch");                                                                                                                                          
  if(ctl){                                                                                                     
    ret = mixer_ctl_set_value(ctl, 0, 1);                                                                                                                                                              
    ALOGE("xxx-----> %s(), line = %d, ret = %d",__FUNCTION__,__LINE__,ret); 
  }                                                                                                     
}

 

你可能感兴趣的:(Android音频进阶)