mirror of
https://github.com/torvalds/linux.git
synced 2024-12-17 00:21:32 +00:00
[media] radio-si470x: restore ctrl settings after suspend/resume
Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
e0a9b1770b
commit
c1af23c4f7
@ -792,11 +792,16 @@ static int si470x_usb_driver_suspend(struct usb_interface *intf,
|
|||||||
static int si470x_usb_driver_resume(struct usb_interface *intf)
|
static int si470x_usb_driver_resume(struct usb_interface *intf)
|
||||||
{
|
{
|
||||||
struct si470x_device *radio = usb_get_intfdata(intf);
|
struct si470x_device *radio = usb_get_intfdata(intf);
|
||||||
|
int ret;
|
||||||
|
|
||||||
dev_info(&intf->dev, "resuming now...\n");
|
dev_info(&intf->dev, "resuming now...\n");
|
||||||
|
|
||||||
/* start radio */
|
/* start radio */
|
||||||
return si470x_start_usb(radio);
|
ret = si470x_start_usb(radio);
|
||||||
|
if (ret == 0)
|
||||||
|
v4l2_ctrl_handler_setup(&radio->hdl);
|
||||||
|
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user