if (emu->details->i2c_adc == 1) { if ((kctl = snd_ctl_new1(&snd_ca0106_capture_mic_line_in, emu)) == NULL) return -ENOMEM; if ((err = snd_ctl_add(card, kctl))) return err; } 
int __devinit snd_ca0106_mixer(ca0106_t *emu){        int err;        snd_kcontrol_t *kctl;        snd_card_t *card = emu->card;	char **c;	static char *ca0106_remove_ctls[] = {		"Master Mono Playback Switch",		"Master Mono Playback Volume",		"3D Control - Switch",		"3D Control Sigmatel - Depth",		"PCM Playback Switch",		"PCM Playback Volume",		"CD Playback Switch",		"CD Playback Volume",		"Phone Playback Switch",		"Phone Playback Volume",		"Video Playback Switch",		"Video Playback Volume",		"PC Speaker Playback Switch",		"PC Speaker Playback Volume",		"Mono Output Select",		"Capture Source",		"Capture Switch",		"Capture Volume",		"External Amplifier",		"Sigmatel 4-Speaker Stereo Playback Switch",		"Sigmatel Surround Phase Inversion Playback ",		NULL	};	static char *ca0106_rename_ctls[] = {		"Master Playback Switch", "Capture Switch",		"Master Playback Volume", "Capture Volume",		"Line Playback Switch", "AC97 Line Capture Switch",		"Line Playback Volume", "AC97 Line Capture Volume",		"Aux Playback Switch", "AC97 Aux Capture Switch",		"Aux Playback Volume", "AC97 Aux Capture Volume",		"Mic Playback Switch", "AC97 Mic Capture Switch",		"Mic Playback Volume", "AC97 Mic Capture Volume",		"Mic Select", "AC97 Mic Select",		"Mic Boost (+20dB)", "AC97 Mic Boost (+20dB)",		NULL	};#if 1	for (c=ca0106_remove_ctls; *c; c++)		remove_ctl(card, *c);	for (c=ca0106_rename_ctls; *c; c += 2)		rename_ctl(card, c[0], c[1]);#endif        if ((kctl = snd_ctl_new1(&snd_ca0106_volume_control_analog_front, emu)) == NULL)                return -ENOMEM;        if ((err = snd_ctl_add(card, kctl)))                return err;        if ((kctl = snd_ctl_new1(&snd_ca0106_volume_control_analog_rear, emu)) == NULL)                return -ENOMEM;        if ((err = snd_ctl_add(card, kctl)))                return err;        if ((kctl = snd_ctl_new1(&snd_ca0106_volume_control_analog_center_lfe, emu)) == NULL)                return -ENOMEM;        if ((err = snd_ctl_add(card, kctl)))                return err;        if ((kctl = snd_ctl_new1(&snd_ca0106_volume_control_analog_unknown, emu)) == NULL)                return -ENOMEM;        if ((err = snd_ctl_add(card, kctl)))                return err;        if ((kctl = snd_ctl_new1(&snd_ca0106_volume_control_spdif_front, emu)) == NULL)                return -ENOMEM;        if ((err = snd_ctl_add(card, kctl)))                return err;        if ((kctl = snd_ctl_new1(&snd_ca0106_volume_control_spdif_rear, emu)) == NULL)                return -ENOMEM;        if ((err = snd_ctl_add(card, kctl)))                return err;        if ((kctl = snd_ctl_new1(&snd_ca0106_volume_control_spdif_center_lfe, emu)) == NULL)                return -ENOMEM;        if ((err = snd_ctl_add(card, kctl)))                return err;        if ((kctl = snd_ctl_new1(&snd_ca0106_volume_control_spdif_unknown, emu)) == NULL)                return -ENOMEM;        if ((err = snd_ctl_add(card, kctl)))                return err;        if ((kctl = snd_ctl_new1(&snd_ca0106_volume_control_feedback, emu)) == NULL)                return -ENOMEM;        if ((err = snd_ctl_add(card, kctl)))                return err;	if ((kctl = snd_ctl_new1(&snd_ca0106_spdif_mask_control, emu)) == NULL)		return -ENOMEM;	if ((err = snd_ctl_add(card, kctl)))		return err;	if ((kctl = snd_ctl_new1(&snd_ca0106_shared_spdif, emu)) == NULL)		return -ENOMEM;	if ((err = snd_ctl_add(card, kctl)))		return err;	if ((kctl = snd_ctl_new1(&snd_ca0106_capture_source, emu)) == NULL)		return -ENOMEM;	if ((err = snd_ctl_add(card, kctl)))		return err;	if ((kctl = snd_ctl_new1(&snd_ca0106_spdif_control, emu)) == NULL)		return -ENOMEM;	if ((err = snd_ctl_add(card, kctl)))		return err;        return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/ed144f3cdcf8f9b9280e04ca1a831c85a8fbb488/ca0106_mixer.c/clean/sound/pci/ca0106/ca0106_mixer.c