Lines Matching refs:codec

278 			ac97->bus->ops->write(ac97, AC97_RESET, 0);	/* reset audio codec */
414 static int snd_ac97_ad18xx_update_pcm_bits(struct snd_ac97 *ac97, int codec, unsigned short mask, unsigned short value)
420 old = ac97->spec.ad18xx.pcmreg[codec];
426 ac97->spec.ad18xx.pcmreg[codec] = new;
427 /* select single codec */
430 ac97->spec.ad18xx.unchained[codec] | ac97->spec.ad18xx.chained[codec]);
866 #define AD18XX_PCM_BITS(xname, codec, lshift, rshift, mask) \
869 .private_value = (codec) | ((lshift) << 8) | ((rshift) << 12) | ((mask) << 16) }
891 int codec = kcontrol->private_value & 3;
896 ucontrol->value.integer.value[0] = mask - ((ac97->spec.ad18xx.pcmreg[codec] >> lshift) & mask);
898 ucontrol->value.integer.value[1] = mask - ((ac97->spec.ad18xx.pcmreg[codec] >> rshift) & mask);
905 int codec = kcontrol->private_value & 3;
917 return snd_ac97_ad18xx_update_pcm_bits(ac97, codec, valmask, val);
920 #define AD18XX_PCM_VOLUME(xname, codec) \
923 .private_value = codec }
937 int codec = kcontrol->private_value & 3;
940 ucontrol->value.integer.value[0] = 31 - ((ac97->spec.ad18xx.pcmreg[codec] >> 8) & 31);
941 ucontrol->value.integer.value[1] = 31 - ((ac97->spec.ad18xx.pcmreg[codec] >> 0) & 31);
949 int codec = kcontrol->private_value & 3;
954 return snd_ac97_ad18xx_update_pcm_bits(ac97, codec, 0x1f1f, (val1 << 8) | val2);
1009 ac97->bus->codec[ac97->num] = NULL;
1831 /* look for the codec id table matching with the given id */
1878 * snd_ac97_get_short_name - retrieve codec name
1879 * @ac97: the codec instance
1881 * Return: The short identifying name of the codec.
1890 return "unknown codec";
1996 /* register ac97 codec to bus */
2018 /* disconnect ac97 codec */
2040 * @bus: the AC97 bus which codec is attached to
2046 * allocated and initialized from the template. The codec
2049 * The template must include the codec number (num) and address (addr),
2077 if (bus->codec[template->num])
2092 bus->codec[ac97->num] = ac97;
2183 "AC'97 %d access error (not audio or modem codec)\n",
2262 * slots 7+8, so let's hope the codec supports it. */
2279 /* codec specific code (patch) should override these values */
2429 * @ac97: the codec instance
2524 * snd_ac97_suspend - General suspend function for AC97 codec
2527 * Suspends the codec, power down the chip.
2584 * snd_ac97_resume - General resume function for AC97 codec