Lines Matching refs:ichd

309 	unsigned int ichd;			/* ich device number */  member
351 struct ichdev ichd[6]; member
771 ichdev = &chip->ichd[i]; in snd_intel8x0_interrupt()
898 if (ichdev->ichd == ICHD_PCMOUT && chip->spdif_idx < 0) in snd_intel8x0_hw_params()
981 if (ichdev->ichd == ICHD_PCMOUT) { in snd_intel8x0_pcm_prepare()
1123 err = snd_intel8x0_pcm_open(substream, &chip->ichd[ICHD_PCMOUT]); in snd_intel8x0_playback_open()
1155 chip->ichd[ICHD_PCMOUT].substream = NULL; in snd_intel8x0_playback_close()
1163 return snd_intel8x0_pcm_open(substream, &chip->ichd[ICHD_PCMIN]); in snd_intel8x0_capture_open()
1170 chip->ichd[ICHD_PCMIN].substream = NULL; in snd_intel8x0_capture_close()
1178 return snd_intel8x0_pcm_open(substream, &chip->ichd[ICHD_MIC]); in snd_intel8x0_mic_open()
1185 chip->ichd[ICHD_MIC].substream = NULL; in snd_intel8x0_mic_close()
1193 return snd_intel8x0_pcm_open(substream, &chip->ichd[ICHD_MIC2]); in snd_intel8x0_mic2_open()
1200 chip->ichd[ICHD_MIC2].substream = NULL; in snd_intel8x0_mic2_close()
1208 return snd_intel8x0_pcm_open(substream, &chip->ichd[ICHD_PCM2IN]); in snd_intel8x0_capture2_open()
1215 chip->ichd[ICHD_PCM2IN].substream = NULL; in snd_intel8x0_capture2_close()
1224 return snd_intel8x0_pcm_open(substream, &chip->ichd[idx]); in snd_intel8x0_spdif_open()
1232 chip->ichd[idx].substream = NULL; in snd_intel8x0_spdif_close()
1248 return snd_intel8x0_pcm_open(substream, &chip->ichd[ALID_AC97SPDIFOUT]); in snd_intel8x0_ali_ac97spdifout_open()
1256 chip->ichd[ALID_AC97SPDIFOUT].substream = NULL; in snd_intel8x0_ali_ac97spdifout_close()
1271 return snd_intel8x0_pcm_open(substream, &chip->ichd[ALID_SPDIFIN]);
1278 chip->ichd[ALID_SPDIFIN].substream = NULL;
1286 return snd_intel8x0_pcm_open(substream, &chip->ichd[ALID_SPDIFOUT]);
1293 chip->ichd[ALID_SPDIFOUT].substream = NULL;
1613 if (! chip->ichd[rec->ac97_idx].pcm) in snd_intel8x0_pcm()
2236 chip->ichd[ICHD_PCMOUT].pcm = &pbus->pcms[0]; in snd_intel8x0_mixer()
2237 chip->ichd[ICHD_PCMIN].pcm = &pbus->pcms[1]; in snd_intel8x0_mixer()
2238 chip->ichd[ICHD_MIC].pcm = &pbus->pcms[2]; in snd_intel8x0_mixer()
2240 chip->ichd[chip->spdif_idx].pcm = &pbus->pcms[3]; in snd_intel8x0_mixer()
2242 chip->ichd[ICHD_PCM2IN].pcm = &pbus->pcms[4]; in snd_intel8x0_mixer()
2243 chip->ichd[ICHD_MIC2].pcm = &pbus->pcms[5]; in snd_intel8x0_mixer()
2247 struct ac97_pcm *pcm = chip->ichd[ICHD_PCM2IN].pcm; in snd_intel8x0_mixer()
2281 chip->ichd[chip->spdif_idx].pcm->rates = SNDRV_PCM_RATE_48000; in snd_intel8x0_mixer()
2511 iputbyte(chip, ICH_REG_OFF_CR + chip->ichd[i].reg_offset, 0x00); in snd_intel8x0_chip_init()
2514 iputbyte(chip, ICH_REG_OFF_CR + chip->ichd[i].reg_offset, ICH_RESETREGS); in snd_intel8x0_chip_init()
2518 if ((igetbyte(chip, ICH_REG_OFF_CR + chip->ichd[i].reg_offset) & ICH_RESETREGS) == 0) in snd_intel8x0_chip_init()
2526 iputdword(chip, ICH_REG_OFF_BDBAR + chip->ichd[i].reg_offset, in snd_intel8x0_chip_init()
2527 chip->ichd[i].bdbar_addr); in snd_intel8x0_chip_init()
2540 iputbyte(chip, ICH_REG_OFF_CR + chip->ichd[i].reg_offset, 0x00); in snd_intel8x0_free()
2543 iputbyte(chip, ICH_REG_OFF_CR + chip->ichd[i].reg_offset, ICH_RESETREGS); in snd_intel8x0_free()
2615 struct ichdev *ichdev = &chip->ichd[i]; in intel8x0_resume()
2619 if (ichdev->ichd == ICHD_PCMOUT) in intel8x0_resume()
2660 ichdev = &chip->ichd[ICHD_PCMOUT]; in intel8x0_measure_ac97_clock()
2970 ichdev = &chip->ichd[i]; in snd_intel8x0_init()
2971 ichdev->ichd = i; in snd_intel8x0_init()
3000 ichdev = &chip->ichd[i]; in snd_intel8x0_init()