color box, display box, corrugated box, color card, blister card, color sleeve, hang tag, label

2014-08-15 Thread Jinghao Printing - CHINA
Hi, this is David Wu from Shanghai, China.
We are a printing company, we can print color box, corrugated box,
label, hang tag etc.
Please let me know if you need these.

I will send you the website then.

Best regards,
David Wu
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Transaction XLK-14-TTF/ESP.

2014-08-15 Thread GVA Abogados.

Dear Friend,

 Please acknowledge and accept my proposal.

My name is Barrister Miguel Martinez Moreno, an Attorney at Law, in 
Alicante-Spain.


I am writing to notify you of the unclaimed inheritance deposit of our 
late client, who passed on to Great beyond on August 21st, 2010 in a 
motor accident in auto pista de Alcala Del Henares, Madrid-Spain.


I got your name and email address through a web search engine in my 
quest to get a reliable individual who shall work with me in claiming 
this inheritance deposit since all my efforts to get the biological 
relative has proved abortive.


Conclusively, I await your urgent response to include the following :( 
1).Your full Names  Address. (2).Your Telephone and Fax numbers. 
(3).Your business name if any: for more information on how to release 
the inheritance deposit, amount, procedure and legality of this claim 
send me an email via: gva_aboga...@aim.com


Have a very nice day my friend!

Regards,
Miguel Martinez Moreno (Esq)
Attorney At Law.
gvainten...@aim.com
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Philanthropic Donation To Your Email In Honor Of My Late Wife Who Died Of Cancer

2014-08-15 Thread Tom Crist Fund
I am Tom Crist retired CEO of EECOL Electric and winner of Forty Million 
Dollars in the Calgary Lotto and I ve made a donation to your email. Contact me 
with name, address, age, phone number and occupation via private email. View 
link for more info; 
http://www.cbc.ca/video/news/audioplayer.html?clipid=2424885304
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 1/4] mxl301rf: add driver for MaxLinear MxL301RF OFDM tuner

2014-08-15 Thread Mauro Carvalho Chehab
Em Tue, 15 Jul 2014 00:43:44 +0900
tsk...@gmail.com escreveu:

 From: Akihiro Tsukada tsk...@gmail.com
 
 This patch adds driver for mxl301rf OFDM tuner chips.
 It is used as an ISDB-T tuner in earthsoft pt3 cards.
 
 Note that this driver does not initilize the chip,
 because the initilization sequence / register setting is not disclosed.
 Thus, the driver assumes that the chips are initilized externally
 by its parent board driver before tuner_ops-init() are called.
 Earthsoft PT3 PCIe card, for example, contains the init sequence
 in its private memory and provides a command to trigger the sequence.
 
 Signed-off-by: Akihiro Tsukada tsk...@gmail.com
 ---
  drivers/media/tuners/Kconfig|   7 +
  drivers/media/tuners/Makefile   |   1 +
  drivers/media/tuners/mxl301rf.c | 331 
 
  drivers/media/tuners/mxl301rf.h |  40 +
  4 files changed, 379 insertions(+)
  create mode 100644 drivers/media/tuners/mxl301rf.c
  create mode 100644 drivers/media/tuners/mxl301rf.h
 
 diff --git a/drivers/media/tuners/Kconfig b/drivers/media/tuners/Kconfig
 index 22b6b8b..939111d 100644
 --- a/drivers/media/tuners/Kconfig
 +++ b/drivers/media/tuners/Kconfig
 @@ -250,4 +250,11 @@ config MEDIA_TUNER_R820T
   default m if !MEDIA_SUBDRV_AUTOSELECT
   help
 Rafael Micro R820T silicon tuner driver.
 +
 +config MEDIA_TUNER_MXL301RF
 + tristate MaxLinear MxL301RF tuner
 + depends on MEDIA_SUPPORT  I2C
 + default m if !MEDIA_SUBDRV_AUTOSELECT
 + help
 +   MaxLinear MxL301RF OFDM tuner driver.
  endmenu
 diff --git a/drivers/media/tuners/Makefile b/drivers/media/tuners/Makefile
 index a6ff0c6..026eb16 100644
 --- a/drivers/media/tuners/Makefile
 +++ b/drivers/media/tuners/Makefile
 @@ -38,6 +38,7 @@ obj-$(CONFIG_MEDIA_TUNER_FC0012) += fc0012.o
  obj-$(CONFIG_MEDIA_TUNER_FC0013) += fc0013.o
  obj-$(CONFIG_MEDIA_TUNER_IT913X) += tuner_it913x.o
  obj-$(CONFIG_MEDIA_TUNER_R820T) += r820t.o
 +obj-$(CONFIG_MEDIA_TUNER_MXL301RF) += mxl301rf.o
  
  ccflags-y += -I$(srctree)/drivers/media/dvb-core
  ccflags-y += -I$(srctree)/drivers/media/dvb-frontends
 diff --git a/drivers/media/tuners/mxl301rf.c b/drivers/media/tuners/mxl301rf.c
 new file mode 100644
 index 000..65e4438
 --- /dev/null
 +++ b/drivers/media/tuners/mxl301rf.c
 @@ -0,0 +1,331 @@
 +/*
 + * MaxLinear MxL301RF OFDM tuner driver
 + *
 + * Copyright (C) 2014 Akihiro Tsukada tsk...@gmail.com
 + *
 + * This program is free software; you can redistribute it and/or
 + * modify it under the terms of the GNU General Public License as
 + * published by the Free Software Foundation version 2.
 + *
 + *
 + * This program is distributed in the hope that it will be useful,
 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 + * GNU General Public License for more details.
 + */
 +
 +#include mxl301rf.h
 +
 +struct mxl301rf_state {
 + struct mxl301rf_config cfg;
 + struct i2c_adapter *i2c;
 +};
 +
 +static int data_write(struct mxl301rf_state *state, const u8 *buf, int len)
 +{
 + struct i2c_msg msg = {
 + .addr = state-cfg.addr,
 + .flags = 0,
 + .buf = (u8 *)buf,
 + .len = len,
 + };
 +
 + return i2c_transfer(state-i2c, msg, 1);
 +}
 +
 +static int reg_write(struct mxl301rf_state *state, u8 reg, u8 val)
 +{
 + u8 buf[2] = { reg, val };
 +
 + return data_write(state, buf, 2);
 +}
 +
 +static int reg_read(struct mxl301rf_state *state, u8 reg, u8 *val)
 +{
 + u8 wbuf[2] = { 0xfb, reg };
 + struct i2c_msg msgs[2] = {
 + {
 + .addr = state-cfg.addr,
 + .flags = 0,
 + .buf = wbuf,
 + .len = 2,
 + },
 + {
 + .addr = state-cfg.addr,
 + .flags = I2C_M_RD,
 + .buf = val,
 + .len = 1,
 + }
 + };
 +
 + return i2c_transfer(state-i2c, msgs, ARRAY_SIZE(msgs));
 +}
 +
 +/* tuner_ops */
 +
 +static int mxl301rf_get_status(struct dvb_frontend *fe, u32 *status)
 +{
 + struct mxl301rf_state *state;
 + int ret;
 + u8 val;
 +
 + *status = 0;
 + state = fe-tuner_priv;
 + ret = reg_read(state, 0x16, val);  /* check RF Synthesizer lock */
 + if (ret  0 || (val  0x0c) != 0x0c)
 + return ret;
 + ret = reg_read(state, 0x16, val);  /* check REF Synthesizer lock */
 + if (ret  0 || (val  0x03) != 0x03)
 + return ret;
 + *status = TUNER_STATUS_LOCKED;
 + return 0;
 +}
 +
 +/* *strength : [1/1000 dBm] */
 +static int mxl301rf_get_rf_strength(struct dvb_frontend *fe, u16 *strength)
 +{
 + struct mxl301rf_state *state;
 + int ret;
 + u8 rf_in1, rf_in2, rf_off1, rf_off2;
 + u16 rf_in, rf_off;
 + s16 level;
 +
 + *strength = 0;
 + state = fe-tuner_priv;
 + ret = 

Re: [PATCH 2/4] qm1d1c0042: add driver for Sharp QM1D1C0042 8PSK tuner

2014-08-15 Thread Mauro Carvalho Chehab
Em Tue, 15 Jul 2014 00:43:45 +0900
tsk...@gmail.com escreveu:

 From: Akihiro Tsukada tsk...@gmail.com
 
 This patch adds driver for qm1d1c0042 (Trellis Coded) 8PSK tuner chips.
 It is used as an ISDB-S tuner in earthsoft pt3 cards.
 
 Signed-off-by: Akihiro Tsukada tsk...@gmail.com
 ---
  drivers/media/tuners/Kconfig  |   7 +
  drivers/media/tuners/Makefile |   1 +
  drivers/media/tuners/qm1d1c0042.c | 417 
 ++
  drivers/media/tuners/qm1d1c0042.h |  51 +
  4 files changed, 476 insertions(+)
  create mode 100644 drivers/media/tuners/qm1d1c0042.c
  create mode 100644 drivers/media/tuners/qm1d1c0042.h
 
 diff --git a/drivers/media/tuners/Kconfig b/drivers/media/tuners/Kconfig
 index 939111d..015f632 100644
 --- a/drivers/media/tuners/Kconfig
 +++ b/drivers/media/tuners/Kconfig
 @@ -257,4 +257,11 @@ config MEDIA_TUNER_MXL301RF
   default m if !MEDIA_SUBDRV_AUTOSELECT
   help
 MaxLinear MxL301RF OFDM tuner driver.
 +
 +config MEDIA_TUNER_QM1D1C0042
 + tristate Sharp QM1D1C0042 tuner
 + depends on MEDIA_SUPPORT  I2C
 + default m if !MEDIA_SUBDRV_AUTOSELECT
 + help
 +   Sharp QM1D1C0042 trellis coded 8PSK tuner driver.
  endmenu
 diff --git a/drivers/media/tuners/Makefile b/drivers/media/tuners/Makefile
 index 026eb16..42c0226 100644
 --- a/drivers/media/tuners/Makefile
 +++ b/drivers/media/tuners/Makefile
 @@ -39,6 +39,7 @@ obj-$(CONFIG_MEDIA_TUNER_FC0013) += fc0013.o
  obj-$(CONFIG_MEDIA_TUNER_IT913X) += tuner_it913x.o
  obj-$(CONFIG_MEDIA_TUNER_R820T) += r820t.o
  obj-$(CONFIG_MEDIA_TUNER_MXL301RF) += mxl301rf.o
 +obj-$(CONFIG_MEDIA_TUNER_QM1D1C0042) += qm1d1c0042.o
  
  ccflags-y += -I$(srctree)/drivers/media/dvb-core
  ccflags-y += -I$(srctree)/drivers/media/dvb-frontends
 diff --git a/drivers/media/tuners/qm1d1c0042.c 
 b/drivers/media/tuners/qm1d1c0042.c
 new file mode 100644
 index 000..509b480
 --- /dev/null
 +++ b/drivers/media/tuners/qm1d1c0042.c
 @@ -0,0 +1,417 @@
 +/*
 + * Sharp QM1D1C0042 8PSK tuner driver
 + *
 + * Copyright (C) 2014 Akihiro Tsukada tsk...@gmail.com
 + *
 + * This program is free software; you can redistribute it and/or
 + * modify it under the terms of the GNU General Public License as
 + * published by the Free Software Foundation version 2.
 + *
 + *
 + * This program is distributed in the hope that it will be useful,
 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 + * GNU General Public License for more details.
 + */
 +
 +#include qm1d1c0042.h
 +
 +#define QM1D1C0042_NUM_REGS 0x20
 +
 +static const u8 reg_initval[QM1D1C0042_NUM_REGS] = {
 + 0x48, 0x1c, 0xa0, 0x10, 0xbc, 0xc5, 0x20, 0x33,
 + 0x06, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00,
 + 0x00, 0xff, 0xf3, 0x00, 0x2a, 0x64, 0xa6, 0x86,
 + 0x8c, 0xcf, 0xb8, 0xf1, 0xa8, 0xf2, 0x89, 0x00

Please fix the indentation on the above table.

 +};
 +
 +static const struct qm1d1c0042_config default_cfg = {
 + .init_freq = 0,
 + .freq_offset = 0,
 + .xtal_freq = 16000,
 + .lpf = 1,
 + .fast_srch = 0,
 + .lpf_wait = 20,
 + .fast_srch_wait = 4,
 + .normal_srch_wait = 15,
 +};
 +
 +struct qm1d1c0042_state {
 + struct qm1d1c0042_config cfg;
 + struct i2c_adapter *i2c;
 + struct dvb_frontend *fe;
 + u8 regs[QM1D1C0042_NUM_REGS];
 +};
 +
 +static int reg_write(struct qm1d1c0042_state *state, u8 reg, u8 val)
 +{
 + u8 wbuf[2] = { reg, val };
 + struct i2c_msg msg = {
 + .addr = state-cfg.addr,
 + .flags = 0,
 + .buf = wbuf,
 + .len = 2,
 + };
 + return i2c_transfer(state-i2c, msg, 1);
 +}
 +
 +
 +static int reg_read(struct qm1d1c0042_state *state, u8 reg, u8 *val)
 +{
 + struct i2c_msg msgs[2] = {
 + {
 + .addr = state-cfg.addr,
 + .flags = 0,
 + .buf = reg,
 + .len = 1,
 + },
 + {
 + .addr = state-cfg.addr,
 + .flags = I2C_M_RD,
 + .buf = val,
 + .len = 1,
 + },
 + };
 +
 + return i2c_transfer(state-i2c, msgs, ARRAY_SIZE(msgs));
 +}
 +
 +static int qm1d1c0042_set_srch_mode(struct qm1d1c0042_state *state, bool 
 fast)
 +{
 + if (fast)
 + state-regs[0x03] |= 0x01; /* set fast search mode */
 + else
 + state-regs[0x03] = ~0x01  0xff;
 +
 + return reg_write(state, 0x03, state-regs[0x03]);
 +}
 +
 +static int qm1d1c0042_wakeup(struct qm1d1c0042_state *state)
 +{
 + int ret;
 +
 + state-regs[0x01] |= 1  3; /* BB_Reg_enable */
 + state-regs[0x01] = (~(1  0))  0xff; /* NORMAL (wake-up) */
 + state-regs[0x05] = (~(1  3))  0xff; /* pfd_rst NORMAL */
 + ret = reg_write(state, 0x01, state-regs[0x01]);
 + if (ret == 0)
 + ret = 

Re: [PATCH 3/4] tc90522: add driver for Toshiba TC90522 quad demodulator

2014-08-15 Thread Mauro Carvalho Chehab
Em Tue, 15 Jul 2014 00:43:46 +0900
tsk...@gmail.com escreveu:

 From: Akihiro Tsukada tsk...@gmail.com
 
 This patch adds driver for tc90522 demodulator chips.
 The chip contains 4 demod modules that run in parallel and are independently
 controllable via separate I2C addresses.
 Two of the modules are for ISDB-T and the rest for ISDB-S.
 It is used in earthsoft pt3 cards.
 
 Note that this driver does not init the chip,
 because the initilization sequence / register setting is not disclosed.
 Thus, the driver assumes that the chips are initilized externally
 by its parent board driver before fe-ops-init() are called.
 Earthsoft PT3 PCIe card, for example, contains the init sequence
 in its private memory and provides a command to trigger the sequence.
 
 Signed-off-by: Akihiro Tsukada tsk...@gmail.com
 ---
  drivers/media/dvb-frontends/Kconfig   |   8 +
  drivers/media/dvb-frontends/Makefile  |   1 +
  drivers/media/dvb-frontends/tc90522.c | 843 
 ++
  drivers/media/dvb-frontends/tc90522.h |  63 +++
  4 files changed, 915 insertions(+)
  create mode 100644 drivers/media/dvb-frontends/tc90522.c
  create mode 100644 drivers/media/dvb-frontends/tc90522.h
 
 diff --git a/drivers/media/dvb-frontends/Kconfig 
 b/drivers/media/dvb-frontends/Kconfig
 index 1469d44..0244571 100644
 --- a/drivers/media/dvb-frontends/Kconfig
 +++ b/drivers/media/dvb-frontends/Kconfig
 @@ -625,6 +625,14 @@ config DVB_MB86A20S
 A driver for Fujitsu mb86a20s ISDB-T/ISDB-Tsb demodulator.
 Say Y when you want to support this frontend.
  
 +config DVB_TC90522
 + tristate Toshiba TC90522
 + depends on DVB_CORE  I2C
 + default m if !MEDIA_SUBDRV_AUTOSELECT
 + help
 +   A Toshiba TC90522 2xISDB-T + 2xISDB-S demodulator.
 +   Say Y when you want to support this frontend.
 +
  comment Digital terrestrial only tuners/PLL
   depends on DVB_CORE
  
 diff --git a/drivers/media/dvb-frontends/Makefile 
 b/drivers/media/dvb-frontends/Makefile
 index dda0bee..5da7a25 100644
 --- a/drivers/media/dvb-frontends/Makefile
 +++ b/drivers/media/dvb-frontends/Makefile
 @@ -106,4 +106,5 @@ obj-$(CONFIG_DVB_RTL2830) += rtl2830.o
  obj-$(CONFIG_DVB_RTL2832) += rtl2832.o
  obj-$(CONFIG_DVB_M88RS2000) += m88rs2000.o
  obj-$(CONFIG_DVB_AF9033) += af9033.o
 +obj-$(CONFIG_DVB_TC90522) += tc90522.o
  
 diff --git a/drivers/media/dvb-frontends/tc90522.c 
 b/drivers/media/dvb-frontends/tc90522.c
 new file mode 100644
 index 000..6a9ecfa
 --- /dev/null
 +++ b/drivers/media/dvb-frontends/tc90522.c
 @@ -0,0 +1,843 @@
 +/*
 + * Toshiba TC90522 Demodulator
 + *
 + * Copyright (C) 2014 Akihiro Tsukada tsk...@gmail.com
 + *
 + * This program is free software; you can redistribute it and/or
 + * modify it under the terms of the GNU General Public License as
 + * published by the Free Software Foundation version 2.
 + *
 + *
 + * This program is distributed in the hope that it will be useful,
 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 + * GNU General Public License for more details.
 + */
 +
 +#include linux/kernel.h
 +#include linux/dvb/frontend.h
 +#include dvb_math.h
 +#include tc90522.h
 +
 +#define TC90522_I2C_THRU_REG 0xfe
 +
 +#define TC90522_MODULE_IDX(addr) (((u8)(addr)  0x02U)  1)
 +
 +enum tc90522_tuning_status {
 + STATUS_IDLE,
 + STATUS_SET_FREQ,
 + STATUS_CHECK_TUNER,
 + STATUS_CHECK_DEMOD,
 + STATUS_TRACK,
 +};
 +
 +struct tc90522_state {
 + struct dvb_frontend dvb_fe;
 +
 + struct tc90522_config cfg;
 + struct i2c_adapter *i2c;
 + struct i2c_adapter tuner_i2c;
 + enum tc90522_tuning_status tuning_status;
 + int retry_count;
 +
 + bool lna;
 +};
 +
 +struct reg_val {
 + u8 reg;
 + u8 val;
 +};
 +
 +
 +static int
 +reg_write(struct tc90522_state *state, const struct reg_val *regs, int num)
 +{
 + int i, ret;
 + struct i2c_msg msg;
 +
 + ret = 0;
 + msg.addr = state-cfg.addr;
 + msg.flags = 0;
 + msg.len = 2;
 + for (i = 0; i  num; i++) {
 + msg.buf = (u8 *)regs[i];
 + ret = i2c_transfer(state-i2c, msg, 1);
 + if (ret  0)
 + break;
 + }
 + return ret;
 +}
 +
 +static int reg_read(struct tc90522_state *state, u8 reg, u8 *val, u8 len)
 +{
 + struct i2c_msg msgs[2] = {
 + {
 + .addr = state-cfg.addr,
 + .flags = 0,
 + .buf = reg,
 + .len = 1,
 + },
 + {
 + .addr = state-cfg.addr,
 + .flags = I2C_M_RD,
 + .buf = val,
 + .len = len,
 + },
 + };
 +
 + return i2c_transfer(state-i2c, msgs, ARRAY_SIZE(msgs));
 +}
 +
 +static int enable_lna(struct dvb_frontend *fe, bool on)
 +{
 + struct tc90522_state *state;
 +
 + state = 

Re: [PATCH 4/4] pt3: add support for Earthsoft PT3 ISDB-S/T receiver card

2014-08-15 Thread Mauro Carvalho Chehab
Em Tue, 15 Jul 2014 00:43:47 +0900
tsk...@gmail.com escreveu:

 From: Akihiro Tsukada tsk...@gmail.com
 
 This patch adds support for PT3 PCIe cards.
 PT3 has an FPGA PCIe bridge chip, a TC90522 demod chip and
 a VA4M6JC2103 tuner module which contains two QM1D1C0042 chips for ISDB-S
 and two MxL301RF's for ISDB-T.
 It can receive and deliver 4 (2x ISDB-S, 2x ISDB-T) streams simultaneously.
 
 As an antenna input for each delivery system is split in the tuner module
 and shared between the corresponding two tuner chips,
 LNB/LNA controls that the FPGA chip provides are (naturally) shared as well.
 The tuner chips also share the power line in the tuner module,
 which is controlled on/off by a GPIO pin of the demod chip.
 
 As with the demod chip and the ISDB-T tuner chip,
 the init sequences/register settings for those chips are not disclosed
 and stored in a private memory of the FPGA,
 PT3 driver executes the init of those chips on behalf of their drivers.
 
 Signed-off-by: Akihiro Tsukada tsk...@gmail.com
 ---
  drivers/media/pci/Kconfig   |   1 +
  drivers/media/pci/Makefile  |   1 +
  drivers/media/pci/pt3/Kconfig   |  10 +
  drivers/media/pci/pt3/Makefile  |   8 +
  drivers/media/pci/pt3/pt3.c | 750 
 
  drivers/media/pci/pt3/pt3.h | 179 ++
  drivers/media/pci/pt3/pt3_dma.c | 225 
  drivers/media/pci/pt3/pt3_i2c.c | 239 +
  8 files changed, 1413 insertions(+)
  create mode 100644 drivers/media/pci/pt3/Kconfig
  create mode 100644 drivers/media/pci/pt3/Makefile
  create mode 100644 drivers/media/pci/pt3/pt3.c
  create mode 100644 drivers/media/pci/pt3/pt3.h
  create mode 100644 drivers/media/pci/pt3/pt3_dma.c
  create mode 100644 drivers/media/pci/pt3/pt3_i2c.c
 
 diff --git a/drivers/media/pci/Kconfig b/drivers/media/pci/Kconfig
 index 53196f1..9a1173c 100644
 --- a/drivers/media/pci/Kconfig
 +++ b/drivers/media/pci/Kconfig
 @@ -40,6 +40,7 @@ source drivers/media/pci/b2c2/Kconfig
  source drivers/media/pci/pluto2/Kconfig
  source drivers/media/pci/dm1105/Kconfig
  source drivers/media/pci/pt1/Kconfig
 +source drivers/media/pci/pt3/Kconfig
  source drivers/media/pci/mantis/Kconfig
  source drivers/media/pci/ngene/Kconfig
  source drivers/media/pci/ddbridge/Kconfig
 diff --git a/drivers/media/pci/Makefile b/drivers/media/pci/Makefile
 index 35cc578..f7be6bc 100644
 --- a/drivers/media/pci/Makefile
 +++ b/drivers/media/pci/Makefile
 @@ -7,6 +7,7 @@ obj-y+=   ttpci/  \
   pluto2/ \
   dm1105/ \
   pt1/\
 + pt3/\
   mantis/ \
   ngene/  \
   ddbridge/   \
 diff --git a/drivers/media/pci/pt3/Kconfig b/drivers/media/pci/pt3/Kconfig
 new file mode 100644
 index 000..69a8d12
 --- /dev/null
 +++ b/drivers/media/pci/pt3/Kconfig
 @@ -0,0 +1,10 @@
 +config DVB_PT3
 + tristate DVB Support for Earthsoft PT3 cards
 + depends on DVB_CORE  PCI  I2C
 + select DVB_TC90522 if MEDIA_SUBDRV_AUTOSELECT
 + select MEDIA_TUNER_QM1D1C0042 if MEDIA_SUBDRV_AUTOSELECT
 + select MEDIA_TUNER_MXL301RF if MEDIA_SUBDRV_AUTOSELECT
 + help
 +   Support for Earthsoft PT3 PCIe cards.
 +
 +   Say Y or M if you own such a device and want to use it.
 diff --git a/drivers/media/pci/pt3/Makefile b/drivers/media/pci/pt3/Makefile
 new file mode 100644
 index 000..396f146
 --- /dev/null
 +++ b/drivers/media/pci/pt3/Makefile
 @@ -0,0 +1,8 @@
 +
 +earth-pt3-objs += pt3.o pt3_i2c.o pt3_dma.o
 +
 +obj-$(CONFIG_DVB_PT3) += earth-pt3.o
 +
 +ccflags-y += -Idrivers/media/dvb-core
 +ccflags-y += -Idrivers/media/dvb-frontends
 +ccflags-y += -Idrivers/media/tuners
 diff --git a/drivers/media/pci/pt3/pt3.c b/drivers/media/pci/pt3/pt3.c
 new file mode 100644
 index 000..cada24b
 --- /dev/null
 +++ b/drivers/media/pci/pt3/pt3.c
 @@ -0,0 +1,750 @@
 +/*
 + * Earthsoft PT3 driver
 + *
 + * Copyright (C) 2014 Akihiro Tsukada tsk...@gmail.com
 + *
 + * This program is free software; you can redistribute it and/or
 + * modify it under the terms of the GNU General Public License as
 + * published by the Free Software Foundation version 2.
 + *
 + *
 + * This program is distributed in the hope that it will be useful,
 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 + * GNU General Public License for more details.
 + */
 +
 +#include linux/freezer.h
 +#include linux/kernel.h
 +#include linux/kthread.h
 +#include linux/mutex.h
 +#include linux/module.h
 +#include linux/pci.h
 +#include linux/string.h
 +
 +#include dmxdev.h
 +#include dvbdev.h
 +#include dvb_demux.h
 +#include dvb_frontend.h
 +
 +#include pt3.h
 +
 +DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr);
 +
 +static bool one_adapter;
 +module_param(one_adapter, bool, 0444);
 +MODULE_PARM_DESC(one_adapter, Place FE's together under one 

[PATCH] media/rc/imon.c: use USB API functions rather than constants

2014-08-15 Thread Himangi Saraogi
This patch introduces the use of the function usb_endpoint_type.

The Coccinelle semantic patch that makes these changes is as follows:

@@ struct usb_endpoint_descriptor *epd; @@

- (epd-bmAttributes  \(USB_ENDPOINT_XFERTYPE_MASK\|3\))
+ usb_endpoint_type(epd)

Signed-off-by: Himangi Saraogi himangi...@gmail.com
Acked-by: Julia Lawall julia.law...@lip6.fr
---
 drivers/media/rc/imon.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/rc/imon.c b/drivers/media/rc/imon.c
index 7115e68..b0ed460 100644
--- a/drivers/media/rc/imon.c
+++ b/drivers/media/rc/imon.c
@@ -2023,7 +2023,7 @@ static bool imon_find_endpoints(struct imon_context *ictx,
for (i = 0; i  num_endpts  !(ir_ep_found  display_ep_found); ++i) {
ep = iface_desc-endpoint[i].desc;
ep_dir = ep-bEndpointAddress  USB_ENDPOINT_DIR_MASK;
-   ep_type = ep-bmAttributes  USB_ENDPOINT_XFERTYPE_MASK;
+   ep_type = usb_endpoint_type(ep);
 
if (!ir_ep_found  ep_dir == USB_DIR_IN 
ep_type == USB_ENDPOINT_XFER_INT) {
-- 
1.9.1

--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] radio-si470x-usb: use USB API functions rather than constants

2014-08-15 Thread Himangi Saraogi
This patch introduces the use of the function usb_endpoint_is_int_in.

The Coccinelle semantic patch that makes these changes is as follows:

@@ struct usb_endpoint_descriptor *epd; @@

- ((epd-bEndpointAddress  \(USB_ENDPOINT_DIR_MASK\|0x80\)) ==
-  \(USB_DIR_IN\|0x80\))
+ usb_endpoint_dir_in(epd)

@@ struct usb_endpoint_descriptor *epd; @@

- ((epd-bmAttributes  \(USB_ENDPOINT_XFERTYPE_MASK\|3\)) ==
- \(USB_ENDPOINT_XFER_INT\|3\))
+ usb_endpoint_xfer_int(epd)

@@ struct usb_endpoint_descriptor *epd; @@

- (usb_endpoint_xfer_int(epd)  usb_endpoint_dir_in(epd))
+ usb_endpoint_is_int_in(epd)

Signed-off-by: Himangi Saraogi himangi...@gmail.com
Acked-by: Julia Lawall julia.law...@lip6.fr
---
 drivers/media/radio/si470x/radio-si470x-usb.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/media/radio/si470x/radio-si470x-usb.c 
b/drivers/media/radio/si470x/radio-si470x-usb.c
index 494fac0..57f0bc3 100644
--- a/drivers/media/radio/si470x/radio-si470x-usb.c
+++ b/drivers/media/radio/si470x/radio-si470x-usb.c
@@ -607,9 +607,7 @@ static int si470x_usb_driver_probe(struct usb_interface 
*intf,
/* Set up interrupt endpoint information. */
for (i = 0; i  iface_desc-desc.bNumEndpoints; ++i) {
endpoint = iface_desc-endpoint[i].desc;
-   if (((endpoint-bEndpointAddress  USB_ENDPOINT_DIR_MASK) ==
-USB_DIR_IN)  ((endpoint-bmAttributes 
-USB_ENDPOINT_XFERTYPE_MASK) == USB_ENDPOINT_XFER_INT))
+   if (usb_endpoint_is_int_in(endpoint))
radio-int_in_endpoint = endpoint;
}
if (!radio-int_in_endpoint) {
-- 
1.9.1

--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] rc-core: use USB API functions rather than constants

2014-08-15 Thread Himangi Saraogi
This patch introduces the use of !usb_endpoint_dir_in(epd) and
!usb_endpoint_xfer_int(epd).

The Coccinelle semantic patch that makes these changes is as follows:

- ((epd-bEndpointAddress  \(USB_ENDPOINT_DIR_MASK\|0x80\)) !=
-  \(USB_DIR_IN\|0x80\))
+ !usb_endpoint_dir_in(epd)

@@ struct usb_endpoint_descriptor *epd; @@

- ((epd-bmAttributes  \(USB_ENDPOINT_XFERTYPE_MASK\|3\)) !=
- \(USB_ENDPOINT_XFER_INT\|3\))
+ !usb_endpoint_xfer_int(epd)

Signed-off-by: Himangi Saraogi himangi...@gmail.com
Acked-by: Julia Lawall julia.law...@lip6.fr
---
 drivers/media/rc/streamzap.c | 6 ++
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/media/rc/streamzap.c b/drivers/media/rc/streamzap.c
index 80c4fee..bf4a442 100644
--- a/drivers/media/rc/streamzap.c
+++ b/drivers/media/rc/streamzap.c
@@ -362,16 +362,14 @@ static int streamzap_probe(struct usb_interface *intf,
}
 
sz-endpoint = (iface_host-endpoint[0].desc);
-   if ((sz-endpoint-bEndpointAddress  USB_ENDPOINT_DIR_MASK)
-   != USB_DIR_IN) {
+   if (!usb_endpoint_dir_in(sz-endpoint)) {
dev_err(intf-dev, %s: endpoint doesn't match input device 
02%02x\n, __func__, sz-endpoint-bEndpointAddress);
retval = -ENODEV;
goto free_sz;
}
 
-   if ((sz-endpoint-bmAttributes  USB_ENDPOINT_XFERTYPE_MASK)
-   != USB_ENDPOINT_XFER_INT) {
+   if (!usb_endpoint_xfer_int(sz-endpoint)) {
dev_err(intf-dev, %s: endpoint attributes don't match xfer 
02%02x\n, __func__, sz-endpoint-bmAttributes);
retval = -ENODEV;
-- 
1.9.1

--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] drivers: media: platform: Makefile: Add build dependency for davinci/

2014-08-15 Thread Andreas Ruprecht
In the davinci/ subdirectory, all drivers but one depend on
CONFIG_ARCH_DAVINCI. The only exception, selected by CONFIG_VIDEO_DM6446_CCDC,
is also available on CONFIG_ARCH_OMAP3.

Thus, it is not necessary to always descend into davinci/. It is sufficient to
do this only if CONFIG_ARCH_OMAP3 or CONFIG_ARCH_DAVINCI is selected. While the
latter is already present, this patch changes the dependency from obj-y to
obj-$(CONFIG_ARCH_OMAP3).

Signed-off-by: Andreas Ruprecht rup...@einserver.de
---
 drivers/media/platform/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/platform/Makefile b/drivers/media/platform/Makefile
index e5269da..d32e79a 100644
--- a/drivers/media/platform/Makefile
+++ b/drivers/media/platform/Makefile
@@ -47,7 +47,7 @@ obj-$(CONFIG_SOC_CAMERA)  += soc_camera/
 
 obj-$(CONFIG_VIDEO_RENESAS_VSP1)   += vsp1/
 
-obj-y  += davinci/
+obj-$(CONFIG_ARCH_OMAP3)   += davinci/
 
 obj-$(CONFIG_ARCH_OMAP)+= omap/
 
-- 
1.9.1

--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH] em28xx: fix compiler warnings

2014-08-15 Thread Frank Schäfer

Am 09.08.2014 um 11:58 schrieb Hans Verkuil:
 On 08/07/2014 06:36 PM, Frank Schäfer wrote:
 Am 07.08.2014 um 08:45 schrieb Hans Verkuil:
 On 08/05/2014 05:18 PM, Frank Schäfer wrote:
 Hi Hans,

 Am 05.08.2014 um 09:00 schrieb Hans Verkuil:
 Fix three compiler warnings:

 drivers/media/usb/em28xx/em28xx-input.c: In function 
 ‘em28xx_i2c_ir_handle_key’:
 drivers/media/usb/em28xx/em28xx-input.c:318:1: warning: the frame size of 
 1096 bytes is larger than 1024 bytes [-Wframe-larger-than=]
  }
  ^
   CC [M]  drivers/media/usb/em28xx/em28xx-dvb.o
 drivers/media/usb/em28xx/em28xx-camera.c: In function 
 ‘em28xx_probe_sensor_micron’:
 drivers/media/usb/em28xx/em28xx-camera.c:199:1: warning: the frame size 
 of 1096 bytes is larger than 1024 bytes [-Wframe-larger-than=]
  }
  ^
 drivers/media/usb/em28xx/em28xx-camera.c: In function 
 ‘em28xx_probe_sensor_omnivision’:
 drivers/media/usb/em28xx/em28xx-camera.c:304:1: warning: the frame size 
 of 1088 bytes is larger than 1024 bytes [-Wframe-larger-than=]
  }
  ^
 Hmmm... I don't get these weird warnings.
 How can I reproduce them ?
 I'm using gcc 4.9.1 and I'm compiling the kernel using just a regular make 
 command.
 In my .config I have CONFIG_FRAME_WARN=1024.
 Weird. With gcc version 4.8.1 20130909 [gcc-4_8-branch revision 202388]
 I get much smaller frame sizes:
 Are you compiling for 32 or 64 bits? I'm compiling for 64 bits.

Ah yes, it was a 32 bit kernel.
With a 64 bit kernel I get frame sizes of 736-744 bytes.
Hmm... still much smaller than the 1088-1096 bytes gcc 4.9.1 reports...


 ...
 drivers/media/usb/em28xx/em28xx-input.c: In function
 ‘em28xx_i2c_ir_handle_key’:
 drivers/media/usb/em28xx/em28xx-input.c:318:1: warning: the frame size
 of 424 bytes is larger than 256 bytes [-Wframe-larger-than=]
  }
  ^
 ...
 drivers/media/usb/em28xx/em28xx-camera.c: In function
 ‘em28xx_probe_sensor_micron’:
 drivers/media/usb/em28xx/em28xx-camera.c:199:1: warning: the frame size
 of 432 bytes is larger than 256 bytes [-Wframe-larger-than=]
  }
  ^
 ...
 drivers/media/usb/em28xx/em28xx-camera.c: In function
 ‘em28xx_probe_sensor_omnivision’:
 drivers/media/usb/em28xx/em28xx-camera.c:304:1: warning: the frame size
 of 428 bytes is larger than 256 bytes [-Wframe-larger-than=]
  }
  ^
 ...
[...]
 2.) i2c rc key polling:

 em28xx_i2c_ir_handle_key() passes the client structure to one of the 4
 get_key functions

 rc = ir-get_key_i2c(client, protocol, scancode);

 which either call

 i2c_transfer(client-adapter, msg, len)

 directly or the helper function

 i2c_master_recv(client, buf, len))

 which creates an i2c message before calling i2c_transfer().
 The only members used from the i2c_client struct are

 msg.addr = client-addr;
 msg.flags = client-flags  I2C_M_TEN;

 So the only fields from struct i2c_client which need to be setup are
 adapter and addr and flags.
 Adapter an addres are initialized properly to

 client.adapter = ir-dev-i2c_adap[dev-def_i2c_bus];
 client.addr = ir-i2c_dev_addr;

 The only thing which is indeed missing here and needs to be fixed is

 client.flags = 0;
 Are there no debugging calls that use client.name? 

No, only adpater, address and flags are required/used for an i2c_transfer().

 Basically what I don't
 understand is why this isn't a proper i2c_client, registered and all and
 in its proper place in the /sys/ hierarchy.

 It feels very much like a quick hack. 

The ir i2c decoder is indeed a pure em28xx internal thing. No external
client driver is used.
Hence the code is straight forward.
The only benefit of registering an i2c_client would be to make it
available via sysfs.
I'm not sure If it's worth the amount of extra work+code.

 And if nothing else, at least zero
 the struct before use. That will make any problems that this hack causes
 reproducible instead of dependent on whatever random values were on the
 stack.

The only problem here is the missing initialization of field flags.
It's a bug that needs to be fixed. Fortunately it doesn't cause any trouble.

In general, if structs with optional fields are used, the reader of the
code easily gets the feeling that something might be missing.
I know what I'm talking about... ;-)

A patch is in the works.

Regards,
Frank

 Regards,

   Hans

--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[linuxtv-media:devel 487/499] ERROR: snd_pcm_period_elapsed [drivers/media/usb/usbtv/usbtv.ko] undefined!

2014-08-15 Thread kbuild test robot
tree:   git://linuxtv.org/media_tree.git devel
head:   66b7a659921009c31042d4c1b7a37c2e71f7726d
commit: dad0a22934fbeedb28c85e3395dac209f08bb6ad [487/499] [media] usbtv: add 
audio support
config: x86_64-randconfig-s0-08160136 (attached as .config)

