Exemplo n.º 1
0
void __init mapphone_cpcap_client_init(void)
{
    int i;

#ifdef CONFIG_SOUND_CPCAP_OMAP
    get_cpcap_audio_data();
#endif

    for (i = 0; i < ARRAY_SIZE(cpcap_devices); i++)
        cpcap_device_register(cpcap_devices[i]);

    cpcap_leds_init();

    if (led_cpcap_lm3554_init() > 0)
        cpcap_device_register(&cpcap_lm3554);

    if (led_cpcap_lm3559_init() > 0)
        cpcap_device_register(&cpcap_lm3559);

    if (!is_cpcap_vio_supply_converter())
        cpcap_device_register(&cpcap_vio_active_device);

#ifdef CONFIG_PM_DBG_DRV
    get_pm_dbg_drvdata();
    cpcap_device_register(&cpcap_pm_dbg_device);
    platform_set_drvdata(&cpcap_pm_dbg_device, &cpcap_pm_dbg_drvdata);
#endif
}
void __init olympus_audio_init(void)
{
	get_cpcap_audio_data();
	
	if (1==0) tegra_i2s_device1.dev.platform_data = &tegra_audio_pdata;
	if (1==0) tegra_i2s_device2.dev.platform_data = &tegra_audio2_pdata;

	cpcap_device_register(&cpcap_audio_device);
	if (1==0) tegra_spdif_device.dev.platform_data = &tegra_spdif_pdata;

}