1. 21 10月, 2016 1 次提交
    • M
      [media] tm6000: don't break long lines · 68616504
      Mauro Carvalho Chehab 提交于
      Due to the 80-cols restrictions, and latter due to checkpatch
      warnings, several strings were broken into multiple lines. This
      is not considered a good practice anymore, as it makes harder
      to grep for strings at the source code.
      
      As we're right now fixing other drivers due to KERN_CONT, we need
      to be able to identify what printk strings don't end with a "\n".
      It is a way easier to detect those if we don't break long lines.
      
      So, join those continuation lines.
      
      The patch was generated via the script below, and manually
      adjusted if needed.
      
      </script>
      use Text::Tabs;
      while (<>) {
      	if ($next ne "") {
      		$c=$_;
      		if ($c =~ /^\s+\"(.*)/) {
      			$c2=$1;
      			$next =~ s/\"\n$//;
      			$n = expand($next);
      			$funpos = index($n, '(');
      			$pos = index($c2, '",');
      			if ($funpos && $pos > 0) {
      				$s1 = substr $c2, 0, $pos + 2;
      				$s2 = ' ' x ($funpos + 1) . substr $c2, $pos + 2;
      				$s2 =~ s/^\s+//;
      
      				$s2 = ' ' x ($funpos + 1) . $s2 if ($s2 ne "");
      
      				print unexpand("$next$s1\n");
      				print unexpand("$s2\n") if ($s2 ne "");
      			} else {
      				print "$next$c2\n";
      			}
      			$next="";
      			next;
      		} else {
      			print $next;
      		}
      		$next="";
      	} else {
      		if (m/\"$/) {
      			if (!m/\\n\"$/) {
      				$next=$_;
      				next;
      			}
      		}
      	}
      	print $_;
      }
      </script>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      68616504
  2. 09 2月, 2013 1 次提交
  3. 16 8月, 2012 1 次提交
  4. 05 1月, 2012 1 次提交
  5. 11 12月, 2011 1 次提交
  6. 01 12月, 2011 2 次提交
    • M
      [media] tm6000: rewrite IR support · 4a83b011
      Mauro Carvalho Chehab 提交于
      The IR support were broken on my tests with HVR-900H. Also,
      there were several issues on the current implementation.
      This patch is a major rewrite of the IR support for this
      	- Improve debug messages;
      	- Don't do polling for interrrupt based IR;
      	- Add proper support for RC-5 protocol;
      	- Always provide 16 bits for NEC and RC-5;
      	- Fix polling code;
      	- Split polling functions from URB Interrupt ones;
      	- Don't hardcode the XTAL reference for tm6000 IR;
      	- If a URB submit fails, retries after 100ms;
      	- etc.
      
      Tested on Hauppauge HVR-900H, with RC-5 and NEC remotes.
      
      Issues on IR handling, on this device:
      	- Repeat events aren't detected (neither on NEC or RC-5);
      	- NEC codes are always provided with 16 bits.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      4a83b011
    • M
      [media] tm6000: Fix IR register names · 15a295ec
      Mauro Carvalho Chehab 提交于
      IR registers 0xd9 to 0xdf were badly named, making harder to
      check what's the register accessed at the RC code. Fix the
      name convention.
      
      No functional changes on this patch.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      15a295ec
  7. 29 11月, 2011 3 次提交
  8. 23 9月, 2011 2 次提交
  9. 22 9月, 2011 1 次提交
  10. 01 9月, 2011 6 次提交
  11. 21 5月, 2011 5 次提交
  12. 22 3月, 2011 2 次提交
  13. 29 12月, 2010 2 次提交
  14. 23 10月, 2010 2 次提交
  15. 22 10月, 2010 1 次提交
  16. 21 10月, 2010 6 次提交
  17. 01 9月, 2010 1 次提交
  18. 03 8月, 2010 2 次提交