All error/warnings:

 ERROR: snd_pcm_period_elapsed [drivers/media/usb/usbtv/usbtv.ko] undefined!
 ERROR: snd_pcm_link_rwlock [drivers/media/usb/usbtv/usbtv.ko] undefined!
 ERROR: snd_pcm_set_ops [drivers/media/usb/usbtv/usbtv.ko] undefined!
 ERROR: snd_pcm_lib_free_pages [drivers/media/usb/usbtv/usbtv.ko] undefined!
 ERROR: snd_pcm_lib_ioctl [drivers/media/usb/usbtv/usbtv.ko] undefined!
 ERROR: snd_pcm_lib_malloc_pages [drivers/media/usb/usbtv/usbtv.ko] 
 undefined!
 ERROR: snd_card_new [drivers/media/usb/usbtv/usbtv.ko] undefined!
 ERROR: snd_pcm_lib_preallocate_pages_for_all 
 [drivers/media/usb/usbtv/usbtv.ko] undefined!
 ERROR: snd_card_free [drivers/media/usb/usbtv/usbtv.ko] undefined!
 ERROR: snd_card_register [drivers/media/usb/usbtv/usbtv.ko] undefined!
 ERROR: snd_pcm_new [drivers/media/usb/usbtv/usbtv.ko] undefined!

---
0-DAY kernel build testing backend  Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86_64 3.16.0-rc6 Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT=elf64-x86-64
CONFIG_ARCH_DEFCONFIG=arch/x86/configs/x86_64_defconfig
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_HAVE_LATENCYTOP_SUPPORT=y
CONFIG_MMU=y
CONFIG_NEED_DMA_MAP_STATE=y
CONFIG_NEED_SG_DMA_LENGTH=y
CONFIG_GENERIC_BUG=y
CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y
CONFIG_GENERIC_HWEIGHT=y
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_ARCH_HAS_CPU_RELAX=y
CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y
CONFIG_HAVE_SETUP_PER_CPU_AREA=y
CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y
CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y
CONFIG_ARCH_HIBERNATION_POSSIBLE=y
CONFIG_ARCH_SUSPEND_POSSIBLE=y
CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y
CONFIG_ARCH_WANT_GENERAL_HUGETLB=y
CONFIG_ZONE_DMA32=y
CONFIG_AUDIT_ARCH=y
CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y
CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
CONFIG_X86_64_SMP=y
CONFIG_X86_HT=y
CONFIG_ARCH_HWEIGHT_CFLAGS=-fcall-saved-rdi -fcall-saved-rsi -fcall-saved-rdx 
-fcall-saved-rcx -fcall-saved-r8 -fcall-saved-r9 -fcall-saved-r10 
-fcall-saved-r11
CONFIG_ARCH_SUPPORTS_UPROBES=y
CONFIG_FIX_EARLYCON_MEM=y
CONFIG_DEFCONFIG_LIST=/lib/modules/$UNAME_RELEASE/.config
CONFIG_IRQ_WORK=y
CONFIG_BUILDTIME_EXTABLE_SORT=y

#
# General setup
#
CONFIG_INIT_ENV_ARG_LIMIT=32
CONFIG_CROSS_COMPILE=
# CONFIG_COMPILE_TEST is not set
CONFIG_LOCALVERSION=
CONFIG_LOCALVERSION_AUTO=y
CONFIG_HAVE_KERNEL_GZIP=y
CONFIG_HAVE_KERNEL_BZIP2=y
CONFIG_HAVE_KERNEL_LZMA=y
CONFIG_HAVE_KERNEL_XZ=y
CONFIG_HAVE_KERNEL_LZO=y
CONFIG_HAVE_KERNEL_LZ4=y
# CONFIG_KERNEL_GZIP is not set
# CONFIG_KERNEL_BZIP2 is not set
# CONFIG_KERNEL_LZMA is not set
# CONFIG_KERNEL_XZ is not set
# CONFIG_KERNEL_LZO is not set
CONFIG_KERNEL_LZ4=y
CONFIG_DEFAULT_HOSTNAME=(none)
# CONFIG_SWAP is not set
CONFIG_SYSVIPC=y
CONFIG_POSIX_MQUEUE=y
# CONFIG_CROSS_MEMORY_ATTACH is not set
CONFIG_FHANDLE=y
# CONFIG_USELIB is not set
# CONFIG_AUDIT is not set
CONFIG_HAVE_ARCH_AUDITSYSCALL=y

