Lines Matching refs:ad_read
206 static int ad_read(ad1848_info * devc, int reg)
275 while (timeout > 0 && !(ad_read(devc, 11) & 0x20))
277 if (!(ad_read(devc, 11) & 0x20))
281 while (timeout > 0 && (ad_read(devc, 11) & 0x20))
283 if (ad_read(devc, 11) & 0x20)
299 prev = devc->saved_regs[i] = ad_read(devc, i);
333 acal = ad_read(devc, 9);
414 ad_write(devc, 0, (ad_read(devc, 0) & 0x3f) | recdev);
415 ad_write(devc, 1, (ad_read(devc, 1) & 0x3f) | recdev);
436 val = ad_read(devc, devc->mix_devices[i][j].recreg);
515 val = ad_read(devc, regoffs);
518 muteval = ad_read(devc, muteregoffs);
658 ad_write(devc, 26, ad_read(devc, 26) & ~0x40); /* Unmute mono out */
660 ad_write(devc, 26, ad_read(devc, 26) | 0x40); /* Mute mono out */
691 ad_write(devc, 26, ad_read(devc, 26) & ~0x40); /* Unmute mono out */
693 ad_write(devc, 26, ad_read(devc, 26) | 0x40); /* Mute mono out */
1152 old_fs = ad_read(devc, 8);
1156 tmp = ad_read(devc, 16);
1223 tmp = ad_read(devc, 16);
1235 old_fs = ad_read(devc, 28);
1257 unsigned char tmp = portc->speed_bits | (ad_read(devc, 8) & 0xf0);
1275 old_fs = ad_read(devc, 8);
1315 unsigned char bits = ad_read(devc, 9);
1330 if (!(ad_read(devc, 9) & 0x02))
1344 if (ad_read(devc, 11) & 0x10)
1346 ad_write(devc, 9, ad_read(devc, 9) & ~0x02); /* Stop capture */
1366 if (!(ad_read(devc, 9) & 0x01))
1379 if (ad_read(devc, 11) & 0x10)
1381 ad_write(devc, 9, ad_read(devc, 9) & ~0x01); /* Stop playback */
1407 tmp = old = ad_read(devc, 9);
1486 ad_write(devc, 12, ad_read(devc, 12) | 0x50);
1488 ad_write(devc, 12, ad_read(devc, 12) | 0x40); /* Mode2 = enabled */
1503 ad_write(devc, 9, ad_read(devc, 9) & ~0x04); /* Dual DMA mode */
1505 ad_write(devc, 9, ad_read(devc, 9) | 0x04); /* Single DMA mode */
1508 ad_write(devc, 27, ad_read(devc, 27) | 0x08); /* Alternate freq select enabled */
1520 ad_write(devc, 9, ad_read(devc, 9) | 0x04); /* Single DMA mode */
1522 ad_write(devc, 12, ad_read(devc, 12) | 0x40); /* Mode2 = enabled */
1640 if ((tmp1 = ad_read(devc, 0)) != 0xaa || (tmp2 = ad_read(devc, 1)) != 0x45)
1654 if ((tmp1 = ad_read(devc, 0)) != 0x45 || (tmp2 = ad_read(devc, 1)) != 0xaa)
1671 tmp = ad_read(devc, 12);
1674 if ((tmp & 0x0f) != ((tmp1 = ad_read(devc, 12)) & 0x0f))
1704 if ((tmp1 = ad_read(devc, i)) != (tmp2 = ad_read(devc, i + 16)))
1729 tmp1 = ad_read(devc, 12);
1749 if ((tmp1 = ad_read(devc, 16)) != 0x45) /* No change -> CS4231? */
1752 if ((tmp1 = ad_read(devc, 16)) == 0xaa) /* Rotten bits? */
1763 tmp1 = ad_read(devc, 25); /* Original bits */
1765 if ((ad_read(devc, 25) & 0xe7) == (tmp1 & 0xe7))
1782 id = ad_read(devc, 25);
1784 id = ad_read(devc, 25);
1786 id = ad_read(devc, 25);
1787 DDB(printk("ad1848_detect() - step J (%02x/%02x)\n", id, ad_read(devc, 25)));
1797 unsigned char tmp = ad_read(devc, 23);
1805 else if (ad_read(devc, 23) != tmp) /* AD1845 ? */
1816 ad_write(devc, 12, ad_read(devc, 12) & ~0x40); /* Mode2 off */
1826 ad_write(devc, 12, ad_read(devc, 12) | 0x60); /* switch to mode 3 */
1829 ad_write(devc, 12, ad_read(devc, 12) & ~0x60); /* back to mode 0 */
1889 DDB(printk("ad1848: I25 = %02x/%02x\n", ad_read(devc, 25), ad_read(devc, 25) & 0xe7));
1919 if ((tmp1 = ad_read(devc, i)) != (tmp2 = ad_read(devc, i + 16))) {
2041 unsigned char tmp = ad_read(devc, 16);
2115 ad_write(devc, 29, (ad_read(devc, 29) & 0x1f) | (arg << 5));
2242 alt_stat = ad_read(devc, 24);
2243 ad_write(devc, 24, ad_read(devc, 24) & ~alt_stat); /* Selective ack */
2724 else if (ad_read(devc, 8) & 0x01)
2739 ad_write(devc, 16, ad_read(devc, 16) | 0x40); /* Start the timer */
2763 ad_write(devc, 16, ad_read(devc, 16) & ~0x40);
2777 ad_write(devc, 16, ad_read(devc, 16) | 0x40);