Lines Matching refs:ichd
309 unsigned int ichd; /* ich device number */ member
351 struct ichdev ichd[6]; member
768 ichdev = &chip->ichd[i]; in snd_intel8x0_interrupt()
895 if (ichdev->ichd == ICHD_PCMOUT && chip->spdif_idx < 0) in snd_intel8x0_hw_params()
978 if (ichdev->ichd == ICHD_PCMOUT) { in snd_intel8x0_pcm_prepare()
1120 err = snd_intel8x0_pcm_open(substream, &chip->ichd[ICHD_PCMOUT]); in snd_intel8x0_playback_open()
1152 chip->ichd[ICHD_PCMOUT].substream = NULL; in snd_intel8x0_playback_close()
1160 return snd_intel8x0_pcm_open(substream, &chip->ichd[ICHD_PCMIN]); in snd_intel8x0_capture_open()
1167 chip->ichd[ICHD_PCMIN].substream = NULL; in snd_intel8x0_capture_close()
1175 return snd_intel8x0_pcm_open(substream, &chip->ichd[ICHD_MIC]); in snd_intel8x0_mic_open()
1182 chip->ichd[ICHD_MIC].substream = NULL; in snd_intel8x0_mic_close()
1190 return snd_intel8x0_pcm_open(substream, &chip->ichd[ICHD_MIC2]); in snd_intel8x0_mic2_open()
1197 chip->ichd[ICHD_MIC2].substream = NULL; in snd_intel8x0_mic2_close()
1205 return snd_intel8x0_pcm_open(substream, &chip->ichd[ICHD_PCM2IN]); in snd_intel8x0_capture2_open()
1212 chip->ichd[ICHD_PCM2IN].substream = NULL; in snd_intel8x0_capture2_close()
1221 return snd_intel8x0_pcm_open(substream, &chip->ichd[idx]); in snd_intel8x0_spdif_open()
1229 chip->ichd[idx].substream = NULL; in snd_intel8x0_spdif_close()
1245 return snd_intel8x0_pcm_open(substream, &chip->ichd[ALID_AC97SPDIFOUT]); in snd_intel8x0_ali_ac97spdifout_open()
1253 chip->ichd[ALID_AC97SPDIFOUT].substream = NULL; in snd_intel8x0_ali_ac97spdifout_close()
1268 return snd_intel8x0_pcm_open(substream, &chip->ichd[ALID_SPDIFIN]);
1275 chip->ichd[ALID_SPDIFIN].substream = NULL;
1283 return snd_intel8x0_pcm_open(substream, &chip->ichd[ALID_SPDIFOUT]);
1290 chip->ichd[ALID_SPDIFOUT].substream = NULL;
1610 if (! chip->ichd[rec->ac97_idx].pcm) in snd_intel8x0_pcm()
2233 chip->ichd[ICHD_PCMOUT].pcm = &pbus->pcms[0]; in snd_intel8x0_mixer()
2234 chip->ichd[ICHD_PCMIN].pcm = &pbus->pcms[1]; in snd_intel8x0_mixer()
2235 chip->ichd[ICHD_MIC].pcm = &pbus->pcms[2]; in snd_intel8x0_mixer()
2237 chip->ichd[chip->spdif_idx].pcm = &pbus->pcms[3]; in snd_intel8x0_mixer()
2239 chip->ichd[ICHD_PCM2IN].pcm = &pbus->pcms[4]; in snd_intel8x0_mixer()
2240 chip->ichd[ICHD_MIC2].pcm = &pbus->pcms[5]; in snd_intel8x0_mixer()
2244 struct ac97_pcm *pcm = chip->ichd[ICHD_PCM2IN].pcm; in snd_intel8x0_mixer()
2278 chip->ichd[chip->spdif_idx].pcm->rates = SNDRV_PCM_RATE_48000; in snd_intel8x0_mixer()
2508 iputbyte(chip, ICH_REG_OFF_CR + chip->ichd[i].reg_offset, 0x00); in snd_intel8x0_chip_init()
2511 iputbyte(chip, ICH_REG_OFF_CR + chip->ichd[i].reg_offset, ICH_RESETREGS); in snd_intel8x0_chip_init()
2515 if ((igetbyte(chip, ICH_REG_OFF_CR + chip->ichd[i].reg_offset) & ICH_RESETREGS) == 0) in snd_intel8x0_chip_init()
2523 iputdword(chip, ICH_REG_OFF_BDBAR + chip->ichd[i].reg_offset, in snd_intel8x0_chip_init()
2524 chip->ichd[i].bdbar_addr); in snd_intel8x0_chip_init()
2537 iputbyte(chip, ICH_REG_OFF_CR + chip->ichd[i].reg_offset, 0x00); in snd_intel8x0_free()
2540 iputbyte(chip, ICH_REG_OFF_CR + chip->ichd[i].reg_offset, ICH_RESETREGS); in snd_intel8x0_free()
2611 struct ichdev *ichdev = &chip->ichd[i]; in intel8x0_resume()
2615 if (ichdev->ichd == ICHD_PCMOUT) in intel8x0_resume()
2652 ichdev = &chip->ichd[ICHD_PCMOUT]; in intel8x0_measure_ac97_clock()
2962 ichdev = &chip->ichd[i]; in snd_intel8x0_init()
2963 ichdev->ichd = i; in snd_intel8x0_init()
2992 ichdev = &chip->ichd[i]; in snd_intel8x0_init()