提交 c1af23c4 编写于 作者: H Hans de Goede 提交者: Mauro Carvalho Chehab

[media] radio-si470x: restore ctrl settings after suspend/resume

Signed-off-by: NHans de Goede <hdegoede@redhat.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 e0a9b177
...@@ -792,11 +792,16 @@ static int si470x_usb_driver_suspend(struct usb_interface *intf, ...@@ -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;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册