1. 21 10月, 2016 1 次提交
    • M
      [media] dvb-usb: don't break long lines · f319ed91
      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>
      f319ed91
  2. 14 7月, 2016 1 次提交
  3. 23 2月, 2016 2 次提交
  4. 16 2月, 2016 1 次提交
  5. 25 1月, 2016 1 次提交
  6. 11 1月, 2016 4 次提交
  7. 08 4月, 2015 1 次提交
  8. 02 3月, 2015 3 次提交
  9. 26 2月, 2015 2 次提交
  10. 14 8月, 2012 2 次提交
  11. 06 1月, 2012 1 次提交
  12. 21 9月, 2011 1 次提交
  13. 10 9月, 2011 2 次提交
    • M
      [media] dvb-usb: improve sanity check of adap->active_fe in dvb_usb_ctrl_feed · 2d04c13a
      Michael Krufky 提交于
      The check for (adap->active_fe < 0) at the top of dvb_usb_ctrl_feed is a sanity
      check to ensure that adap->active_fe is valid.  Improve that sanity check
      by also checking for (adap->active_fe >= adap->num_frontends_initialized)
      Signed-off-by: NMichael Krufky <mkrufky@kernellabs.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      2d04c13a
    • M
      [media] dvb-usb: fix streaming failure on channel change · 4b5d01e9
      Michael Krufky 提交于
      This fixes a bug introduced by a previous changeset entitled,
      [media] dvb-usb: refactor MFE code for individual streaming config per frontend
      
      As reported by Antti Palosaari, This error is shown by VLC when channel changed:
      
      [0x7f1bbc000cd0] dvb access error: DMXSetFilter: failed with -1 (Invalid argument)
      [0x7f1bbc000cd0] dvb access error: DMXSetFilter failed
      [0x7f1bbc32f910] main stream error: cannot pre fill buffer
      
      After my own investigations, I've determined that this error case occurs when
      the application stops streaming but leaves the frontend and dvr devices open.
      A typical example of this usage would be a channel change operation while
      watching live television. The error occurs when the application attempts to
      stream after tuning to the new channel.
      
      To prevent this error, don't set adap->active_fe to -1 unless the application
      closes the device.
      
      Cc: Antti Palosaari <crope@iki.fi>
      Signed-off-by: NMichael Krufky <mkrufky@kernellabs.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      4b5d01e9
  14. 07 9月, 2011 1 次提交
  15. 31 7月, 2011 2 次提交
  16. 20 5月, 2011 2 次提交
  17. 06 12月, 2009 1 次提交
  18. 28 10月, 2008 1 次提交
  19. 25 4月, 2008 1 次提交
  20. 04 10月, 2006 1 次提交
  21. 26 9月, 2006 5 次提交
  22. 25 6月, 2006 3 次提交
  23. 28 8月, 2005 1 次提交