Lines Matching defs:codec

46 MODULE_PARM_DESC(ac97_clock, "AC'97 codec clock (0 = allowlist + auto-detect, 1 = force autodetect).");
50 MODULE_PARM_DESC(buggy_semaphore, "Enable workaround for hardwares with problematic codec semaphores.");
54 MODULE_PARM_DESC(xbox, "Set to 1 for Xbox, if you have problems with the AC'97 codec detection.");
144 #define ICH_TCR 0x10000000 /* ICH4: tertiary (AC_SDIN2) codec ready */
153 #define ICH_SIS_TCR 0x00040000 /* SIS: tertiary codec ready */
162 #define ICH_SCR 0x00000200 /* secondary (AC_SDIN1) codec ready */
163 #define ICH_PCR 0x00000100 /* primary (AC_SDIN0) codec ready */
171 #define ICH_REG_ACC_SEMA 0x34 /* byte - codec write semaphore */
172 #define ICH_CAS 0x01 /* codec access semaphore */
179 #define ICH_LDI_MASK 0x00000003 /* last codec read data input */
364 unsigned buggy_semaphore: 1; /* workaround for buggy codec semaphore */
468 * access to AC97 codec via normal i/o (for ICH and SIS7012)
471 static int snd_intel8x0_codec_semaphore(struct intel8x0 *chip, unsigned int codec)
475 if (codec > 2)
480 codec = chip->codec_isr_bits;
482 codec = chip->codec_bit[chip->ac97_sdin[codec]];
485 /* codec ready ? */
486 if ((igetdword(chip, ICHREG(GLOB_STA)) & codec) == 0)
557 unsigned int codec)
561 if (snd_intel8x0_codec_semaphore(chip, codec) >= 0) {
562 iagetword(chip, codec * 0x80);
584 dev_warn(chip->card->dev, "AC97 codec ready timeout.\n");
899 snd_ac97_set_rate(ichdev->pcm->r[0].codec[0], AC97_SPDIF,
1612 /* activate PCM only when associated AC'97 codec */
1864 { /* FIXME: which codec? */
2185 /* detect the secondary codec */
2217 "Unable to initialize codec #%d\n", i);
2222 /* tune up the primary codec */
2254 if (pcm->r[0].codec[i]) {
2255 tmp |= chip->ac97_sdin[pcm->r[0].codec[1]->num] << ICH_DI2L_SHIFT;
2337 * in a warm state but actually it cannot communicate with the codec.
2397 /* wait for any codec ready status.
2410 /* no codec is found */
2412 "codec_ready: codec is not ready [0x%x]\n",
2483 if (reg & 0x80) /* primary codec */