Lines Matching defs:codec
38 * codec support problem.
133 /* codec detection constant indicating the interrupt flags */
506 /* pass request to AC'97 codec code */
517 /* pass request to AC'97 codec code */
527 /* pass request to AC'97 codec code */
923 /* check if we are looking for codec detection */
1160 struct auixp_codec *codec;
1169 codec = &sc->sc_codec[0];
1170 if (!codec->present) {
1181 sc->has_4ch = AC97_IS_4CH(codec->codec_if);
1182 sc->has_6ch = AC97_IS_6CH(codec->codec_if);
1183 sc->is_fixed = AC97_IS_FIXED_RATE(codec->codec_if);
1184 sc->has_spdif = AC97_HAS_SPDIF(codec->codec_if);
1209 aprint_normal_dev(sc->sc_dev, "codec spdif support detected but disabled "
1229 /* XXX wise? look at other multiple-codec
1231 codec = &sc->sc_codec[codec_nr];
1232 if (codec->present)
1233 audio_attach_mi(&auixp_hw_if, codec, sc->sc_dev);
1325 * codec handling
1329 * settings? XXX does NetBSD support more than one audio codec? XXX
1363 /* build up command for reading codec register */
1374 /* wait until codec info is clocked in */
1379 DPRINTF(("read ac'97 codec reg 0x%x = 0x%08x\n",
1390 printf("%s: codec read timeout! (reg %x)\n",
1406 DPRINTF(("write ac'97 codec reg 0x%x = 0x%08x\n", reg, data));
1414 /* build up command for writing codec register */
1455 /* wait until all codec transfers are done */
1477 struct auixp_codec *codec;
1500 printf("%s: WARNING: timeout during codec detection; "
1509 codec = &sc->sc_codec[codec_nr];
1510 memset(codec, 0, sizeof(struct auixp_codec));
1512 codec->sc = sc;
1513 codec->codec_nr = codec_nr;
1514 codec->present = 0;
1516 codec->host_if.arg = codec;
1517 codec->host_if.attach = auixp_attach_codec;
1518 codec->host_if.read = auixp_read_codec;
1519 codec->host_if.write = auixp_write_codec;
1520 codec->host_if.reset = auixp_reset_codec;
1521 codec->host_if.flags = auixp_flags_codec;
1525 /* codec 0 present */
1526 DPRINTF(("auixp : YAY! codec 0 present!\n"));
1533 /* codec 1 present */
1534 DPRINTF(("auixp : YAY! codec 1 present!\n"));
1541 /* codec 2 present */
1542 DPRINTF(("auixp : YAY! codec 2 present!\n"));