예제 #1
0
static enum meson_cvbs_switch_state meson_cvbs_get_switch_state(void)
{
	if (gpio_pal > 0 && amlogic_get_value(gpio_pal, "mesondrm pal"))
		return MESON_CVBS_SWITCH_PAL;
	if (gpio_ntsc > 0 && amlogic_get_value(gpio_ntsc, "mesondrm ntsc"))
		return MESON_CVBS_SWITCH_NTSC;
	return MESON_CVBS_SWITCH_UNDEFINED;
}
예제 #2
0
bool_t is_interrupt_asserted( void )
{
	return (amlogic_get_value(devinfo->config.gpio_intr, gMhlI2cIdTable[0].name) == INT_IS_ASSERTED );
    //return (gpio_get_value(GPIO_INT_PIN) == INT_IS_ASSERTED);	
}
예제 #3
0
static int aml_audio_hp_detect(struct aml_audio_private_data *p_aml_audio)
{
    int val = amlogic_get_value(p_aml_audio->gpio_hp_det,"wm8960");
    //printk("***********%s*****val=%d******\n",__func__,val);
    return p_aml_audio->det_pol_inv ? val:(!val); 
}
예제 #4
0
static int aml_audio_hp_detect(struct aml_audio_private_data *p_aml_audio)
{
	int val = amlogic_get_value(p_aml_audio->gpio_hp_det,"rt5631");
	return p_aml_audio->det_pol_inv ? (!val):val; 
}