Lines Matching defs:codec

69 MODULE_PARM_DESC(ac97_clock, "AC'97 codec clock (0 = allowlist + auto-detect, 1 = force autodetect).");
73 MODULE_PARM_DESC(buggy_semaphore, "Enable workaround for hardwares with problematic codec semaphores.");
77 MODULE_PARM_DESC(xbox, "Set to 1 for Xbox, if you have problems with the AC'97 codec detection.");
167 #define ICH_TCR 0x10000000 /* ICH4: tertiary (AC_SDIN2) codec ready */
176 #define ICH_SIS_TCR 0x00040000 /* SIS: tertiary codec ready */
185 #define ICH_SCR 0x00000200 /* secondary (AC_SDIN1) codec ready */
186 #define ICH_PCR 0x00000100 /* primary (AC_SDIN0) codec ready */
194 #define ICH_REG_ACC_SEMA 0x34 /* byte - codec write semaphore */
195 #define ICH_CAS 0x01 /* codec access semaphore */
202 #define ICH_LDI_MASK 0x00000003 /* last codec read data input */
387 unsigned buggy_semaphore: 1; /* workaround for buggy codec semaphore */
491 * access to AC97 codec via normal i/o (for ICH and SIS7012)
494 static int snd_intel8x0_codec_semaphore(struct intel8x0 *chip, unsigned int codec)
498 if (codec > 2)
503 codec = chip->codec_isr_bits;
505 codec = chip->codec_bit[chip->ac97_sdin[codec]];
508 /* codec ready ? */
509 if ((igetdword(chip, ICHREG(GLOB_STA)) & codec) == 0)
579 unsigned int codec)
583 if (snd_intel8x0_codec_semaphore(chip, codec) >= 0) {
584 iagetword(chip, codec * 0x80);
605 dev_warn(chip->card->dev, "AC97 codec ready timeout.\n");
920 snd_ac97_set_rate(ichdev->pcm->r[0].codec[0], AC97_SPDIF,
1632 /* activate PCM only when associated AC'97 codec */
1884 { /* FIXME: which codec? */
2205 /* detect the secondary codec */
2235 "Unable to initialize codec #%d\n", i);
2240 /* tune up the primary codec */
2272 if (pcm->r[0].codec[i]) {
2273 tmp |= chip->ac97_sdin[pcm->r[0].codec[1]->num] << ICH_DI2L_SHIFT;
2355 * in a warm state but actually it cannot communicate with the codec.
2415 /* wait for any codec ready status.
2428 /* no codec is found */
2430 "codec_ready: codec is not ready [0x%x]\n",
2501 if (reg & 0x80) /* primary codec */