Lines Matching defs:codec
279 ac97->bus->ops->write(ac97, AC97_RESET, 0); /* reset audio codec */
415 static int snd_ac97_ad18xx_update_pcm_bits(struct snd_ac97 *ac97, int codec, unsigned short mask, unsigned short value)
421 old = ac97->spec.ad18xx.pcmreg[codec];
427 ac97->spec.ad18xx.pcmreg[codec] = new;
428 /* select single codec */
431 ac97->spec.ad18xx.unchained[codec] | ac97->spec.ad18xx.chained[codec]);
867 #define AD18XX_PCM_BITS(xname, codec, lshift, rshift, mask) \
870 .private_value = (codec) | ((lshift) << 8) | ((rshift) << 12) | ((mask) << 16) }
892 int codec = kcontrol->private_value & 3;
897 ucontrol->value.integer.value[0] = mask - ((ac97->spec.ad18xx.pcmreg[codec] >> lshift) & mask);
899 ucontrol->value.integer.value[1] = mask - ((ac97->spec.ad18xx.pcmreg[codec] >> rshift) & mask);
906 int codec = kcontrol->private_value & 3;
918 return snd_ac97_ad18xx_update_pcm_bits(ac97, codec, valmask, val);
921 #define AD18XX_PCM_VOLUME(xname, codec) \
924 .private_value = codec }
938 int codec = kcontrol->private_value & 3;
941 ucontrol->value.integer.value[0] = 31 - ((ac97->spec.ad18xx.pcmreg[codec] >> 8) & 31);
942 ucontrol->value.integer.value[1] = 31 - ((ac97->spec.ad18xx.pcmreg[codec] >> 0) & 31);
950 int codec = kcontrol->private_value & 3;
955 return snd_ac97_ad18xx_update_pcm_bits(ac97, codec, 0x1f1f, (val1 << 8) | val2);
1010 ac97->bus->codec[ac97->num] = NULL;
1771 /* look for the codec id table matching with the given id */
1818 * snd_ac97_get_short_name - retrieve codec name
1819 * @ac97: the codec instance
1821 * Return: The short identifying name of the codec.
1830 return "unknown codec";
1935 /* register ac97 codec to bus */
1956 /* disconnect ac97 codec */
1978 * @bus: the AC97 bus which codec is attached to
1984 * allocated and initialized from the template. The codec
1987 * The template must include the codec number (num) and address (addr),
2015 if (bus->codec[template->num])
2030 bus->codec[ac97->num] = ac97;
2120 "AC'97 %d access error (not audio or modem codec)\n",
2199 * slots 7+8, so let's hope the codec supports it. */
2216 /* codec specific code (patch) should override these values */
2363 * @ac97: the codec instance
2458 * snd_ac97_suspend - General suspend function for AC97 codec
2461 * Suspends the codec, power down the chip.
2518 * snd_ac97_resume - General resume function for AC97 codec