Re: idea on how to break the static dependencies on demodulator modules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > Only allowing FE customization when DVB_CORE_ATTACH is on seems backward.
> > Customizing which frontends are built makes the most sense when you still
> > have static dependencies or are not even using modules.  There is no
> > reason you can't customize both with and without dvb_attach, so why
> > disable it?
>
> For static building, would that not require spreading #ifdefs everywhere
> throughout the code? I really don't want to do that.

Just had a thought; we could add dummy functions to the frontend header files 
to sort this... e.g for tda1004x.h:

#ifdef CONFIG_DVB_TDA1004X
static inline struct frontend *tda10045_attach(...) { return NULL; }
static inline struct frontend *tda10046_attach(...) { return NULL; }
#else
static inline struct frontend *tda10045_attach(...) { return NULL; }
static inline struct frontend *tda10046_attach(...) { return NULL; }
#endif

Not sure if that'll work tho; too early in the morning for me just now :)

_______________________________________________

linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux