1
0
mirror of https://github.com/DigitalDevices/dddvb.git synced 2023-10-10 13:37:43 +02:00

implement ca_read/write

This commit is contained in:
Ralph Metzler 2019-08-01 11:39:35 +02:00
parent 36e3205574
commit 1cb42ad5bf

View File

@ -597,13 +597,16 @@ static int init_ca(struct dddvb *dd, int a, int f, int fd)
int dddvb_ca_write(struct dddvb *dd, uint32_t nr, uint8_t *buf, uint32_t len) int dddvb_ca_write(struct dddvb *dd, uint32_t nr, uint8_t *buf, uint32_t len)
{ {
dbgprintf(DEBUG_CA, "ca_write\n"); struct dddvb_ca *ca = &dd->dvbca[nr];
return 0;
return write(ca->wfd, buf, len);
} }
int dddvb_ca_read(struct dddvb *dd, uint32_t nr, uint8_t *buf, uint32_t len) int dddvb_ca_read(struct dddvb *dd, uint32_t nr, uint8_t *buf, uint32_t len)
{ {
dbgprintf(DEBUG_CA, "ca_read\n"); struct dddvb_ca *ca = &dd->dvbca[nr];
return read(ca->rfd, buf, len);
return 0; return 0;
} }