#
# IRQ subsystem
#
CONFIG_GENERIC_IRQ_PROBE=y
CONFIG_GENERIC_IRQ_SHOW=y
CONFIG_GENERIC_IRQ_LEGACY_ALLOC_HWIRQ=y
CONFIG_GENERIC_PENDING_IRQ=y
CONFIG_IRQ_DOMAIN=y
CONFIG_IRQ_DOMAIN_DEBUG=y
CONFIG_IRQ_FORCED_THREADING=y
CONFIG_SPARSE_IRQ=y
CONFIG_CLOCKSOURCE_WATCHDOG=y
CONFIG_ARCH_CLOCKSOURCE_DATA=y
CONFIG_GENERIC_TIME_VSYSCALL=y
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_GENERIC_CLOCKEVENTS_BUILD=y
CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y
CONFIG_GENERIC_CLOCKEVENTS_MIN_ADJUST=y
CONFIG_GENERIC_CMOS_UPDATE=y

#
# Timers subsystem
#
CONFIG_TICK_ONESHOT=y
CONFIG_NO_HZ_COMMON=y
# CONFIG_HZ_PERIODIC is not set
# CONFIG_NO_HZ_IDLE is not set
CONFIG_NO_HZ_FULL=y
# CONFIG_NO_HZ_FULL_ALL is not set
CONFIG_NO_HZ_FULL_SYSIDLE=y
CONFIG_NO_HZ_FULL_SYSIDLE_SMALL=8
# CONFIG_NO_HZ is not set
# CONFIG_HIGH_RES_TIMERS is not set

#
# CPU/Task time and stats accounting
#
CONFIG_VIRT_CPU_ACCOUNTING=y
CONFIG_VIRT_CPU_ACCOUNTING_GEN=y
CONFIG_BSD_PROCESS_ACCT=y
CONFIG_BSD_PROCESS_ACCT_V3=y
# CONFIG_TASKSTATS is not set

#
# RCU Subsystem
#
CONFIG_TREE_RCU=y
# CONFIG_PREEMPT_RCU is not set
CONFIG_RCU_STALL_COMMON=y
CONFIG_CONTEXT_TRACKING=y
CONFIG_RCU_USER_QS=y
CONFIG_CONTEXT_TRACKING_FORCE=y
CONFIG_RCU_FANOUT=64
CONFIG_RCU_FANOUT_LEAF=16
CONFIG_RCU_FANOUT_EXACT=y
# CONFIG_RCU_FAST_NO_HZ is not set
# CONFIG_TREE_RCU_TRACE is not set
CONFIG_RCU_NOCB_CPU=y
CONFIG_RCU_NOCB_CPU_ALL=y
CONFIG_IKCONFIG=y
CONFIG_LOG_BUF_SHIFT=17
CONFIG_HAVE_UNSTABLE_SCHED_CLOCK=y
CONFIG_ARCH_SUPPORTS_NUMA_BALANCING=y
CONFIG_ARCH_SUPPORTS_INT128=y
CONFIG_ARCH_WANTS_PROT_NUMA_PROT_NONE=y
CONFIG_CGROUPS=y
CONFIG_CGROUP_DEBUG=y
CONFIG_CGROUP_FREEZER=y
# CONFIG_CGROUP_DEVICE is not set
# CONFIG_CPUSETS 

[linuxtv-media:devel 487/499] usbtv-audio.c:undefined reference to `snd_pcm_lib_free_pages'

2014-08-15 Thread kbuild test robot
tree:   git://linuxtv.org/media_tree.git devel
head:   66b7a659921009c31042d4c1b7a37c2e71f7726d
commit: dad0a22934fbeedb28c85e3395dac209f08bb6ad [487/499] [media] usbtv: add 
audio support
config: x86_64-randconfig-hsxa1-08160149 (attached as .config)

All error/warnings:

   drivers/built-in.o: In function `snd_usbtv_hw_free':
 usbtv-audio.c:(.text+0x21eb55): undefined reference to 
 `snd_pcm_lib_free_pages'
   drivers/built-in.o: In function `snd_usbtv_hw_params':
 usbtv-audio.c:(.text+0x21eb72): undefined reference to 
 `snd_pcm_lib_malloc_pages'
   drivers/built-in.o: In function `usbtv_audio_urb_received':
 usbtv-audio.c:(.text+0x21ed66): undefined reference to `snd_pcm_link_rwlock'
 usbtv-audio.c:(.text+0x21ed9f): undefined reference to `snd_pcm_link_rwlock'
 usbtv-audio.c:(.text+0x21edf5): undefined reference to 
 `snd_pcm_period_elapsed'
   drivers/built-in.o: In function `usbtv_audio_init':
 (.text+0x21f00a): undefined reference to `snd_card_new'
   drivers/built-in.o: In function `usbtv_audio_init':
 (.text+0x21f0a2): undefined reference to `snd_pcm_new'
   drivers/built-in.o: In function `usbtv_audio_init':
 (.text+0x21f0e5): undefined reference to `snd_pcm_set_ops'
   drivers/built-in.o: In function `usbtv_audio_init':
 (.text+0x21f103): undefined reference to 
 `snd_pcm_lib_preallocate_pages_for_all'
   drivers/built-in.o: In function `usbtv_audio_init':
 (.text+0x21f10c): undefined reference to `snd_card_register'
   drivers/built-in.o: In function `usbtv_audio_init':
 (.text+0x21f12a): undefined reference to `snd_card_free'
   drivers/built-in.o: In function `usbtv_audio_free':
 (.text+0x21f15c): undefined reference to `snd_card_free'
 drivers/built-in.o:(.data+0x43250): undefined reference to 
 `snd_pcm_lib_ioctl'

---
0-DAY kernel build testing backend  Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86_64 3.16.0-rc6 Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT=elf64-x86-64
CONFIG_ARCH_DEFCONFIG=arch/x86/configs/x86_64_defconfig
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_HAVE_LATENCYTOP_SUPPORT=y
CONFIG_MMU=y
CONFIG_NEED_DMA_MAP_STATE=y
CONFIG_NEED_SG_DMA_LENGTH=y
CONFIG_GENERIC_ISA_DMA=y
CONFIG_GENERIC_BUG=y
CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y
CONFIG_GENERIC_HWEIGHT=y
CONFIG_ARCH_MAY_HAVE_PC_FDC=y
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_ARCH_HAS_CPU_RELAX=y
CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y
CONFIG_HAVE_SETUP_PER_CPU_AREA=y
CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y
CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y
CONFIG_ARCH_HIBERNATION_POSSIBLE=y
CONFIG_ARCH_SUSPEND_POSSIBLE=y
CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y
CONFIG_ARCH_WANT_GENERAL_HUGETLB=y
CONFIG_ZONE_DMA32=y
CONFIG_AUDIT_ARCH=y
CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y
CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
CONFIG_X86_64_SMP=y
CONFIG_X86_HT=y
CONFIG_ARCH_HWEIGHT_CFLAGS=-fcall-saved-rdi -fcall-saved-rsi -fcall-saved-rdx 
-fcall-saved-rcx -fcall-saved-r8 -fcall-saved-r9 -fcall-saved-r10 
-fcall-saved-r11
CONFIG_ARCH_SUPPORTS_UPROBES=y
CONFIG_FIX_EARLYCON_MEM=y
CONFIG_DEFCONFIG_LIST=/lib/modules/$UNAME_RELEASE/.config
CONFIG_IRQ_WORK=y
CONFIG_BUILDTIME_EXTABLE_SORT=y

#
# General setup
#
CONFIG_INIT_ENV_ARG_LIMIT=32
CONFIG_CROSS_COMPILE=
# CONFIG_COMPILE_TEST is not set
CONFIG_LOCALVERSION=
CONFIG_LOCALVERSION_AUTO=y
CONFIG_HAVE_KERNEL_GZIP=y
CONFIG_HAVE_KERNEL_BZIP2=y
CONFIG_HAVE_KERNEL_LZMA=y
CONFIG_HAVE_KERNEL_XZ=y
CONFIG_HAVE_KERNEL_LZO=y
CONFIG_HAVE_KERNEL_LZ4=y
# CONFIG_KERNEL_GZIP is not set
# CONFIG_KERNEL_BZIP2 is not set
CONFIG_KERNEL_LZMA=y
# CONFIG_KERNEL_XZ is not set
# CONFIG_KERNEL_LZO is not set
# CONFIG_KERNEL_LZ4 is not set
CONFIG_DEFAULT_HOSTNAME=(none)
# CONFIG_SWAP is not set
# CONFIG_SYSVIPC is not set
# CONFIG_POSIX_MQUEUE is not set
# CONFIG_CROSS_MEMORY_ATTACH is not set
# CONFIG_FHANDLE is not set
# CONFIG_USELIB is not set
# CONFIG_AUDIT is not set
CONFIG_HAVE_ARCH_AUDITSYSCALL=y

#
# IRQ subsystem
#
CONFIG_GENERIC_IRQ_PROBE=y
CONFIG_GENERIC_IRQ_SHOW=y
CONFIG_GENERIC_IRQ_LEGACY_ALLOC_HWIRQ=y
CONFIG_GENERIC_PENDING_IRQ=y
CONFIG_IRQ_DOMAIN=y
CONFIG_IRQ_FORCED_THREADING=y
CONFIG_SPARSE_IRQ=y
CONFIG_CLOCKSOURCE_WATCHDOG=y
CONFIG_ARCH_CLOCKSOURCE_DATA=y
CONFIG_GENERIC_TIME_VSYSCALL=y
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_GENERIC_CLOCKEVENTS_BUILD=y
CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y
CONFIG_GENERIC_CLOCKEVENTS_MIN_ADJUST=y
CONFIG_GENERIC_CMOS_UPDATE=y

#
# Timers subsystem
#
CONFIG_TICK_ONESHOT=y
CONFIG_NO_HZ_COMMON=y
# CONFIG_HZ_PERIODIC is not set
CONFIG_NO_HZ_IDLE=y
# CONFIG_NO_HZ_FULL is not set
CONFIG_NO_HZ=y
# CONFIG_HIGH_RES_TIMERS is not set

#
# CPU/Task time and stats accounting
#
CONFIG_TICK_CPU_ACCOUNTING=y
# CONFIG_VIRT_CPU_ACCOUNTING_GEN is not set
# CONFIG_IRQ_TIME_ACCOUNTING is not set
CONFIG_BSD_PROCESS_ACCT=y
CONFIG_BSD_PROCESS_ACCT_V3=y
# CONFIG_TASKSTATS 

[PATCH] em28xx-input: i2c IR decoders: improve i2c_client handling

2014-08-15 Thread Frank Schäfer
Instead of using a temporary stack allocated i2c_client in 
em28xx_i2c_ir_handle_key(),
allocate/free the i2c_client at module init/uninit and hook it into struct 
em28xx_IR
(if the device has an i2c IR decoder).
This reduces the frame size of function em28xx_i2c_ir_handle_key() and speeds
it up a bit.
Also make sure that all fields of struct i2c_client are initialized properly.

Signed-off-by: Frank Schäfer fschaefer@googlemail.com
---
 drivers/media/usb/em28xx/em28xx-input.c | 23 +--
 1 file changed, 13 insertions(+), 10 deletions(-)

