Lines Matching refs:aci

76 	struct snd_miro_aci *aci;  member
86 static int rds_waitread(struct snd_miro_aci *aci) in rds_waitread() argument
92 byte = inb(aci->aci_port + ACI_REG_RDS); in rds_waitread()
105 static int rds_rawwrite(struct snd_miro_aci *aci, u8 byte) in rds_rawwrite() argument
107 if (rds_waitread(aci) >= 0) { in rds_rawwrite()
108 outb(byte, aci->aci_port + ACI_REG_RDS); in rds_rawwrite()
114 static int rds_write(struct snd_miro_aci *aci, u8 byte) in rds_write() argument
124 rds_rawwrite(aci, sendbuffer[i]); in rds_write()
128 static int rds_readcycle_nowait(struct snd_miro_aci *aci) in rds_readcycle_nowait() argument
130 outb(0, aci->aci_port + ACI_REG_RDS); in rds_readcycle_nowait()
131 return rds_waitread(aci); in rds_readcycle_nowait()
134 static int rds_readcycle(struct snd_miro_aci *aci) in rds_readcycle() argument
136 if (rds_rawwrite(aci, 0) < 0) in rds_readcycle()
138 return rds_waitread(aci); in rds_readcycle()
141 static int rds_ack(struct snd_miro_aci *aci) in rds_ack() argument
143 int i = rds_readcycle(aci); in rds_ack()
152 static int rds_cmd(struct snd_miro_aci *aci, u8 cmd, u8 databuffer[], u8 datasize) in rds_cmd() argument
156 rds_write(aci, cmd); in rds_cmd()
161 if (rds_ack(aci)) in rds_cmd()
168 if (rds_waitread(aci) < 0) in rds_cmd()
174 j = rds_readcycle_nowait(aci); in rds_cmd()
186 struct snd_miro_aci *aci = dev->aci; in pcm20_setfreq() local
189 if (!(aci->aci_version == 0x07 || aci->aci_version >= 0xb0)) in pcm20_setfreq()
195 rds_cmd(aci, RDS_RESET, NULL, 0); in pcm20_setfreq()
196 return snd_aci_cmd(aci, ACI_WRITE_TUNE, freql, freqh); in pcm20_setfreq()
237 res = snd_aci_cmd(dev->aci, ACI_READ_TUNERSTATION, -1, -1); in vidioc_g_tuner()
241 res = snd_aci_cmd(dev->aci, ACI_READ_TUNERSTEREO, -1, -1); in vidioc_g_tuner()
247 res = rds_cmd(dev->aci, RDS_RXVALUE, &buf, 1); in vidioc_g_tuner()
264 snd_aci_cmd(dev->aci, ACI_SET_TUNERMONO, in vidioc_s_tuner()
302 snd_aci_cmd(dev->aci, ACI_SET_TUNERMUTE, ctrl->val, -1); in pcm20_s_ctrl()
325 res = rds_cmd(dev->aci, RDS_RXVALUE, &buf, 1); in pcm20_thread()
350 res = rds_cmd(dev->aci, RDS_STATUS, &buf, 1); in pcm20_thread()
354 res = rds_cmd(dev->aci, RDS_STATIONNAME, text_buffer, 8); in pcm20_thread()
362 res = rds_cmd(dev->aci, RDS_PTYTATP, &pty, 1); in pcm20_thread()
371 res = rds_cmd(dev->aci, RDS_TEXT, text_buffer, 65); in pcm20_thread()
439 dev->aci = snd_aci_get_aci(); in pcm20_init()
440 if (dev->aci == NULL) { in pcm20_init()
485 snd_aci_cmd(dev->aci, ACI_SET_TUNERMONO, in pcm20_init()
509 snd_aci_cmd(dev->aci, ACI_SET_TUNERMUTE, 1, -1); in pcm20_cleanup()