Commit ea9e7b55 authored by Linus Torvalds's avatar Linus Torvalds

Merge git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/v4l-dvb

* git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/v4l-dvb:
  V4L/DVB (6820): s5h1409: QAM SNR related fixes
  V4L/DVB (6819): i2c: fix drivers/media/video/bt866.c
  V4L/DVB (6814): Makefile: always enter video/
  V4L/DVB (6798): saa7134: enable LNA in analog mode for Hauppauge WinTV HVR-1110
  V4L/DVB (6803): buf-core.c locking fixes
parents 980110c5 2300317f
...@@ -3,6 +3,6 @@ ...@@ -3,6 +3,6 @@
# #
obj-y := common/ obj-y := common/
obj-$(CONFIG_VIDEO_DEV) += video/ obj-y += video/
obj-$(CONFIG_VIDEO_DEV) += radio/ obj-$(CONFIG_VIDEO_DEV) += radio/
obj-$(CONFIG_DVB_CORE) += dvb/ obj-$(CONFIG_DVB_CORE) += dvb/
...@@ -107,7 +107,7 @@ static struct vsb_snr_tab { ...@@ -107,7 +107,7 @@ static struct vsb_snr_tab {
u16 val; u16 val;
u16 data; u16 data;
} vsb_snr_tab[] = { } vsb_snr_tab[] = {
{ 1023, 770, }, { 924, 300, },
{ 923, 300, }, { 923, 300, },
{ 918, 295, }, { 918, 295, },
{ 915, 290, }, { 915, 290, },
...@@ -154,6 +154,7 @@ static struct qam64_snr_tab { ...@@ -154,6 +154,7 @@ static struct qam64_snr_tab {
u16 val; u16 val;
u16 data; u16 data;
} qam64_snr_tab[] = { } qam64_snr_tab[] = {
{ 1, 0, },
{ 12, 300, }, { 12, 300, },
{ 15, 290, }, { 15, 290, },
{ 18, 280, }, { 18, 280, },
...@@ -217,6 +218,7 @@ static struct qam64_snr_tab { ...@@ -217,6 +218,7 @@ static struct qam64_snr_tab {
{ 95, 202, }, { 95, 202, },
{ 96, 201, }, { 96, 201, },
{ 104, 200, }, { 104, 200, },
{ 255, 0, },
}; };
/* QAM256 SNR lookup table */ /* QAM256 SNR lookup table */
...@@ -224,6 +226,7 @@ static struct qam256_snr_tab { ...@@ -224,6 +226,7 @@ static struct qam256_snr_tab {
u16 val; u16 val;
u16 data; u16 data;
} qam256_snr_tab[] = { } qam256_snr_tab[] = {
{ 1, 0, },
{ 12, 400, }, { 12, 400, },
{ 13, 390, }, { 13, 390, },
{ 15, 380, }, { 15, 380, },
...@@ -292,6 +295,7 @@ static struct qam256_snr_tab { ...@@ -292,6 +295,7 @@ static struct qam256_snr_tab {
{ 105, 262, }, { 105, 262, },
{ 106, 261, }, { 106, 261, },
{ 110, 260, }, { 110, 260, },
{ 255, 0, },
}; };
/* 8 bit registers, 16 bit values */ /* 8 bit registers, 16 bit values */
...@@ -670,14 +674,15 @@ static int s5h1409_read_snr(struct dvb_frontend* fe, u16* snr) ...@@ -670,14 +674,15 @@ static int s5h1409_read_snr(struct dvb_frontend* fe, u16* snr)
u16 reg; u16 reg;
dprintk("%s()\n", __FUNCTION__); dprintk("%s()\n", __FUNCTION__);
reg = s5h1409_readreg(state, 0xf1) & 0x1ff;
switch(state->current_modulation) { switch(state->current_modulation) {
case QAM_64: case QAM_64:
reg = s5h1409_readreg(state, 0xf0) & 0xff;
return s5h1409_qam64_lookup_snr(fe, snr, reg); return s5h1409_qam64_lookup_snr(fe, snr, reg);
case QAM_256: case QAM_256:
reg = s5h1409_readreg(state, 0xf0) & 0xff;
return s5h1409_qam256_lookup_snr(fe, snr, reg); return s5h1409_qam256_lookup_snr(fe, snr, reg);
case VSB_8: case VSB_8:
reg = s5h1409_readreg(state, 0xf1) & 0x3ff;
return s5h1409_vsb_lookup_snr(fe, snr, reg); return s5h1409_vsb_lookup_snr(fe, snr, reg);
default: default:
break; break;
......
...@@ -300,7 +300,6 @@ static struct i2c_client bt866_client_tmpl = ...@@ -300,7 +300,6 @@ static struct i2c_client bt866_client_tmpl =
.addr = 0, .addr = 0,
.adapter = NULL, .adapter = NULL,
.driver = &i2c_driver_bt866, .driver = &i2c_driver_bt866,
.usage_count = 0
}; };
static int bt866_found_proc(struct i2c_adapter *adapter, static int bt866_found_proc(struct i2c_adapter *adapter,
......
...@@ -3221,6 +3221,7 @@ struct saa7134_board saa7134_boards[] = { ...@@ -3221,6 +3221,7 @@ struct saa7134_board saa7134_boards[] = {
.radio_type = UNSET, .radio_type = UNSET,
.tuner_addr = ADDR_UNSET, .tuner_addr = ADDR_UNSET,
.radio_addr = ADDR_UNSET, .radio_addr = ADDR_UNSET,
.tuner_config = 1,
.mpeg = SAA7134_MPEG_DVB, .mpeg = SAA7134_MPEG_DVB,
.inputs = {{ .inputs = {{
.name = name_tv, .name = name_tv,
......
...@@ -909,7 +909,7 @@ ssize_t videobuf_read_stream(struct videobuf_queue *q, ...@@ -909,7 +909,7 @@ ssize_t videobuf_read_stream(struct videobuf_queue *q,
if (q->streaming) if (q->streaming)
goto done; goto done;
if (!q->reading) { if (!q->reading) {
retval = videobuf_read_start(q); retval = __videobuf_read_start(q);
if (retval < 0) if (retval < 0)
goto done; goto done;
} }
...@@ -982,7 +982,7 @@ unsigned int videobuf_poll_stream(struct file *file, ...@@ -982,7 +982,7 @@ unsigned int videobuf_poll_stream(struct file *file,
struct videobuf_buffer, stream); struct videobuf_buffer, stream);
} else { } else {
if (!q->reading) if (!q->reading)
videobuf_read_start(q); __videobuf_read_start(q);
if (!q->reading) { if (!q->reading) {
rc = POLLERR; rc = POLLERR;
} else if (NULL == q->read_buf) { } else if (NULL == q->read_buf) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment