media: em28xx: fix a regression with HVR-950
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 9 Mar 2018 12:21:45 +0000 (07:21 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Aug 2018 05:47:55 +0000 (07:47 +0200)
commitaad7993a563b9f183513ab3a1ae3e9c3f240fdf1
tree7c9803dccbaac21d54334c81d3c7d57b4cdbbf82
parent4fc891a62cecb43b0be4c2a8f676d74efba6131f
media: em28xx: fix a regression with HVR-950

[ Upstream commit 509f89652f83e834b3ef7a083e2eeac812b055f0 ]

Commit be7fd3c3a8c5 ("media: em28xx: Hauppauge DualHD second tuner
functionality") removed the logic with sets the alternate for the DVB
device. Without setting the right alternate, the device won't be
able to submit URBs, and userspace fails with -EMSGSIZE:

ERROR     DMX_SET_PES_FILTER failed (PID = 0x2000): 90 Message too long

Tested with Hauppauge HVR-950 model A1C0.

Fixes: be7fd3c3a8c5 ("media: em28xx: Hauppauge DualHD second tuner functionality")
Cc: Brad Love <brad@nextdimension.cc>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/usb/em28xx/em28xx-dvb.c