[media] media: au0828 change to use Managed Media Controller API
authorShuah Khan <shuahkh@osg.samsung.com>
Thu, 11 Feb 2016 23:41:30 +0000 (21:41 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sat, 27 Feb 2016 11:55:15 +0000 (08:55 -0300)
commit182dde7c5d4cd9fcac007c0798c9906fc5ea6889
tree09ef7277f6651639819cee3521ab7ae37e24dfcf
parent77fa4e072998705883c4dc672963b4bf7483cea9
[media] media: au0828 change to use Managed Media Controller API

Change au0828 to use Managed Media Controller API to share media device
and coordinate creating/deleting the shared media device with the
snd-usb-audio driver. The shared media device is created as device
resource of the parent usb device of the two drivers.

Populate media device model with USB Device product name instead of
au0828 device board name. This change is necessary because, if the media
device is registered by the snd-usb-audio driver first, and it doesn't
know the au0828 board name.

[mchehab@osg.samsung.com: Fix merge conflicts]

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/au0828/au0828-core.c