Lines Matching refs:ichd
356 unsigned int ichd; /* ich device number */ member
398 struct ichdev ichd[6]; member
832 ichdev = &chip->ichd[i]; in snd_intel8x0_interrupt()
972 if (ichdev->ichd == ICHD_PCMOUT && chip->spdif_idx < 0) in snd_intel8x0_hw_params()
1059 if (ichdev->ichd == ICHD_PCMOUT) { in snd_intel8x0_pcm_prepare()
1199 err = snd_intel8x0_pcm_open(substream, &chip->ichd[ICHD_PCMOUT]); in snd_intel8x0_playback_open()
1231 chip->ichd[ICHD_PCMOUT].substream = NULL; in snd_intel8x0_playback_close()
1239 return snd_intel8x0_pcm_open(substream, &chip->ichd[ICHD_PCMIN]); in snd_intel8x0_capture_open()
1246 chip->ichd[ICHD_PCMIN].substream = NULL; in snd_intel8x0_capture_close()
1254 return snd_intel8x0_pcm_open(substream, &chip->ichd[ICHD_MIC]); in snd_intel8x0_mic_open()
1261 chip->ichd[ICHD_MIC].substream = NULL; in snd_intel8x0_mic_close()
1269 return snd_intel8x0_pcm_open(substream, &chip->ichd[ICHD_MIC2]); in snd_intel8x0_mic2_open()
1276 chip->ichd[ICHD_MIC2].substream = NULL; in snd_intel8x0_mic2_close()
1284 return snd_intel8x0_pcm_open(substream, &chip->ichd[ICHD_PCM2IN]); in snd_intel8x0_capture2_open()
1291 chip->ichd[ICHD_PCM2IN].substream = NULL; in snd_intel8x0_capture2_close()
1300 return snd_intel8x0_pcm_open(substream, &chip->ichd[idx]); in snd_intel8x0_spdif_open()
1308 chip->ichd[idx].substream = NULL; in snd_intel8x0_spdif_close()
1324 return snd_intel8x0_pcm_open(substream, &chip->ichd[ALID_AC97SPDIFOUT]); in snd_intel8x0_ali_ac97spdifout_open()
1332 chip->ichd[ALID_AC97SPDIFOUT].substream = NULL; in snd_intel8x0_ali_ac97spdifout_close()
1347 return snd_intel8x0_pcm_open(substream, &chip->ichd[ALID_SPDIFIN]);
1354 chip->ichd[ALID_SPDIFIN].substream = NULL;
1362 return snd_intel8x0_pcm_open(substream, &chip->ichd[ALID_SPDIFOUT]);
1369 chip->ichd[ALID_SPDIFOUT].substream = NULL;
1698 if (! chip->ichd[rec->ac97_idx].pcm) in snd_intel8x0_pcm()
2319 chip->ichd[ICHD_PCMOUT].pcm = &pbus->pcms[0]; in snd_intel8x0_mixer()
2320 chip->ichd[ICHD_PCMIN].pcm = &pbus->pcms[1]; in snd_intel8x0_mixer()
2321 chip->ichd[ICHD_MIC].pcm = &pbus->pcms[2]; in snd_intel8x0_mixer()
2323 chip->ichd[chip->spdif_idx].pcm = &pbus->pcms[3]; in snd_intel8x0_mixer()
2325 chip->ichd[ICHD_PCM2IN].pcm = &pbus->pcms[4]; in snd_intel8x0_mixer()
2326 chip->ichd[ICHD_MIC2].pcm = &pbus->pcms[5]; in snd_intel8x0_mixer()
2330 struct ac97_pcm *pcm = chip->ichd[ICHD_PCM2IN].pcm; in snd_intel8x0_mixer()
2364 chip->ichd[chip->spdif_idx].pcm->rates = SNDRV_PCM_RATE_48000; in snd_intel8x0_mixer()
2592 iputbyte(chip, ICH_REG_OFF_CR + chip->ichd[i].reg_offset, 0x00); in snd_intel8x0_chip_init()
2595 iputbyte(chip, ICH_REG_OFF_CR + chip->ichd[i].reg_offset, ICH_RESETREGS); in snd_intel8x0_chip_init()
2599 if ((igetbyte(chip, ICH_REG_OFF_CR + chip->ichd[i].reg_offset) & ICH_RESETREGS) == 0) in snd_intel8x0_chip_init()
2607 iputdword(chip, ICH_REG_OFF_BDBAR + chip->ichd[i].reg_offset, in snd_intel8x0_chip_init()
2608 chip->ichd[i].bdbar_addr); in snd_intel8x0_chip_init()
2620 iputbyte(chip, ICH_REG_OFF_CR + chip->ichd[i].reg_offset, 0x00); in snd_intel8x0_free()
2623 iputbyte(chip, ICH_REG_OFF_CR + chip->ichd[i].reg_offset, ICH_RESETREGS); in snd_intel8x0_free()
2667 struct ichdev *ichdev = &chip->ichd[i]; in intel8x0_suspend()
2725 struct ichdev *ichdev = &chip->ichd[i]; in intel8x0_resume()
2736 struct ichdev *ichdev = &chip->ichd[i]; in intel8x0_resume()
2740 if (ichdev->ichd == ICHD_PCMOUT) in intel8x0_resume()
2779 ichdev = &chip->ichd[ICHD_PCMOUT]; in intel8x0_measure_ac97_clock()
3127 ichdev = &chip->ichd[i]; in snd_intel8x0_create()
3128 ichdev->ichd = i; in snd_intel8x0_create()
3161 ichdev = &chip->ichd[i]; in snd_intel8x0_create()