Lines Matching refs:tfd
94 int tfd;
214 tfd = open(dev_name, O_RDONLY);
215 if (tfd < 0) {
222 if (ioctl(tfd, TVTUNER_SETAFC, &afc) < 0) {
223 perror("ioctl(tfd, TVTUNER_SETAFC) failed.");
228 if (ioctl(tfd, METEORSINPUT, &device) < 0) {
229 perror("ioctl(tfd, METEORSINPUT) failed.");
234 if (ioctl(tfd, BT848_SAUDIO, &audio) < 0) {
235 perror("ioctl(tfd, BT848_SAUDIO) failed.");
239 if (ioctl(tfd, BT848_GAUDIO, &audio) < 0) {
240 perror("ioctl(tfd, BT848_GAUDIO) failed.");
248 if (ioctl(tfd, BT848_SCAPAREA, &cap) < 0) {
249 perror("ioctl(tfd, BT848_SCAPAREA) failed.");
255 if (ioctl(tfd, TVTUNER_SETTYPE, &channel_set) < 0) {
256 perror("ioctl(tfd, TVTUNER_SETTYPE) failed.");
261 if (ioctl(tfd, TVTUNER_SETCHNL, &channel) < 0) {
262 perror("ioctl(tfd, TVTUNER_SETCHNL) failed.");
270 if (ioctl(tfd, RADIO_SETFREQ, &freq) < 0) {
271 perror("ioctl(tfd, RADIO_SETFREQ) failed.");
278 if (ioctl(tfd, TVTUNER_SETFREQ, &freq) < 0) {
279 perror("ioctl(tfd, TVTUNER_SETFREQ) failed.");
285 close(tfd);