Lines Matching refs:ichd
352 unsigned int ichd; /* ich device number */ member
394 struct ichdev ichd[6]; member
828 ichdev = &chip->ichd[i]; in snd_intel8x0_interrupt()
968 if (ichdev->ichd == ICHD_PCMOUT && chip->spdif_idx < 0) in snd_intel8x0_hw_params()
1055 if (ichdev->ichd == ICHD_PCMOUT) { in snd_intel8x0_pcm_prepare()
1195 err = snd_intel8x0_pcm_open(substream, &chip->ichd[ICHD_PCMOUT]); in snd_intel8x0_playback_open()
1227 chip->ichd[ICHD_PCMOUT].substream = NULL; in snd_intel8x0_playback_close()
1235 return snd_intel8x0_pcm_open(substream, &chip->ichd[ICHD_PCMIN]); in snd_intel8x0_capture_open()
1242 chip->ichd[ICHD_PCMIN].substream = NULL; in snd_intel8x0_capture_close()
1250 return snd_intel8x0_pcm_open(substream, &chip->ichd[ICHD_MIC]); in snd_intel8x0_mic_open()
1257 chip->ichd[ICHD_MIC].substream = NULL; in snd_intel8x0_mic_close()
1265 return snd_intel8x0_pcm_open(substream, &chip->ichd[ICHD_MIC2]); in snd_intel8x0_mic2_open()
1272 chip->ichd[ICHD_MIC2].substream = NULL; in snd_intel8x0_mic2_close()
1280 return snd_intel8x0_pcm_open(substream, &chip->ichd[ICHD_PCM2IN]); in snd_intel8x0_capture2_open()
1287 chip->ichd[ICHD_PCM2IN].substream = NULL; in snd_intel8x0_capture2_close()
1296 return snd_intel8x0_pcm_open(substream, &chip->ichd[idx]); in snd_intel8x0_spdif_open()
1304 chip->ichd[idx].substream = NULL; in snd_intel8x0_spdif_close()
1320 return snd_intel8x0_pcm_open(substream, &chip->ichd[ALID_AC97SPDIFOUT]); in snd_intel8x0_ali_ac97spdifout_open()
1328 chip->ichd[ALID_AC97SPDIFOUT].substream = NULL; in snd_intel8x0_ali_ac97spdifout_close()
1343 return snd_intel8x0_pcm_open(substream, &chip->ichd[ALID_SPDIFIN]);
1350 chip->ichd[ALID_SPDIFIN].substream = NULL;
1358 return snd_intel8x0_pcm_open(substream, &chip->ichd[ALID_SPDIFOUT]);
1365 chip->ichd[ALID_SPDIFOUT].substream = NULL;
1694 if (! chip->ichd[rec->ac97_idx].pcm) in snd_intel8x0_pcm()
2315 chip->ichd[ICHD_PCMOUT].pcm = &pbus->pcms[0]; in snd_intel8x0_mixer()
2316 chip->ichd[ICHD_PCMIN].pcm = &pbus->pcms[1]; in snd_intel8x0_mixer()
2317 chip->ichd[ICHD_MIC].pcm = &pbus->pcms[2]; in snd_intel8x0_mixer()
2319 chip->ichd[chip->spdif_idx].pcm = &pbus->pcms[3]; in snd_intel8x0_mixer()
2321 chip->ichd[ICHD_PCM2IN].pcm = &pbus->pcms[4]; in snd_intel8x0_mixer()
2322 chip->ichd[ICHD_MIC2].pcm = &pbus->pcms[5]; in snd_intel8x0_mixer()
2326 struct ac97_pcm *pcm = chip->ichd[ICHD_PCM2IN].pcm; in snd_intel8x0_mixer()
2360 chip->ichd[chip->spdif_idx].pcm->rates = SNDRV_PCM_RATE_48000; in snd_intel8x0_mixer()
2588 iputbyte(chip, ICH_REG_OFF_CR + chip->ichd[i].reg_offset, 0x00); in snd_intel8x0_chip_init()
2591 iputbyte(chip, ICH_REG_OFF_CR + chip->ichd[i].reg_offset, ICH_RESETREGS); in snd_intel8x0_chip_init()
2595 if ((igetbyte(chip, ICH_REG_OFF_CR + chip->ichd[i].reg_offset) & ICH_RESETREGS) == 0) in snd_intel8x0_chip_init()
2603 iputdword(chip, ICH_REG_OFF_BDBAR + chip->ichd[i].reg_offset, in snd_intel8x0_chip_init()
2604 chip->ichd[i].bdbar_addr); in snd_intel8x0_chip_init()
2616 iputbyte(chip, ICH_REG_OFF_CR + chip->ichd[i].reg_offset, 0x00); in snd_intel8x0_free()
2619 iputbyte(chip, ICH_REG_OFF_CR + chip->ichd[i].reg_offset, ICH_RESETREGS); in snd_intel8x0_free()
2663 struct ichdev *ichdev = &chip->ichd[i]; in intel8x0_suspend()
2721 struct ichdev *ichdev = &chip->ichd[i]; in intel8x0_resume()
2732 struct ichdev *ichdev = &chip->ichd[i]; in intel8x0_resume()
2736 if (ichdev->ichd == ICHD_PCMOUT) in intel8x0_resume()
2775 ichdev = &chip->ichd[ICHD_PCMOUT]; in intel8x0_measure_ac97_clock()
3111 ichdev = &chip->ichd[i]; in snd_intel8x0_create()
3112 ichdev->ichd = i; in snd_intel8x0_create()
3145 ichdev = &chip->ichd[i]; in snd_intel8x0_create()