ad1843             27 include/sound/ad1843.h int ad1843_get_gain_max(struct snd_ad1843 *ad1843, int id);
ad1843             28 include/sound/ad1843.h int ad1843_get_gain(struct snd_ad1843 *ad1843, int id);
ad1843             29 include/sound/ad1843.h int ad1843_set_gain(struct snd_ad1843 *ad1843, int id, int newval);
ad1843             30 include/sound/ad1843.h int ad1843_get_recsrc(struct snd_ad1843 *ad1843);
ad1843             31 include/sound/ad1843.h int ad1843_set_recsrc(struct snd_ad1843 *ad1843, int newsrc);
ad1843             32 include/sound/ad1843.h void ad1843_setup_dac(struct snd_ad1843 *ad1843,
ad1843             37 include/sound/ad1843.h void ad1843_shutdown_dac(struct snd_ad1843 *ad1843,
ad1843             39 include/sound/ad1843.h void ad1843_setup_adc(struct snd_ad1843 *ad1843,
ad1843             43 include/sound/ad1843.h void ad1843_shutdown_adc(struct snd_ad1843 *ad1843);
ad1843             44 include/sound/ad1843.h int ad1843_init(struct snd_ad1843 *ad1843);
ad1843            172 sound/mips/ad1843.c static int ad1843_read_bits(struct snd_ad1843 *ad1843,
ad1843            177 sound/mips/ad1843.c 	w = ad1843->read(ad1843->chip, field->reg);
ad1843            185 sound/mips/ad1843.c static int ad1843_write_bits(struct snd_ad1843 *ad1843,
ad1843            191 sound/mips/ad1843.c 	w = ad1843->read(ad1843->chip, field->reg);
ad1843            196 sound/mips/ad1843.c 	ad1843->write(ad1843->chip, field->reg, w);
ad1843            214 sound/mips/ad1843.c static void ad1843_read_multi(struct snd_ad1843 *ad1843, int argcount, ...)
ad1843            226 sound/mips/ad1843.c 			w = ad1843->read(ad1843->chip, reg);
ad1843            246 sound/mips/ad1843.c static void ad1843_write_multi(struct snd_ad1843 *ad1843, int argcount, ...)
ad1843            273 sound/mips/ad1843.c 		w = ad1843->read(ad1843->chip, reg);
ad1843            277 sound/mips/ad1843.c 	ad1843->write(ad1843->chip, reg, w);
ad1843            280 sound/mips/ad1843.c int ad1843_get_gain_max(struct snd_ad1843 *ad1843, int id)
ad1843            296 sound/mips/ad1843.c int ad1843_get_gain(struct snd_ad1843 *ad1843, int id)
ad1843            302 sound/mips/ad1843.c 	ad1843_read_multi(ad1843, 2, gp->lfield, &lg, gp->rfield, &rg);
ad1843            308 sound/mips/ad1843.c 		ad1843_read_multi(ad1843, 2, gp->lmute, &lm, gp->rmute, &rm);
ad1843            323 sound/mips/ad1843.c int ad1843_set_gain(struct snd_ad1843 *ad1843, int id, int newval)
ad1843            338 sound/mips/ad1843.c 		ad1843_write_multi(ad1843, 2, gp->lmute, lm, gp->rmute, rm);
ad1843            339 sound/mips/ad1843.c 	ad1843_write_multi(ad1843, 2, gp->lfield, lg, gp->rfield, rg);
ad1843            340 sound/mips/ad1843.c 	return ad1843_get_gain(ad1843, id);
ad1843            345 sound/mips/ad1843.c int ad1843_get_recsrc(struct snd_ad1843 *ad1843)
ad1843            347 sound/mips/ad1843.c 	int val = ad1843_read_bits(ad1843, &ad1843_LSS);
ad1843            351 sound/mips/ad1843.c 		ad1843_write_multi(ad1843, 2,
ad1843            363 sound/mips/ad1843.c int ad1843_set_recsrc(struct snd_ad1843 *ad1843, int newsrc)
ad1843            368 sound/mips/ad1843.c 	ad1843_write_multi(ad1843, 2, &ad1843_LSS, newsrc, &ad1843_RSS, newsrc);
ad1843            374 sound/mips/ad1843.c void ad1843_setup_dac(struct snd_ad1843 *ad1843,
ad1843            414 sound/mips/ad1843.c 		ad1843_write_bits(ad1843, &ad1843_C2C, framerate);
ad1843            415 sound/mips/ad1843.c 		ad1843_write_multi(ad1843, 2,
ad1843            419 sound/mips/ad1843.c 		ad1843_write_bits(ad1843, &ad1843_C1C, framerate);
ad1843            420 sound/mips/ad1843.c 		ad1843_write_multi(ad1843, 2,
ad1843            426 sound/mips/ad1843.c void ad1843_shutdown_dac(struct snd_ad1843 *ad1843, unsigned int id)
ad1843            429 sound/mips/ad1843.c 		ad1843_write_bits(ad1843, &ad1843_DA2F, 1);
ad1843            431 sound/mips/ad1843.c 		ad1843_write_bits(ad1843, &ad1843_DA1F, 1);
ad1843            434 sound/mips/ad1843.c void ad1843_setup_adc(struct snd_ad1843 *ad1843,
ad1843            450 sound/mips/ad1843.c 	ad1843_write_bits(ad1843, &ad1843_C3C, framerate);
ad1843            451 sound/mips/ad1843.c 	ad1843_write_multi(ad1843, 2,
ad1843            455 sound/mips/ad1843.c void ad1843_shutdown_adc(struct snd_ad1843 *ad1843)
ad1843            468 sound/mips/ad1843.c int ad1843_init(struct snd_ad1843 *ad1843)
ad1843            472 sound/mips/ad1843.c 	if (ad1843_read_bits(ad1843, &ad1843_INIT) != 0) {
ad1843            477 sound/mips/ad1843.c 	ad1843_write_bits(ad1843, &ad1843_SCF, 1);
ad1843            480 sound/mips/ad1843.c 	ad1843_write_bits(ad1843, &ad1843_PDNI, 0);
ad1843            483 sound/mips/ad1843.c 	while (ad1843_read_bits(ad1843, &ad1843_PDNO)) {
ad1843            493 sound/mips/ad1843.c 	ad1843_write_multi(ad1843, 3,
ad1843            501 sound/mips/ad1843.c 	ad1843_write_multi(ad1843, 4,
ad1843            508 sound/mips/ad1843.c 	ad1843_write_bits(ad1843, &ad1843_ADTLK, 1);
ad1843            509 sound/mips/ad1843.c 	ad1843_write_multi(ad1843, 7,
ad1843            521 sound/mips/ad1843.c 	ad1843_set_gain(ad1843, AD1843_GAIN_RECLEV, 0);
ad1843            522 sound/mips/ad1843.c 	ad1843_set_gain(ad1843, AD1843_GAIN_LINE, 0);
ad1843            523 sound/mips/ad1843.c 	ad1843_set_gain(ad1843, AD1843_GAIN_LINE_2, 0);
ad1843            524 sound/mips/ad1843.c 	ad1843_set_gain(ad1843, AD1843_GAIN_MIC, 0);
ad1843            525 sound/mips/ad1843.c 	ad1843_set_gain(ad1843, AD1843_GAIN_PCM_0, 0);
ad1843            526 sound/mips/ad1843.c 	ad1843_set_gain(ad1843, AD1843_GAIN_PCM_1, 0);
ad1843            530 sound/mips/ad1843.c 	ad1843_write_multi(ad1843, 2, &ad1843_LDA1GM, 0, &ad1843_RDA1GM, 0);
ad1843            532 sound/mips/ad1843.c 	ad1843_write_multi(ad1843, 2, &ad1843_LDA2GM, 0, &ad1843_RDA2GM, 0);
ad1843            537 sound/mips/ad1843.c 	ad1843_set_recsrc(ad1843, 2);
ad1843            538 sound/mips/ad1843.c 	ad1843_write_multi(ad1843, 2, &ad1843_LMGE, 1, &ad1843_RMGE, 1);
ad1843            541 sound/mips/ad1843.c 	ad1843_write_multi(ad1843, 3,
ad1843             84 sound/mips/sgio2audio.c 	struct snd_ad1843 ad1843;
ad1843            152 sound/mips/sgio2audio.c 	uinfo->value.integer.max = ad1843_get_gain_max(&chip->ad1843,
ad1843            163 sound/mips/sgio2audio.c 	vol = ad1843_get_gain(&chip->ad1843, (int)kcontrol->private_value);
ad1843            177 sound/mips/sgio2audio.c 	oldvol = ad1843_get_gain(&chip->ad1843, kcontrol->private_value);
ad1843            181 sound/mips/sgio2audio.c 	newvol = ad1843_set_gain(&chip->ad1843, kcontrol->private_value,
ad1843            201 sound/mips/sgio2audio.c 	ucontrol->value.enumerated.item[0] = ad1843_get_recsrc(&chip->ad1843);
ad1843            211 sound/mips/sgio2audio.c 	oldsrc = ad1843_get_recsrc(&chip->ad1843);
ad1843            212 sound/mips/sgio2audio.c 	newsrc = ad1843_set_recsrc(&chip->ad1843,
ad1843            615 sound/mips/sgio2audio.c 		ad1843_setup_dac(&chip->ad1843,
ad1843            622 sound/mips/sgio2audio.c 		ad1843_setup_adc(&chip->ad1843,
ad1843            874 sound/mips/sgio2audio.c 	chip->ad1843.read = read_ad1843_reg;
ad1843            875 sound/mips/sgio2audio.c 	chip->ad1843.write = write_ad1843_reg;
ad1843            876 sound/mips/sgio2audio.c 	chip->ad1843.chip = chip;
ad1843            879 sound/mips/sgio2audio.c 	err = ad1843_init(&chip->ad1843);