diff --git a/drivers/media/usb/em28xx/em28xx-input.c 
b/drivers/media/usb/em28xx/em28xx-input.c
index ed843bd..962446a 100644
--- a/drivers/media/usb/em28xx/em28xx-input.c
+++ b/drivers/media/usb/em28xx/em28xx-input.c
@@ -71,8 +71,7 @@ struct em28xx_IR {
unsigned int last_readcount;
u64 rc_type;
 
-   /* i2c slave address of external device (if used) */
-   u16 i2c_dev_addr;
+   struct i2c_client *i2c_client;
 
int  (*get_key_i2c)(struct i2c_client *ir, enum rc_type *protocol, u32 
*scancode);
int  (*get_key)(struct em28xx_IR *, struct em28xx_ir_poll_result *);
@@ -294,16 +293,11 @@ static int em2874_polling_getkey(struct em28xx_IR *ir,
 
 static int em28xx_i2c_ir_handle_key(struct em28xx_IR *ir)
 {
-   struct em28xx *dev = ir-dev;
static u32 scancode;
enum rc_type protocol;
int rc;
-   struct i2c_client client;
-
-   client.adapter = ir-dev-i2c_adap[dev-def_i2c_bus];
-   client.addr = ir-i2c_dev_addr;
 
-   rc = ir-get_key_i2c(client, protocol, scancode);
+   rc = ir-get_key_i2c(ir-i2c_client, protocol, scancode);
if (rc  0) {
dprintk(ir-get_key_i2c() failed: %d\n, rc);
return rc;
@@ -361,7 +355,7 @@ static void em28xx_ir_work(struct work_struct *work)
 {
struct em28xx_IR *ir = container_of(work, struct em28xx_IR, work.work);
 
-   if (ir-i2c_dev_addr) /* external i2c device */
+   if (ir-i2c_client) /* external i2c device */
em28xx_i2c_ir_handle_key(ir);
else /* internal device */
em28xx_ir_handle_key(ir);
@@ -756,7 +750,13 @@ static int em28xx_ir_init(struct em28xx *dev)
goto error;
}
 
-   ir-i2c_dev_addr = i2c_rc_dev_addr;
+   ir-i2c_client = kzalloc(sizeof(struct i2c_client), GFP_KERNEL);
+   if (!ir-i2c_client)
+   goto error;
+   ir-i2c_client-adapter = ir-dev-i2c_adap[dev-def_i2c_bus];
+   ir-i2c_client-addr = i2c_rc_dev_addr;
+   ir-i2c_client-flags = 0;
+   /* NOTE: all other fields of i2c_client are unused */
} else {/* internal device */
switch (dev-chip_id) {
case CHIP_ID_EM2860:
@@ -815,6 +815,7 @@ static int em28xx_ir_init(struct em28xx *dev)
return 0;
 
 error:
+   kfree(ir-i2c_client);
dev-ir = NULL;
rc_free_device(rc);
kfree(ir);
@@ -841,6 +842,8 @@ static int em28xx_ir_fini(struct em28xx *dev)
if (ir-rc)
rc_unregister_device(ir-rc);
 
+   kfree(ir-i2c_client);
+
/* done */
kfree(ir);
dev-ir = NULL;
-- 
1.8.4.5

--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH v2 1/2] [media] V4L: Add camera pan/tilt speed controls

2014-08-15 Thread Vincent Palatin
The V4L2_CID_PAN_SPEED and V4L2_CID_TILT_SPEED controls allow to move the
camera by setting its rotation speed around its axis.

Signed-off-by: Vincent Palatin vpala...@chromium.org
---
Changes from v1:
- update the documentation wording according to Pawel suggestion.

 Documentation/DocBook/media/v4l/compat.xml   | 10 ++
 Documentation/DocBook/media/v4l/controls.xml | 21 +
 drivers/media/v4l2-core/v4l2-ctrls.c |  2 ++
 include/uapi/linux/v4l2-controls.h   |  2 ++
 4 files changed, 35 insertions(+)

diff --git a/Documentation/DocBook/media/v4l/compat.xml 
b/Documentation/DocBook/media/v4l/compat.xml
index eee6f0f..21910e9 100644
--- a/Documentation/DocBook/media/v4l/compat.xml
+++ b/Documentation/DocBook/media/v4l/compat.xml
@@ -2545,6 +2545,16 @@ fields changed from _s32 to _u32.
   /orderedlist
 /section
 
+section
+  titleV4L2 in Linux 3.17/title
+  orderedlist
+   listitem
+ paraAdded constantV4L2_CID_PAN_SPEED/constant and
+ constantV4L2_CID_TILT_SPEED/constant camera controls./para
+   /listitem
+  /orderedlist
+/section
+
 section id=other
   titleRelation of V4L2 to other Linux multimedia APIs/title
 
diff --git a/Documentation/DocBook/media/v4l/controls.xml 
b/Documentation/DocBook/media/v4l/controls.xml
index 47198ee..be88e64 100644
--- a/Documentation/DocBook/media/v4l/controls.xml
+++ b/Documentation/DocBook/media/v4l/controls.xml
@@ -3914,6 +3914,27 @@ by exposure, white balance or focus controls./entry
  /row
  rowentry/entry/row
 
+ row
+   entry 
spanname=idconstantV4L2_CID_PAN_SPEED/constantnbsp;/entry
+   entryinteger/entry
+ /rowrowentry spanname=descrThis control turns the
+camera horizontally at the specific speed. The unit is undefined. A
+positive value moves the camera to the right (clockwise when viewed
+from above), a negative value to the left. A value of zero stops the motion
+if one is in progress and has no effect otherwise./entry
+ /row
+ rowentry/entry/row
+
+ row
+   entry 
spanname=idconstantV4L2_CID_TILT_SPEED/constantnbsp;/entry
+   entryinteger/entry
+ /rowrowentry spanname=descrThis control turns the
+camera vertically at the specified speed. The unit is undefined. A
+positive value moves the camera up, a negative value down. A value of zero
+stops the motion if one is in progress and has no effect otherwise./entry
+ /row
+ rowentry/entry/row
+
/tbody
   /tgroup
 /table
diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c 
b/drivers/media/v4l2-core/v4l2-ctrls.c
index 55c6832..57ddaf4 100644
--- a/drivers/media/v4l2-core/v4l2-ctrls.c
+++ b/drivers/media/v4l2-core/v4l2-ctrls.c
@@ -787,6 +787,8 @@ const char *v4l2_ctrl_get_name(u32 id)
case V4L2_CID_AUTO_FOCUS_STOP:  return Auto Focus, Stop;
case V4L2_CID_AUTO_FOCUS_STATUS:return Auto Focus, Status;
case V4L2_CID_AUTO_FOCUS_RANGE: return Auto Focus, Range;
+   case V4L2_CID_PAN_SPEED:return Pan, Speed;
+   case V4L2_CID_TILT_SPEED:   return Tilt, Speed;
 
/* FM Radio Modulator control */
/* Keep the order of the 'case's the same as in videodev2.h! */
diff --git a/include/uapi/linux/v4l2-controls.h 
b/include/uapi/linux/v4l2-controls.h
index 2ac5597..5576044 100644
--- a/include/uapi/linux/v4l2-controls.h
+++ b/include/uapi/linux/v4l2-controls.h
@@ -745,6 +745,8 @@ enum v4l2_auto_focus_range {
V4L2_AUTO_FOCUS_RANGE_INFINITY  = 3,
 };
 
+#define V4L2_CID_PAN_SPEED (V4L2_CID_CAMERA_CLASS_BASE+32)
+#define V4L2_CID_TILT_SPEED(V4L2_CID_CAMERA_CLASS_BASE+33)
 
 /* FM Modulator class control IDs */
 
-- 
2.1.0.rc2.206.gedb03e5

--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] [media] usbtv: Make it dependent on ALSA

2014-08-15 Thread Mauro Carvalho Chehab
Now that alsa code is part of the driver, it can be compiled
only if alsa is enabled.

   drivers/built-in.o: In function `snd_usbtv_hw_free':
 usbtv-audio.c:(.text+0x21eb55): undefined reference to 
 `snd_pcm_lib_free_pages'
   drivers/built-in.o: In function `snd_usbtv_hw_params':
 usbtv-audio.c:(.text+0x21eb72): undefined reference to 
 `snd_pcm_lib_malloc_pages'
   drivers/built-in.o: In function `usbtv_audio_urb_received':
 usbtv-audio.c:(.text+0x21ed66): undefined reference to `snd_pcm_link_rwlock'
 usbtv-audio.c:(.text+0x21ed9f): undefined reference to `snd_pcm_link_rwlock'
 usbtv-audio.c:(.text+0x21edf5): undefined reference to 
 `snd_pcm_period_elapsed'
   drivers/built-in.o: In function `usbtv_audio_init':
 (.text+0x21f00a): undefined reference to `snd_card_new'
   drivers/built-in.o: In function `usbtv_audio_init':
 (.text+0x21f0a2): undefined reference to `snd_pcm_new'
   drivers/built-in.o: In function `usbtv_audio_init':
 (.text+0x21f0e5): undefined reference to `snd_pcm_set_ops'
   drivers/built-in.o: In function `usbtv_audio_init':
 (.text+0x21f103): undefined reference to 
 `snd_pcm_lib_preallocate_pages_for_all'
   drivers/built-in.o: In function `usbtv_audio_init':
 (.text+0x21f10c): undefined reference to `snd_card_register'
   drivers/built-in.o: In function `usbtv_audio_init':
 (.text+0x21f12a): undefined reference to `snd_card_free'
   drivers/built-in.o: In function `usbtv_audio_free':
 (.text+0x21f15c): undefined reference to `snd_card_free'
 drivers/built-in.o:(.data+0x43250): undefined reference to 
 `snd_pcm_lib_ioctl'

Reported-by: kbuild test robot fengguang...@intel.com
Signed-off-by: Mauro Carvalho Chehab m.che...@samsung.com
---
 drivers/media/usb/usbtv/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/media/usb/usbtv/Kconfig b/drivers/media/usb/usbtv/Kconfig
index 7c5b86006ee6..b833c5b9094e 100644
--- a/drivers/media/usb/usbtv/Kconfig
+++ b/drivers/media/usb/usbtv/Kconfig
@@ -1,6 +1,7 @@
 config VIDEO_USBTV
 tristate USBTV007 video capture support
-depends on VIDEO_V4L2
+depends on VIDEO_V4L2  SND
+select SND_PCM
 select VIDEOBUF2_VMALLOC
 
 ---help---
-- 
1.9.3

--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] media: stv0367: fix frontend modulation initialization with FE_CAB_MOD_QAM256

2014-08-15 Thread Maks Naumov
Signed-off-by: Maks Naumov maksq...@ukr.net
---
 drivers/media/dvb-frontends/stv0367.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/dvb-frontends/stv0367.c 
b/drivers/media/dvb-frontends/stv0367.c
index 59b6e66..0dcfb8b 100644
--- a/drivers/media/dvb-frontends/stv0367.c
+++ b/drivers/media/dvb-frontends/stv0367.c
@@ -3165,7 +3165,7 @@ static int stv0367cab_get_frontend(struct dvb_frontend 
*fe)
case FE_CAB_MOD_QAM128:
p-modulation = QAM_128;
break;
-   case QAM_256:
+   case FE_CAB_MOD_QAM256:
p-modulation = QAM_256;
break;
default:
-- 
1.9.1



--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Firmware files for 3 media device drivers

2014-08-15 Thread Kyle McMartin
On Wed, Aug 13, 2014 at 12:15:23PM -0300, Mauro Carvalho Chehab wrote:
 Hi,
 
 Please pull from:
   ssh://linuxtv.org/git/mchehab/linux-firmware.git master
 

Had to use git://linuxtv.org/mchehab/linux-firmware.git

 It has firmware files for media devices based on xc4000, xc5000c and as102.
 

Gotcha, pulled.

--Kyle

 Thanks!
 Mauro
 
 -
 
 The following changes since commit 83b97f580e002ae94f060c5bd5a536b275e81afb:
 
   Move metadata for intel/fw_sst_0f28.bin-48kHz_i2s_master into WHENCE 
 (2014-08-09 22:05:03 +0100)
 
 are available in the git repository at:
 
   ssh://linuxtv.org/git/mchehab/linux-firmware.git master
 
 for you to fetch changes up to 330e6abed89f16ab6fdca9dcfbc16105745a13fd:
 
   xc4000: add firmware for Xceive xc4000 tuner driver (2014-08-13 12:04:15 
 -0300)
 
 
 Mauro Carvalho Chehab (3):
   as102: add firmware for Abilis Systems Single DVB-T Receiver
   xc5000: Add firmware for xc5000c variant
   xc4000: add firmware for Xceive xc4000 tuner driver
 
  LICENCE.Abilis |   22 +++
  LICENCE.xc4000 |   23 +++
  LICENCE.xc5000c|   23 +++
  WHENCE |   20 ++-
  as102_data1_st.hex | 1259 
 +
  as102_data2_st.hex | 1087 
 
  dvb-fe-xc4000-1.4.1.fw |  Bin 0 - 18643 bytes
  dvb-fe-xc5000c-4.1.30.7.fw |  Bin 0 - 16497 bytes
  8 files changed, 2433 insertions(+), 1 deletion(-)
  create mode 100644 LICENCE.Abilis
  create mode 100644 LICENCE.xc4000
  create mode 100644 LICENCE.xc5000c
  create mode 100644 as102_data1_st.hex
  create mode 100644 as102_data2_st.hex
  create mode 100644 dvb-fe-xc4000-1.4.1.fw
  create mode 100644 dvb-fe-xc5000c-4.1.30.7.fw
 
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[linuxtv-media:devel 498/499] av7110.c:undefined reference to `av7110_ir_exit'

2014-08-15 Thread kbuild test robot
tree:   git://linuxtv.org/media_tree.git devel
head:   f1d2fd677f61bf4d649098317497db11a958a021
commit: 277c0ffaea64c71c39f03b9ee6818de600c38fc3 [498/499] [media] media: 
ttpci: build av7110_ir.c only when allowed by CONFIG_INPUT_EVDEV
config: x86_64-randconfig-s1-08160530 (attached as .config)

All error/warnings:

   drivers/built-in.o: In function `av7110_detach':
 av7110.c:(.text+0x228d4a): undefined reference to `av7110_ir_exit'
   drivers/built-in.o: In function `arm_thread':
 av7110.c:(.text+0x22a404): undefined reference to `av7110_check_ir_config'
 av7110.c:(.text+0x22a626): undefined reference to `av7110_check_ir_config'
   drivers/built-in.o: In function `av7110_attach':
 av7110.c:(.text+0x22b08c): undefined reference to `av7110_ir_init'

---
0-DAY kernel build testing backend  Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86_64 3.16.0-rc6 Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT=elf64-x86-64
CONFIG_ARCH_DEFCONFIG=arch/x86/configs/x86_64_defconfig
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_HAVE_LATENCYTOP_SUPPORT=y
CONFIG_MMU=y
CONFIG_NEED_DMA_MAP_STATE=y
CONFIG_NEED_SG_DMA_LENGTH=y
CONFIG_GENERIC_BUG=y
CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y
CONFIG_GENERIC_HWEIGHT=y
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_ARCH_HAS_CPU_RELAX=y
CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y
CONFIG_HAVE_SETUP_PER_CPU_AREA=y
CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y
CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y
CONFIG_ARCH_HIBERNATION_POSSIBLE=y
CONFIG_ARCH_SUSPEND_POSSIBLE=y
CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y
CONFIG_ARCH_WANT_GENERAL_HUGETLB=y
CONFIG_ZONE_DMA32=y
CONFIG_AUDIT_ARCH=y
CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y
CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
CONFIG_X86_64_SMP=y
CONFIG_X86_HT=y
CONFIG_ARCH_HWEIGHT_CFLAGS=-fcall-saved-rdi -fcall-saved-rsi -fcall-saved-rdx 
-fcall-saved-rcx -fcall-saved-r8 -fcall-saved-r9 -fcall-saved-r10 
-fcall-saved-r11
CONFIG_ARCH_SUPPORTS_UPROBES=y
CONFIG_FIX_EARLYCON_MEM=y
CONFIG_DEFCONFIG_LIST=/lib/modules/$UNAME_RELEASE/.config
CONFIG_IRQ_WORK=y
CONFIG_BUILDTIME_EXTABLE_SORT=y

#
# General setup
#
CONFIG_INIT_ENV_ARG_LIMIT=32
CONFIG_CROSS_COMPILE=
# CONFIG_COMPILE_TEST is not set
CONFIG_LOCALVERSION=
CONFIG_LOCALVERSION_AUTO=y
CONFIG_HAVE_KERNEL_GZIP=y
CONFIG_HAVE_KERNEL_BZIP2=y
CONFIG_HAVE_KERNEL_LZMA=y
CONFIG_HAVE_KERNEL_XZ=y
CONFIG_HAVE_KERNEL_LZO=y
CONFIG_HAVE_KERNEL_LZ4=y
# CONFIG_KERNEL_GZIP is not set
# CONFIG_KERNEL_BZIP2 is not set
CONFIG_KERNEL_LZMA=y
# CONFIG_KERNEL_XZ is not set
# CONFIG_KERNEL_LZO is not set
# CONFIG_KERNEL_LZ4 is not set
CONFIG_DEFAULT_HOSTNAME=(none)
CONFIG_SWAP=y
# CONFIG_SYSVIPC is not set
CONFIG_POSIX_MQUEUE=y
# CONFIG_CROSS_MEMORY_ATTACH is not set
CONFIG_FHANDLE=y
# CONFIG_USELIB is not set
CONFIG_AUDIT=y
CONFIG_HAVE_ARCH_AUDITSYSCALL=y
CONFIG_AUDITSYSCALL=y
CONFIG_AUDIT_WATCH=y
CONFIG_AUDIT_TREE=y

#
# IRQ subsystem
#
CONFIG_GENERIC_IRQ_PROBE=y
CONFIG_GENERIC_IRQ_SHOW=y
CONFIG_GENERIC_IRQ_LEGACY_ALLOC_HWIRQ=y
CONFIG_GENERIC_PENDING_IRQ=y
CONFIG_GENERIC_IRQ_CHIP=y
CONFIG_IRQ_DOMAIN=y
CONFIG_IRQ_DOMAIN_DEBUG=y
CONFIG_IRQ_FORCED_THREADING=y
CONFIG_SPARSE_IRQ=y
CONFIG_CLOCKSOURCE_WATCHDOG=y
CONFIG_ARCH_CLOCKSOURCE_DATA=y
CONFIG_GENERIC_TIME_VSYSCALL=y
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_GENERIC_CLOCKEVENTS_BUILD=y
CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y
CONFIG_GENERIC_CLOCKEVENTS_MIN_ADJUST=y
CONFIG_GENERIC_CMOS_UPDATE=y

#
# Timers subsystem
#
CONFIG_TICK_ONESHOT=y
CONFIG_NO_HZ_COMMON=y
# CONFIG_HZ_PERIODIC is not set
# CONFIG_NO_HZ_IDLE is not set
CONFIG_NO_HZ_FULL=y
# CONFIG_NO_HZ_FULL_ALL is not set
CONFIG_NO_HZ_FULL_SYSIDLE=y
CONFIG_NO_HZ_FULL_SYSIDLE_SMALL=8
# CONFIG_NO_HZ is not set
# CONFIG_HIGH_RES_TIMERS is not set

#
# CPU/Task time and stats accounting
#
CONFIG_VIRT_CPU_ACCOUNTING=y
CONFIG_VIRT_CPU_ACCOUNTING_GEN=y
# CONFIG_BSD_PROCESS_ACCT is not set
# CONFIG_TASKSTATS is not set

#
# RCU Subsystem
#
CONFIG_TREE_RCU=y
# CONFIG_PREEMPT_RCU is not set
CONFIG_RCU_STALL_COMMON=y
CONFIG_CONTEXT_TRACKING=y
CONFIG_RCU_USER_QS=y
CONFIG_CONTEXT_TRACKING_FORCE=y
CONFIG_RCU_FANOUT=64
CONFIG_RCU_FANOUT_LEAF=16
CONFIG_RCU_FANOUT_EXACT=y
# CONFIG_RCU_FAST_NO_HZ is not set
CONFIG_TREE_RCU_TRACE=y
CONFIG_RCU_NOCB_CPU=y
CONFIG_RCU_NOCB_CPU_ALL=y
CONFIG_IKCONFIG=y
CONFIG_LOG_BUF_SHIFT=17
CONFIG_HAVE_UNSTABLE_SCHED_CLOCK=y
CONFIG_ARCH_SUPPORTS_NUMA_BALANCING=y
CONFIG_ARCH_SUPPORTS_INT128=y
CONFIG_ARCH_WANTS_PROT_NUMA_PROT_NONE=y
CONFIG_CGROUPS=y
# CONFIG_CGROUP_DEBUG is not set
# CONFIG_CGROUP_FREEZER is not set
# CONFIG_CGROUP_DEVICE is not set
# CONFIG_CPUSETS is not set
# CONFIG_CGROUP_CPUACCT is not set
CONFIG_RESOURCE_COUNTERS=y
CONFIG_MEMCG=y
# CONFIG_MEMCG_SWAP is not set
# CONFIG_CGROUP_PERF is not set
CONFIG_CGROUP_SCHED=y
# CONFIG_FAIR_GROUP_SCHED is not set
# CONFIG_RT_GROUP_SCHED is not set

Re: [linuxtv-media:devel 498/499] av7110.c:undefined reference to `av7110_ir_exit'

2014-08-15 Thread Randy Dunlap
On 08/15/14 15:03, kbuild test robot wrote:
 tree:   git://linuxtv.org/media_tree.git devel
 head:   f1d2fd677f61bf4d649098317497db11a958a021
 commit: 277c0ffaea64c71c39f03b9ee6818de600c38fc3 [498/499] [media] media: 
 ttpci: build av7110_ir.c only when allowed by CONFIG_INPUT_EVDEV
 config: x86_64-randconfig-s1-08160530 (attached as .config)

Argh, thanks, fix is on the way.


 All error/warnings:
 
drivers/built-in.o: In function `av7110_detach':
 av7110.c:(.text+0x228d4a): undefined reference to `av7110_ir_exit'
drivers/built-in.o: In function `arm_thread':
 av7110.c:(.text+0x22a404): undefined reference to `av7110_check_ir_config'
 av7110.c:(.text+0x22a626): undefined reference to `av7110_check_ir_config'
drivers/built-in.o: In function `av7110_attach':
 av7110.c:(.text+0x22b08c): undefined reference to `av7110_ir_init'
 
 ---
 0-DAY kernel build testing backend  Open Source Technology Center
 http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
 


-- 
~Randy
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH v2] media: ttpci: fix av7110 build to be compatible with CONFIG_INPUT_EVDEV

2014-08-15 Thread Randy Dunlap
From: Randy Dunlap rdun...@infradead.org

Fix build when CONFIG_INPUT_EVDEV=m and DVB_AV7110=y.
Only build av7110_ir.c when CONFIG_INPUT_EVDEV is compatible with
CONFIG_DVB_AV7110.

Fixes these build errors:

drivers/built-in.o: In function `input_sync':
av7110_ir.c:(.text+0x1223ac): undefined reference to `input_event'
drivers/built-in.o: In function `av7110_emit_key':
av7110_ir.c:(.text+0x12247c): undefined reference to `input_event'
av7110_ir.c:(.text+0x122495): undefined reference to `input_event'
av7110_ir.c:(.text+0x122569): undefined reference to `input_event'
av7110_ir.c:(.text+0x1225a7): undefined reference to `input_event'
drivers/built-in.o:av7110_ir.c:(.text+0x122629): more undefined
references to `input_event' follow
drivers/built-in.o: In function `av7110_ir_init':
(.text+0x1227e4): undefined reference to `input_allocate_device'
drivers/built-in.o: In function `av7110_ir_init':
(.text+0x12298f): undefined reference to `input_register_device'
drivers/built-in.o: In function `av7110_ir_init':
(.text+0x12299e): undefined reference to `input_free_device'
drivers/built-in.o: In function `av7110_ir_exit':
(.text+0x122a94): undefined reference to `input_unregister_device'

drivers/built-in.o: In function `av7110_detach':
av7110.c:(.text+0x228d4a): undefined reference to `av7110_ir_exit'
drivers/built-in.o: In function `arm_thread':
av7110.c:(.text+0x22a404): undefined reference to `av7110_check_ir_config'
av7110.c:(.text+0x22a626): undefined reference to `av7110_check_ir_config'
drivers/built-in.o: In function `av7110_attach':
av7110.c:(.text+0x22b08c): undefined reference to `av7110_ir_init'

Signed-off-by: Randy Dunlap rdun...@infradead.org
Reported-by: Randy Dunlap rdun...@infradead.org
Reported-by: Jim Davis jim.ep...@gmail.com
Reported-by: Fengguang Wu fengguang...@intel.com
Cc: Holger Waechtler hol...@convergence.de
Cc: Oliver Endriss o.endr...@gmx.de
---
 drivers/media/pci/ttpci/Kconfig  |4 
 drivers/media/pci/ttpci/Makefile |2 +-
 drivers/media/pci/ttpci/av7110.c |8 
 3 files changed, 9 insertions(+), 5 deletions(-)

Mauro: please drop the v1 patch, which is commit ID
277c0ffaea64c71c39f03b9ee6818de600c38fc3 in your tree and
http://patchwork.linuxtv.org/patch/25342/ in patchwork.


Index: lnx-316/drivers/media/pci/ttpci/Kconfig
===
--- lnx-316.orig/drivers/media/pci/ttpci/Kconfig
+++ lnx-316/drivers/media/pci/ttpci/Kconfig
@@ -1,8 +1,12 @@
+config DVB_AV7110_IR
+   bool
+
 config DVB_AV7110
tristate AV7110 cards
depends on DVB_CORE  PCI  I2C
select TTPCI_EEPROM
select VIDEO_SAA7146_VV
+   select DVB_AV7110_IR if INPUT_EVDEV=y || INPUT_EVDEV=DVB_AV7110
depends on VIDEO_DEV# dependencies of VIDEO_SAA7146_VV
select DVB_VES1820 if MEDIA_SUBDRV_AUTOSELECT
select DVB_VES1X93 if MEDIA_SUBDRV_AUTOSELECT
Index: lnx-316/drivers/media/pci/ttpci/Makefile
===
--- lnx-316.orig/drivers/media/pci/ttpci/Makefile
+++ lnx-316/drivers/media/pci/ttpci/Makefile
@@ -5,7 +5,7 @@
 
 dvb-ttpci-objs := av7110_hw.o av7110_v4l.o av7110_av.o av7110_ca.o av7110.o 
av7110_ipack.o
 
-ifdef CONFIG_INPUT_EVDEV
+ifdef CONFIG_DVB_AV7110_IR
 dvb-ttpci-objs += av7110_ir.o
 endif
 
Index: lnx-316/drivers/media/pci/ttpci/av7110.c
===
--- lnx-316.orig/drivers/media/pci/ttpci/av7110.c
+++ lnx-316/drivers/media/pci/ttpci/av7110.c
@@ -235,7 +235,7 @@ static void recover_arm(struct av7110 *a
 
restart_feeds(av7110);
 
-#if IS_ENABLED(CONFIG_INPUT_EVDEV)
+#if IS_ENABLED(CONFIG_DVB_AV7110_IR)
av7110_check_ir_config(av7110, true);
 #endif
 }
@@ -268,7 +268,7 @@ static int arm_thread(void *data)
if (!av7110-arm_ready)
continue;
 
-#if IS_ENABLED(CONFIG_INPUT_EVDEV)
+#if IS_ENABLED(CONFIG_DVB_AV7110_IR)
av7110_check_ir_config(av7110, false);
 #endif
 
@@ -2725,7 +2725,7 @@ static int av7110_attach(struct saa7146_
 
mutex_init(av7110-ioctl_mutex);
 
-#if IS_ENABLED(CONFIG_INPUT_EVDEV)
+#if IS_ENABLED(CONFIG_DVB_AV7110_IR)
av7110_ir_init(av7110);
 #endif
printk(KERN_INFO dvb-ttpci: found av7110-%d.\n, av7110_num);
@@ -2768,7 +2768,7 @@ static int av7110_detach(struct saa7146_
struct av7110 *av7110 = saa-ext_priv;
dprintk(4, %p\n, av7110);
 
-#if IS_ENABLED(CONFIG_INPUT_EVDEV)
+#if IS_ENABLED(CONFIG_DVB_AV7110_IR)
av7110_ir_exit(av7110);
 #endif
if (budgetpatch || av7110-full_ts) {
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


E-mail administrátora.

2014-08-15 Thread E-mail administrátora .



--
POZOR!

=

Vážený užívateľ,

Toto je váš správca webmail. Prosím, byť informovaný, že e-mailový 
server bol práve aktualizovaný a váš e-mail musí byť okamžite obnoviť.


Tento proces je udržiavať aktualizované a chránené ako vždy webmail 
server.


Kliknite nižšie Ak chcete obnoviť mailovú správu teraz:

http://mailupdattwre22.jigsy.com/

S pozdravom,

E-mail administrátora.
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


cron job: media_tree daily build: WARNINGS

2014-08-15 Thread Hans Verkuil
This message is generated daily by a cron job that builds media_tree for
the kernels and architectures in the list below.

Results of the daily build of media_tree:

date:   Sat Aug 16 04:00:18 CEST 2014
git branch: test
git hash:   0f3bf3dc1ca394a8385079a5653088672b65c5c4
gcc version:i686-linux-gcc (GCC) 4.9.1
sparse version: v0.5.0-16-g1db35d0
host hardware:  x86_64
host os:3.16-0.slh.2-amd64

linux-git-arm-at91: OK
linux-git-arm-davinci: OK
linux-git-arm-exynos: OK
linux-git-arm-mx: OK
linux-git-arm-omap: OK
linux-git-arm-omap1: OK
linux-git-arm-pxa: OK
linux-git-blackfin: OK
linux-git-i686: OK
linux-git-m32r: OK
linux-git-mips: OK
linux-git-powerpc64: OK
linux-git-sh: OK
linux-git-x86_64: OK
linux-2.6.32.27-i686: OK
linux-2.6.33.7-i686: OK
linux-2.6.34.7-i686: OK
linux-2.6.35.9-i686: OK
linux-2.6.36.4-i686: OK
linux-2.6.37.6-i686: OK
linux-2.6.38.8-i686: OK
linux-2.6.39.4-i686: OK
linux-3.0.60-i686: OK
linux-3.1.10-i686: OK
linux-3.2.37-i686: OK
linux-3.3.8-i686: OK
linux-3.4.27-i686: OK
linux-3.5.7-i686: OK
linux-3.6.11-i686: OK
linux-3.7.4-i686: OK
linux-3.8-i686: OK
linux-3.9.2-i686: OK
linux-3.10.1-i686: OK
linux-3.11.1-i686: OK
linux-3.12.23-i686: OK
linux-3.13.11-i686: OK
linux-3.14.9-i686: OK
linux-3.15.2-i686: OK
linux-3.16-i686: OK
linux-2.6.32.27-x86_64: OK
linux-2.6.33.7-x86_64: OK
linux-2.6.34.7-x86_64: OK
linux-2.6.35.9-x86_64: OK
linux-2.6.36.4-x86_64: OK
linux-2.6.37.6-x86_64: OK
linux-2.6.38.8-x86_64: OK
linux-2.6.39.4-x86_64: OK
linux-3.0.60-x86_64: OK
linux-3.1.10-x86_64: OK
linux-3.2.37-x86_64: OK
linux-3.3.8-x86_64: OK
linux-3.4.27-x86_64: OK
linux-3.5.7-x86_64: OK
linux-3.6.11-x86_64: OK
linux-3.7.4-x86_64: OK
linux-3.8-x86_64: OK
linux-3.9.2-x86_64: OK
linux-3.10.1-x86_64: OK
linux-3.11.1-x86_64: OK
linux-3.12.23-x86_64: OK
linux-3.13.11-x86_64: OK
linux-3.14.9-x86_64: OK
linux-3.15.2-x86_64: OK
linux-3.16-x86_64: OK
apps: WARNINGS
spec-git: OK
sparse: WARNINGS

Detailed results are available here:

http://www.xs4all.nl/~hverkuil/logs/Saturday.log

Full logs are available here:

http://www.xs4all.nl/~hverkuil/logs/Saturday.tar.bz2

The Media Infrastructure API from this daily build is here:

http://www.xs4all.nl/~hverkuil/spec/media.html
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html