Lines Matching refs:eeprom
644 if (ice->eeprom.data[ICE_EEP2_ACLINK] & VT1724_CFG_PRO_I2S) { in stdclock_set_mclk()
990 if (ice->eeprom.data[ICE_EEP2_ACLINK] & VT1724_CFG_PRO_I2S) { in set_std_hw_rates()
993 if ((ice->eeprom.data[ICE_EEP2_I2S] & 0x08) && !ice->vt1720) in set_std_hw_rates()
1143 if ((ice->eeprom.data[ICE_EEP2_SYSCONF] & VT1724_CFG_ADC_MASK) == in snd_vt1724_pcm_profi()
1326 (ice->eeprom.data[ICE_EEP2_SPDIF] & VT1724_CFG_SPDIF_OUT_INT)) { in snd_vt1724_pcm_spdif()
1332 (ice->eeprom.data[ICE_EEP2_SPDIF] & VT1724_CFG_SPDIF_IN)) { in snd_vt1724_pcm_spdif()
1491 if (!(ice->eeprom.data[ICE_EEP2_ACLINK] & VT1724_CFG_PRO_I2S)) { in snd_vt1724_ac97_mixer()
1527 return (unsigned int)ice->eeprom.data[idx] | \ in eeprom_triple()
1528 ((unsigned int)ice->eeprom.data[idx + 1] << 8) | \ in eeprom_triple()
1529 ((unsigned int)ice->eeprom.data[idx + 2] << 16); in eeprom_triple()
1541 snd_iprintf(buffer, " Subvendor : 0x%x\n", ice->eeprom.subvendor); in snd_vt1724_proc_read()
1542 snd_iprintf(buffer, " Size : %i bytes\n", ice->eeprom.size); in snd_vt1724_proc_read()
1543 snd_iprintf(buffer, " Version : %i\n", ice->eeprom.version); in snd_vt1724_proc_read()
1545 ice->eeprom.data[ICE_EEP2_SYSCONF]); in snd_vt1724_proc_read()
1547 ice->eeprom.data[ICE_EEP2_ACLINK]); in snd_vt1724_proc_read()
1549 ice->eeprom.data[ICE_EEP2_I2S]); in snd_vt1724_proc_read()
1551 ice->eeprom.data[ICE_EEP2_SPDIF]); in snd_vt1724_proc_read()
1553 ice->eeprom.gpiodir); in snd_vt1724_proc_read()
1555 ice->eeprom.gpiomask); in snd_vt1724_proc_read()
1557 ice->eeprom.gpiostate); in snd_vt1724_proc_read()
1558 for (idx = 0x12; idx < ice->eeprom.size; idx++) in snd_vt1724_proc_read()
1560 idx, ice->eeprom.data[idx]); in snd_vt1724_proc_read()
1599 memcpy(ucontrol->value.bytes.data, &ice->eeprom, sizeof(ice->eeprom)); in snd_vt1724_eeprom_get()
1863 (ice->eeprom.data[ICE_EEP2_SPDIF] & VT1724_CFG_SPDIF_IN)) in snd_vt1724_pro_internal_clock_info()
2313 ice->eeprom.subvendor = 0; in snd_vt1724_read_eeprom()
2315 ice->eeprom.subvendor = in snd_vt1724_read_eeprom()
2320 if (ice->eeprom.subvendor == 0 || in snd_vt1724_read_eeprom()
2321 ice->eeprom.subvendor == (unsigned int)-1) { in snd_vt1724_read_eeprom()
2329 ice->eeprom.subvendor = in snd_vt1724_read_eeprom()
2331 if (ice->eeprom.subvendor == 0 || in snd_vt1724_read_eeprom()
2332 ice->eeprom.subvendor == (unsigned int)-1) { in snd_vt1724_read_eeprom()
2346 ice->eeprom.subvendor = c->subvendor; in snd_vt1724_read_eeprom()
2347 } else if (c->subvendor != ice->eeprom.subvendor) in snd_vt1724_read_eeprom()
2354 ice->eeprom.version = 2; in snd_vt1724_read_eeprom()
2355 ice->eeprom.size = c->eeprom_size + 6; in snd_vt1724_read_eeprom()
2356 memcpy(ice->eeprom.data, c->eeprom_data, c->eeprom_size); in snd_vt1724_read_eeprom()
2361 ice->eeprom.subvendor); in snd_vt1724_read_eeprom()
2368 ice->eeprom.size = snd_vt1724_read_i2c(ice, dev, 0x04); in snd_vt1724_read_eeprom()
2369 if (ice->eeprom.size < 6) in snd_vt1724_read_eeprom()
2370 ice->eeprom.size = 32; in snd_vt1724_read_eeprom()
2371 else if (ice->eeprom.size > 32) { in snd_vt1724_read_eeprom()
2373 ice->eeprom.size); in snd_vt1724_read_eeprom()
2376 ice->eeprom.version = snd_vt1724_read_i2c(ice, dev, 0x05); in snd_vt1724_read_eeprom()
2377 if (ice->eeprom.version != 1 && ice->eeprom.version != 2) in snd_vt1724_read_eeprom()
2379 ice->eeprom.version); in snd_vt1724_read_eeprom()
2380 size = ice->eeprom.size - 6; in snd_vt1724_read_eeprom()
2382 ice->eeprom.data[i] = snd_vt1724_read_i2c(ice, dev, i + 6); in snd_vt1724_read_eeprom()
2385 ice->eeprom.gpiomask = eeprom_triple(ice, ICE_EEP2_GPIO_MASK); in snd_vt1724_read_eeprom()
2386 ice->eeprom.gpiostate = eeprom_triple(ice, ICE_EEP2_GPIO_STATE); in snd_vt1724_read_eeprom()
2387 ice->eeprom.gpiodir = eeprom_triple(ice, ICE_EEP2_GPIO_DIR); in snd_vt1724_read_eeprom()
2406 outb(ice->eeprom.data[ICE_EEP2_SYSCONF], ICEREG1724(ice, SYS_CFG)); in snd_vt1724_chip_init()
2407 outb(ice->eeprom.data[ICE_EEP2_ACLINK], ICEREG1724(ice, AC97_CFG)); in snd_vt1724_chip_init()
2408 outb(ice->eeprom.data[ICE_EEP2_I2S], ICEREG1724(ice, I2S_FEATURES)); in snd_vt1724_chip_init()
2409 outb(ice->eeprom.data[ICE_EEP2_SPDIF], ICEREG1724(ice, SPDIF_CFG)); in snd_vt1724_chip_init()
2411 ice->gpio.write_mask = ice->eeprom.gpiomask; in snd_vt1724_chip_init()
2412 ice->gpio.direction = ice->eeprom.gpiodir; in snd_vt1724_chip_init()
2413 snd_vt1724_set_gpio_mask(ice, ice->eeprom.gpiomask); in snd_vt1724_chip_init()
2414 snd_vt1724_set_gpio_dir(ice, ice->eeprom.gpiodir); in snd_vt1724_chip_init()
2415 snd_vt1724_set_gpio_data(ice, ice->eeprom.gpiostate); in snd_vt1724_chip_init()
2654 (c->subvendor == ice->eeprom.subvendor)) { in snd_vt1724_probe()
2747 if (ice->eeprom.data[ICE_EEP2_SYSCONF] & VT1724_CFG_MPU401) { in snd_vt1724_probe()