[media] DVB: call get_property at the end of dtv_property_process_get
- Drivers should be able to override properties returned to the user. - The default values get prefilled from the cache. Signed-off-by: Andreas Oberritter <obi@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
15cc2bb385
commit
e23d9ae343
1 changed files with 8 additions and 8 deletions
|
@ -1196,14 +1196,7 @@ static int dtv_property_process_get(struct dvb_frontend *fe,
|
||||||
struct dtv_property *tvp,
|
struct dtv_property *tvp,
|
||||||
struct file *file)
|
struct file *file)
|
||||||
{
|
{
|
||||||
int r = 0;
|
int r;
|
||||||
|
|
||||||
/* Allow the frontend to validate incoming properties */
|
|
||||||
if (fe->ops.get_property)
|
|
||||||
r = fe->ops.get_property(fe, tvp);
|
|
||||||
|
|
||||||
if (r < 0)
|
|
||||||
return r;
|
|
||||||
|
|
||||||
switch(tvp->cmd) {
|
switch(tvp->cmd) {
|
||||||
case DTV_FREQUENCY:
|
case DTV_FREQUENCY:
|
||||||
|
@ -1323,6 +1316,13 @@ static int dtv_property_process_get(struct dvb_frontend *fe,
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Allow the frontend to override outgoing properties */
|
||||||
|
if (fe->ops.get_property) {
|
||||||
|
r = fe->ops.get_property(fe, tvp);
|
||||||
|
if (r < 0)
|
||||||
|
return r;
|
||||||
|
}
|
||||||
|
|
||||||
dtv_property_dump(tvp);
|
dtv_property_dump(tvp);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue