Em Fri, 11 Mar 2016 09:27:40 -0700 Shuah Khan <shuahkh@xxxxxxxxxxxxxxx> escreveu: > On 03/11/2016 08:55 AM, Mauro Carvalho Chehab wrote: > > For au0828_enable_source() to work, the tuner links should be > > disabled and the tuner/decoder should be cached at au0828 struct. > > hmm. are you sure about needing to cache decoder in au0828 struct. > It gets cached in au0828_card_analog_fe_setup() which is called > from au0828_card_setup() - this step happens before > au0828_media_device_register() > > #ifdef CONFIG_MEDIA_CONTROLLER > if (sd) > dev->decoder = &sd->entity; > #endif I haven't check it. Yet, I guess the best would be to put those caches all at au0828_media_device_register(). This way, it would be easier to remember removing them, once we move au0828_enable_source to the core. (my plan is to take a look on it after the merge window, doing some tests on more complex drivers, like em28xx and saa7134). Regards, Mauro -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html