1. 07 7月, 2014 1 次提交
  2. 17 6月, 2014 2 次提交
    • M
      [media] dib8000: export just one symbol · d44913c1
      Mauro Carvalho Chehab 提交于
      Exporting multiple symbols don't work as it causes compilation
      breakages, due to the way dvb_attach() works.
      
      The bug happens when:
              CONFIG_DVB_DIB8000=m
      	CONFIG_DVB_USB_DIB0700=y
      
      As a bonus, dib8000 won't be loaded anymore if the device uses
      a different frontend, reducing the memory footprint.
      
      Tested with both Pixelview PV-D231 and MyGica S870.
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      d44913c1
    • M
      [media] dib8000: rename dib8000_attach to dib8000_init · b9bc7d59
      Mauro Carvalho Chehab 提交于
      Well, what we call as "foo_attach" is the method that should
      be called by the dvb_attach() macro.
      
      It should be noticed that the name "dvb_attach" is really a
      bad name and don't express what it does.
      
      dvb_attach() basically does three things, if the frontend is
      compiled as a module:
      - It lookups for the module that it is known to have the
        given symbol name and requests such module;
      - It increments the module usage (anonymously - so lsmod
        doesn't print who loaded the module);
      - after loading the module, it runs the function associated
        with the dynamic symbol.
      
      When compiled as builtin, it just calls the function given to it.
      
      As dvb_attach() increments refcount, it can't be (easily)
      called more than once for the same module, or the kernel
      will deny to remove the module, because refcount will never
      be zeroed.
      
      In other words, the function name given to dvb_attach()
      should be one single symbol that will always be called
      before any other function on that module to be used.
      
      For almost all DVB frontends, there's just one function,
      but, on dib8000, there are several exported symbols.
      
      We need to get rid of all those direct calls, because they
      cause compilation breakages when bridge is builtin and
      frontend is module, we'll need to add a new function that
      will be the first one to be called, whatever initialization
      is needed.
      
      So, let's rename this function, in order to prepare for
      a next patch that will add a new attach() function that
      will be the only one exported by this module.
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      b9bc7d59
  3. 14 1月, 2014 2 次提交
  4. 20 12月, 2013 1 次提交
  5. 19 12月, 2013 11 次提交
  6. 10 12月, 2013 1 次提交
  7. 30 11月, 2013 1 次提交
  8. 09 6月, 2013 1 次提交
  9. 26 4月, 2013 2 次提交
    • M
      [media] dib8000: fix a warning · 13122f98
      Mauro Carvalho Chehab 提交于
      drivers/media/dvb-frontends/dib8000.c: In function 'dib8000_wait_lock':
      drivers/media/dvb-frontends/dib8000.c:3972:1: warning: 'value' may be used uninitialized in this function [-Wmaybe-uninitialized]
      drivers/media/dvb-frontends/dib8000.c:2419:6: note: 'value' was declared here
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      13122f98
    • M
      [media] dib8000: Fix sub-channel range · 746f7ae0
      Mauro Carvalho Chehab 提交于
      isdbt_sb_subchannel is unsigned with 8 bits. So, it will
      never be -1. Instead, any value bigger than 13 is invalid.
      
      As is, the current code generates the following warnings:
      
      drivers/media/dvb-frontends/dib8000.c: In function 'dib8000_set_isdbt_common_channel':
      drivers/media/dvb-frontends/dib8000.c:2358:3: warning: comparison is always true due to limited range of data type [-Wtype-limits]
      drivers/media/dvb-frontends/dib8000.c: In function 'dib8000_tune':
      drivers/media/dvb-frontends/dib8000.c:3107:8: warning: comparison is always false due to limited range of data type [-Wtype-limits]
      drivers/media/dvb-frontends/dib8000.c:3153:9: warning: comparison is always false due to limited range of data type [-Wtype-limits]
      drivers/media/dvb-frontends/dib8000.c:3160:5: warning: comparison is always false
      
      It should also be noticed that ARIB STD-B31, item
      "3.15.6.8 Number of segments" at TMCC table defines the
      value 15 for unused segment, and 14 as reserved.
      
      So, better to change the check to consider any value
      bigger than 13 to mean that sub-channels should be
      disabled, fixing the warning and doing the right thing
      even if an invalid value is filled by userspace.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      746f7ae0
  10. 25 4月, 2013 2 次提交
  11. 23 4月, 2013 1 次提交
  12. 14 8月, 2012 1 次提交
  13. 31 7月, 2012 1 次提交
  14. 05 1月, 2012 1 次提交
  15. 31 12月, 2011 5 次提交
  16. 25 11月, 2011 2 次提交
  17. 06 8月, 2011 1 次提交
  18. 20 5月, 2011 1 次提交
  19. 22 3月, 2011 3 次提交
    • D
      [media] dib8000: fix small memory leak on error · ed54c0e3
      Dan Carpenter 提交于
      kfree(state) if fe allocation fails.
      Signed-off-by: NDan Carpenter <error27@gmail.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      ed54c0e3
    • M
      [media] dib8000: Fix some wrong alignments · 2c2c441b
      Mauro Carvalho Chehab 提交于
      Something went wrong with the alignments for the if clause at line 2113.
      Instead of using one tab for alignments, it used 3 tabs, plus one space
      character.
      
      WARNING: suspect code indent for conditional statements (8, 33)
      +	if ((state->fe[0]->dtv_property_cache.delivery_system != SYS_ISDBT) ||
      [...]
      +				 int i = 80000;
      
      WARNING: suspect code indent for conditional statements (33, 41)
      +				 for (index_frontend = 0; (index_frontend < MAX_NUMBER_OF_FRONTENDS) && (state->fe[index_frontend] != NULL); index_frontend++) {
      +					 dib8000_set_bandwidth(state->fe[index_frontend], fe->dtv_property_cache.bandwidth_hz / 1000);
      
      WARNING: suspect code indent for conditional statements (33, 41)
      +				 do {
      +					 msleep(20);
      
      WARNING: suspect code indent for conditional statements (41, 49)
      +					 for (index_frontend = 0; (index_frontend < MAX_NUMBER_OF_FRONTENDS) && (state->fe[index_frontend] != NULL); index_frontend++) {
      +						 if (((tune_failed >> index_frontend) & 0x1) == 0) {
      
      WARNING: suspect code indent for conditional statements (49, 57)
      +						 if (((tune_failed >> index_frontend) & 0x1) == 0) {
      +							 found = dib8000_autosearch_irq(state->fe[index_frontend]);
      
      WARNING: suspect code indent for conditional statements (41, 49)
      +					 if ((nbr_pending == 0) && (exit_condition == 0))
      +						 exit_condition = 1;
      
      Cc: Patrick Boettcher <pboettcher@kernellabs.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      2c2c441b
    • O
      [media] DiBxxxx: Codingstype updates · b4d6046e
      Olivier Grenie 提交于
      This patchs fix several conding-style violations.
      Signed-off-by: NOlivier Grenie <olivier.grenie@dibcom.fr>
      Signed-off-by: NPatrick Boettcher <patrick.boettcher@dibcom.fr>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      b4d6046e