mirror of
https://github.com/DigitalDevices/dddvb.git
synced 2023-10-10 13:37:43 +02:00
prepare for new redirect
This commit is contained in:
parent
4db55036f3
commit
53c32d47e0
@ -388,9 +388,9 @@ done:
|
||||
|
||||
static int ddb_redirect(u32 i, u32 p)
|
||||
{
|
||||
struct ddb *idev = ddbs[(i >> 4) & 0x1f];
|
||||
struct ddb *idev = ddbs[(i >> 4) & 0x3f];
|
||||
struct ddb_input *input, *input2;
|
||||
struct ddb *pdev = ddbs[(p >> 4) & 0x1f];
|
||||
struct ddb *pdev = ddbs[(p >> 4) & 0x3f];
|
||||
struct ddb_port *port;
|
||||
|
||||
if (!idev->has_dma || !pdev->has_dma)
|
||||
@ -4514,6 +4514,30 @@ static ssize_t redirect_store(struct device *device,
|
||||
return count;
|
||||
}
|
||||
|
||||
/* A L P I AAAAAALLPPPPPPII */
|
||||
/* AAAAAAAA LLLLLLLL PPPPPPII */
|
||||
static ssize_t redirect2_show(struct device *device,
|
||||
struct device_attribute *attr, char *buf)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static ssize_t redirect2_store(struct device *device,
|
||||
struct device_attribute *attr,
|
||||
const char *buf, size_t count)
|
||||
{
|
||||
unsigned int i, p;
|
||||
int res;
|
||||
|
||||
if (sscanf(buf, "%x %x\n", &i, &p) != 2)
|
||||
return -EINVAL;
|
||||
res = ddb_redirect(i, p);
|
||||
if (res < 0)
|
||||
return res;
|
||||
pr_info("redirect: %02x, %02x\n", i, p);
|
||||
return count;
|
||||
}
|
||||
|
||||
static ssize_t gap_show(struct device *device,
|
||||
struct device_attribute *attr, char *buf)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user