[PATCH v2 0/6] A driver for Si476x series of chips

2012-10-05 Thread Andrey Smirnov
. Andrey Smirnov (6): Add header files and Kbuild plumbing for SI476x MFD core Add the main bulk of core driver for SI476x code Add commands abstraction layer for SI476X MFD Add chip properties handling code for SI476X MFD Add a V4L2 driver for SI476X MFD Add a codec driver for SI476X MFD

[PATCH v2 1/6] Add header files and Kbuild plumbing for SI476x MFD core

2012-10-05 Thread Andrey Smirnov
other drivers that represent radio and audio codec subsystems of the chip. Signed-off-by: Andrey Smirnov andrey.smir...@convergeddevices.net --- drivers/mfd/Kconfig | 14 ++ drivers/mfd/Makefile|3 + include/linux/mfd/si476x-core.h | 529

[PATCH v2 6/6] Add a codec driver for SI476X MFD

2012-10-05 Thread Andrey Smirnov
This commit add a sound codec driver for Silicon Laboratories 476x series of AM/FM radio chips. Signed-off-by: Andrey Smirnov andrey.smir...@convergeddevices.net --- sound/soc/codecs/Kconfig |4 + sound/soc/codecs/Makefile |2 + sound/soc/codecs/si476x.c | 255

[PATCH v2 5/6] Add a V4L2 driver for SI476X MFD

2012-10-05 Thread Andrey Smirnov
This commit adds a driver that exposes all the radio related functionality of the Si476x series of chips via the V4L2 subsystem. Signed-off-by: Andrey Smirnov andrey.smir...@convergeddevices.net --- drivers/media/radio/Kconfig| 17 + drivers/media/radio/Makefile |1 + drivers

[PATCH v2 4/6] Add chip properties handling code for SI476X MFD

2012-10-05 Thread Andrey Smirnov
This patch adds code related to manipulation of the properties of SI476X chips. Signed-off-by: Andrey Smirnov andrey.smir...@convergeddevices.net --- drivers/mfd/si476x-prop.c | 477 + 1 file changed, 477 insertions(+) create mode 100644 drivers/mfd

[PATCH v2 3/6] Add commands abstraction layer for SI476X MFD

2012-10-05 Thread Andrey Smirnov
This patch adds all the functions used for exchanging commands with the chip. Signed-off-by: Andrey Smirnov andrey.smir...@convergeddevices.net --- drivers/mfd/si476x-cmd.c | 1493 ++ 1 file changed, 1493 insertions(+) create mode 100644 drivers/mfd

[PATCH v2 2/6] Add the main bulk of core driver for SI476x code

2012-10-05 Thread Andrey Smirnov
This patch adds main part(out of three) of the I2C driver for the core of MFD device. Signed-off-by: Andrey Smirnov andrey.smir...@convergeddevices.net --- drivers/mfd/si476x-i2c.c | 972 ++ 1 file changed, 972 insertions(+) create mode 100644

[PATCH] [RFC] regmap: Add no-bus configuration possibility

2012-11-03 Thread Andrey Smirnov
This patch proposes extension to the API that was suggested by Mark in the following thread: http://article.gmane.org/gmane.linux.kernel/1383734 The idea behind extensions is to allow the devices that expose some register-like interface but whose protocol for reading or writing those registers

[PATCH v3 0/6] Driver for Si476x series of chips

2012-10-23 Thread Andrey Smirnov
: 38, Failed: 0, Warnings: 0 Andrey Smirnov (6): Add header files and Kbuild plumbing for SI476x MFD core Add the main bulk of core driver for SI476x code Add commands abstraction layer for SI476X MFD Add chip properties handling code for SI476X MFD Add a V4L2 driver for SI476X MFD Add

[PATCH v3 6/6] Add a codec driver for SI476X MFD

2012-10-23 Thread Andrey Smirnov
This commit add a sound codec driver for Silicon Laboratories 476x series of AM/FM radio chips. Signed-off-by: Andrey Smirnov andrey.smir...@convergeddevices.net --- sound/soc/codecs/Kconfig |4 + sound/soc/codecs/Makefile |2 + sound/soc/codecs/si476x.c | 259

[PATCH v3 5/6] Add a V4L2 driver for SI476X MFD

2012-10-23 Thread Andrey Smirnov
This commit adds a driver that exposes all the radio related functionality of the Si476x series of chips via the V4L2 subsystem. Signed-off-by: Andrey Smirnov andrey.smir...@convergeddevices.net --- drivers/media/radio/Kconfig| 17 + drivers/media/radio/Makefile |1 + drivers

[PATCH v3 4/6] Add chip properties handling code for SI476X MFD

2012-10-23 Thread Andrey Smirnov
This patch adds code related to manipulation of the properties of SI476X chips. Signed-off-by: Andrey Smirnov andrey.smir...@convergeddevices.net --- drivers/mfd/si476x-prop.c | 257 + 1 file changed, 257 insertions(+) create mode 100644 drivers/mfd

[PATCH v3 1/6] Add header files and Kbuild plumbing for SI476x MFD core

2012-10-23 Thread Andrey Smirnov
other drivers that represent radio and audio codec subsystems of the chip. Signed-off-by: Andrey Smirnov andrey.smir...@convergeddevices.net --- drivers/mfd/Kconfig | 14 + drivers/mfd/Makefile|3 + include/linux/mfd/si476x-core.h | 539

[PATCH v3 3/6] Add commands abstraction layer for SI476X MFD

2012-10-23 Thread Andrey Smirnov
This patch adds all the functions used for exchanging commands with the chip. Signed-off-by: Andrey Smirnov andrey.smir...@convergeddevices.net --- drivers/mfd/si476x-cmd.c | 1546 ++ 1 file changed, 1546 insertions(+) create mode 100644 drivers/mfd

[PATCH v3 2/6] Add the main bulk of core driver for SI476x code

2012-10-23 Thread Andrey Smirnov
This patch adds main part(out of three) of the I2C driver for the core of MFD device. Signed-off-by: Andrey Smirnov andrey.smir...@convergeddevices.net --- drivers/mfd/si476x-i2c.c | 966 ++ 1 file changed, 966 insertions(+) create mode 100644

Re: [PATCH v3 6/6] Add a codec driver for SI476X MFD

2012-10-23 Thread Andrey Smirnov
On 10/23/2012 12:24 PM, Mark Brown wrote: On Tue, Oct 23, 2012 at 11:44:32AM -0700, Andrey Smirnov wrote: This commit add a sound codec driver for Silicon Laboratories 476x series of AM/FM radio chips. I already merged a driver for this. If there are any changes you should send incremental

Re: [PATCH v2 5/6] Add a V4L2 driver for SI476X MFD

2012-10-08 Thread Andrey Smirnov
On 10/08/2012 02:30 AM, Hans Verkuil wrote: On Sat October 6 2012 03:55:01 Andrey Smirnov wrote: This commit adds a driver that exposes all the radio related functionality of the Si476x series of chips via the V4L2 subsystem. Signed-off-by: Andrey Smirnov andrey.smir...@convergeddevices.net

Re: [PATCH v2 1/6] Add header files and Kbuild plumbing for SI476x MFD core

2012-10-08 Thread Andrey Smirnov
On 10/08/2012 01:43 AM, Hans Verkuil wrote: On Sat October 6 2012 03:54:57 Andrey Smirnov wrote: This patch adds all necessary header files and Kbuild plumbing for the core driver for Silicon Laboratories Si476x series of AM/FM tuner chips. The driver as a whole is implemented as an MFD

Re: [PATCH v2 3/6] Add commands abstraction layer for SI476X MFD

2012-10-08 Thread Andrey Smirnov
On 10/08/2012 01:56 AM, Hans Verkuil wrote: On Sat October 6 2012 03:54:59 Andrey Smirnov wrote: This patch adds all the functions used for exchanging commands with the chip. Signed-off-by: Andrey Smirnov andrey.smir...@convergeddevices.net --- drivers/mfd/si476x-cmd.c | 1493

Re: [PATCH v2 2/6] Add the main bulk of core driver for SI476x code

2012-10-09 Thread Andrey Smirnov
On 10/08/2012 11:33 PM, Mark Brown wrote: On Fri, Oct 05, 2012 at 06:54:58PM -0700, Andrey Smirnov wrote: +err = regulator_enable(core-supplies.va); +if (err 0) +break; + +err

Re: [PATCH v3 2/6] Add the main bulk of core driver for SI476x code

2012-10-25 Thread Andrey Smirnov
On 10/25/2012 12:45 PM, Mark Brown wrote: On Tue, Oct 23, 2012 at 11:44:28AM -0700, Andrey Smirnov wrote: +core-regmap = devm_regmap_init_si476x(core); +if (IS_ERR(core-regmap)) { This really makes little sense to me, why are you doing this? Does the device *really* layer a byte

Re: [PATCH v3 2/6] Add the main bulk of core driver for SI476x code

2012-10-27 Thread Andrey Smirnov
On 10/27/2012 02:31 PM, Mark Brown wrote: On Thu, Oct 25, 2012 at 03:26:02PM -0700, Andrey Smirnov wrote: On 10/25/2012 12:45 PM, Mark Brown wrote: This really makes little sense to me, why are you doing this? Does the device *really* layer a byte stream on top of I2C for sending messages

Re: [PATCH] [RFC] regmap: Add no-bus configuration possibility

2012-11-13 Thread Andrey Smirnov
On 11/03/2012 05:18 PM, Andrey Smirnov wrote: This patch proposes extension to the API that was suggested by Mark in the following thread: http://article.gmane.org/gmane.linux.kernel/1383734 The idea behind extensions is to allow the devices that expose some register-like interface but whose

Re: linux-next: manual merge of the mfd tree with the v4l-dvb tree

2013-04-16 Thread Andrey Smirnov
On Tue, Apr 16, 2013 at 6:51 AM, Samuel Ortiz sa...@linux.intel.com wrote: Hi Mauro, On Wed, Apr 10, 2013 at 06:48:28AM -0300, Mauro Carvalho Chehab wrote: Em Wed, 10 Apr 2013 08:42:53 +0200 Samuel Ortiz sa...@linux.intel.com escreveu: Hi Stephen, On Wed, Apr 10, 2013 at 01:48:13PM

[PATCH 07/12] v4l2: Add documentation for the FM RX controls

2013-04-18 Thread Andrey Smirnov
Add appropriate documentation for all the newly added standard controls. Based on the patch by Manjunatha Halli [1] [1] http://lists-archives.com/linux-kernel/27641303-media-update-docs-for-v4l2-fm-new-features.html Acked-by: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Andrey Smirnov

[PATCH 10/12] radio-si476x: vidioc_s* now uses a const parameter

2013-04-18 Thread Andrey Smirnov
: warning: (near initialization for 'si4761_ioctl_ops.vidioc_s_register') [enabled by default] This is due to a (soft) merge conflict, as both this driver and the const patches were applied for the same Kernel version. Acked-by: Hans Verkuil hans.verk...@cisco.com Acked-by: Andrey Smirnov andrew.smir

[PATCH 09/12] v4l2: Add a V4L2 driver for SI476X MFD

2013-04-18 Thread Andrey Smirnov
From: Andrey Smirnov andreysm@charmander.(none) This commit adds a driver that exposes all the radio related functionality of the Si476x series of chips via the V4L2 subsystem. Acked-by: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- Documentation

[PATCH 12/12] radio-si476x: Fix incorrect pointer checking

2013-04-18 Thread Andrey Smirnov
and si476x_radio_read_rsq_primary_blob. * Add some BUG_ON statements for function pointers that should never be NULL Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com Signed-off-by: Dan Carpenter dan.carpen...@oracle.com --- drivers/media/radio/radio-si476x.c | 90 +--- 1 file changed, 33

[PATCH 05/12] v4l2: Fix the type of V4L2_CID_TUNE_PREEMPHASIS in the documentation

2013-04-18 Thread Andrey Smirnov
Change the type of V4L2_CID_TUNE_PREEMPHASIS from 'integer' to 'enum v4l2_preemphasis' Acked-by: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- Documentation/DocBook/media/v4l/controls.xml |2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 11/12] si476x: Fix some config dependencies and a compile warnings

2013-04-18 Thread Andrey Smirnov
specifier ‘*’ expects argument of type ‘int’, but argument 4 has type ‘long unsigned int’ [-Wformat] Acked-by: Andrey Smirnov andrew.smir...@gmail.com Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/radio/Kconfig |2 +- drivers/mfd/Kconfig |1 + drivers/mfd

[PATCH 08/12] v4l2: Add private controls base for SI476X

2013-04-18 Thread Andrey Smirnov
Add a base to be used for allocation of all the SI476X specific controls in the corresponding driver. Acked-by: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- include/uapi/linux/v4l2-controls.h |4 1 file changed, 4 insertions(+) diff

[PATCH v9 00/12] Driver for Si476x series of chips

2013-04-18 Thread Andrey Smirnov
/si476x.h to mfd patches because it would also break bisectability since media/si476x.h depends on patch #8 in this patchset(whcih is the change that should go through 'media' tree) But I rearranged definitions and there shouldn't be any dependencies on media patches in MFD part. Andrey Smirnov (10

[PATCH 03/12] mfd: Add chip properties handling code for SI476X MFD

2013-04-18 Thread Andrey Smirnov
From: Andrey Smirnov andreysm@charmander.(none) This patch adds code related to manipulation of the properties of SI476X chips. Acked-by: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- drivers/mfd/si476x-prop.c | 241

[PATCH 02/12] mfd: Add the main bulk of core driver for SI476x code

2013-04-18 Thread Andrey Smirnov
From: Andrey Smirnov andreysm@charmander.(none) This patch adds main part(out of three) of the I2C driver for the core of MFD device. Acked-by: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- drivers/mfd/si476x-i2c.c | 886

[PATCH 06/12] v4l2: Add standard controls for FM receivers

2013-04-18 Thread Andrey Smirnov
is based on the code found in the patch by Manjunatha Halli [1] [1] http://lists-archives.com/linux-kernel/27641307-new-control-class-and-features-for-fm-rx.html Acked-by: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- drivers/media/v4l2-core/v4l2

[PATCH 04/12] mfd: Add header files and Kbuild plumbing for SI476x MFD core

2013-04-18 Thread Andrey Smirnov
From: Andrey Smirnov andreysm@charmander.(none) This patch adds all necessary header files and Kbuild plumbing for the core driver for Silicon Laboratories Si476x series of AM/FM tuner chips. The driver as a whole is implemented as an MFD device and this patch adds a core portion

[PATCH 01/12] mfd: Add commands abstraction layer for SI476X MFD

2013-04-18 Thread Andrey Smirnov
From: Andrey Smirnov andreysm@charmander.(none) This patch adds all the functions used for exchanging commands with the chip. Acked-by: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- drivers/mfd/si476x-cmd.c | 1553

Re: [PATCH v9 00/12] Driver for Si476x series of chips

2013-04-19 Thread Andrey Smirnov
On Fri, Apr 19, 2013 at 2:31 PM, Samuel Ortiz sa...@linux.intel.com wrote: Hi Andrey, On Thu, Apr 18, 2013 at 09:58:26AM -0700, Andrey Smirnov wrote: Driver for Si476x series of chips This is a eight version of the patchset originaly posted here: https://lkml.org/lkml/2012/9/13/590 Second

Re: [PATCH v9 00/12] Driver for Si476x series of chips

2013-04-20 Thread Andrey Smirnov
I applied all the MFD patches from this patchset (All 4 first ones), plus a follow up one for fixing the i2c related warning. I also squashed the REGMAP_I2C dependency into patch #4. It's all in mfd-next now, I'd appreciate if you could double check it's all fine. I checked out latest

Re: [PATCH v9 00/12] Driver for Si476x series of chips

2013-04-21 Thread Andrey Smirnov
On Sun, Apr 21, 2013 at 2:33 AM, Mauro Carvalho Chehab mche...@redhat.com wrote: Em 21-04-2013 02:53, Andrey Smirnov escreveu: I applied all the MFD patches from this patchset (All 4 first ones), plus a follow up one for fixing the i2c related warning. I also squashed the REGMAP_I2C

Re: [PATCH v7 1/9] mfd: Add commands abstraction layer for SI476X MFD

2013-03-19 Thread Andrey Smirnov
On Mon, Mar 18, 2013 at 1:11 PM, Mauro Carvalho Chehab mche...@redhat.com wrote: Em Tue, 26 Feb 2013 22:06:45 -0800 Andrey Smirnov andrew.smir...@gmail.com escreveu: This patch adds all the functions used for exchanging commands with the chip. Please run checkpatch.pl over those patches

[PATCH v8 0/9] Driver for Si476x series of chips

2013-03-26 Thread Andrey Smirnov
: - checkpatch.pl fixes Pleas note that patches are not completely warning free, as far as checkpatch.pl is concerned, because I skipped all the places where 80-character compliance can be acheived only by means of weird indentation. Andrey Smirnov (9): mfd: Add commands abstraction layer for SI476X MFD

[PATCH v8 1/9] mfd: Add commands abstraction layer for SI476X MFD

2013-03-26 Thread Andrey Smirnov
From: Andrey Smirnov andreysm@charmander.(none) This patch adds all the functions used for exchanging commands with the chip. Acked-by: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- drivers/mfd/si476x-cmd.c | 1554

[PATCH v8 5/9] v4l2: Fix the type of V4L2_CID_TUNE_PREEMPHASIS in the documentation

2013-03-26 Thread Andrey Smirnov
Change the type of V4L2_CID_TUNE_PREEMPHASIS from 'integer' to 'enum v4l2_preemphasis' Acked-by: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- Documentation/DocBook/media/v4l/controls.xml |2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH v8 8/9] v4l2: Add private controls base for SI476X

2013-03-26 Thread Andrey Smirnov
Add a base to be used for allocation of all the SI476X specific controls in the corresponding driver. Acked-by: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- include/uapi/linux/v4l2-controls.h |4 1 file changed, 4 insertions(+) diff

[PATCH v8 3/9] mfd: Add chip properties handling code for SI476X MFD

2013-03-26 Thread Andrey Smirnov
From: Andrey Smirnov andreysm@charmander.(none) This patch adds code related to manipulation of the properties of SI476X chips. Acked-by: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- drivers/mfd/si476x-prop.c | 242

[PATCH v8 6/9] v4l2: Add standard controls for FM receivers

2013-03-26 Thread Andrey Smirnov
is based on the code found in the patch by Manjunatha Halli [1] [1] http://lists-archives.com/linux-kernel/27641307-new-control-class-and-features-for-fm-rx.html Acked-by: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- drivers/media/v4l2-core/v4l2

[PATCH v8 7/9] v4l2: Add documentation for the FM RX controls

2013-03-26 Thread Andrey Smirnov
Add appropriate documentation for all the newly added standard controls. Based on the patch by Manjunatha Halli [1] [1] http://lists-archives.com/linux-kernel/27641303-media-update-docs-for-v4l2-fm-new-features.html Acked-by: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Andrey Smirnov

[PATCH v8 4/9] mfd: Add header files and Kbuild plumbing for SI476x MFD core

2013-03-26 Thread Andrey Smirnov
From: Andrey Smirnov andreysm@charmander.(none) This patch adds all necessary header files and Kbuild plumbing for the core driver for Silicon Laboratories Si476x series of AM/FM tuner chips. The driver as a whole is implemented as an MFD device and this patch adds a core portion

[PATCH v8 2/9] mfd: Add the main bulk of core driver for SI476x code

2013-03-26 Thread Andrey Smirnov
From: Andrey Smirnov andreysm@charmander.(none) This patch adds main part(out of three) of the I2C driver for the core of MFD device. Acked-by: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- drivers/mfd/si476x-i2c.c | 886

[PATCH v5 0/8] Driver for Si476x series of chips

2013-02-25 Thread Andrey Smirnov
changes: - Generic controls are converted to standard ones - Custom controls use a differend offest as base - Added documentation with controls description Andrey Smirnov (8): mfd: Add header files and Kbuild plumbing for SI476x MFD core mfd: Add commands abstraction layer for SI476X MFD mfd

[PATCH v5 7/8] v4l2: Add private controls base for SI476X

2013-02-25 Thread Andrey Smirnov
Add a base to be used for allocation of all the SI476X specific controls in the corresponding driver. Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- include/uapi/linux/v4l2-controls.h |4 1 file changed, 4 insertions(+) diff --git a/include/uapi/linux/v4l2-controls.h b

[PATCH v5 5/8] v4l2: Add standard controls for FM receivers

2013-02-25 Thread Andrey Smirnov
-by: Andrey Smirnov andrew.smir...@gmail.com --- drivers/media/v4l2-core/v4l2-ctrls.c | 14 +++--- include/uapi/linux/v4l2-controls.h | 13 - 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c b/drivers/media/v4l2-core/v4l2

[PATCH v5 4/8] mfd: Add chip properties handling code for SI476X MFD

2013-02-25 Thread Andrey Smirnov
From: Andrey Smirnov andreysm@charmander.(none) This patch adds code related to manipulation of the properties of SI476X chips. Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- drivers/mfd/si476x-prop.c | 234 + 1 file changed, 234

[PATCH v5 1/8] mfd: Add header files and Kbuild plumbing for SI476x MFD core

2013-02-25 Thread Andrey Smirnov
From: Andrey Smirnov andreysm@charmander.(none) This patch adds all necessary header files and Kbuild plumbing for the core driver for Silicon Laboratories Si476x series of AM/FM tuner chips. The driver as a whole is implemented as an MFD device and this patch adds a core portion

[PATCH v5 3/8] mfd: Add the main bulk of core driver for SI476x code

2013-02-25 Thread Andrey Smirnov
From: Andrey Smirnov andreysm@charmander.(none) This patch adds main part(out of three) of the I2C driver for the core of MFD device. Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- drivers/mfd/si476x-i2c.c | 878 ++ 1 file changed, 878

[PATCH v5 2/8] mfd: Add commands abstraction layer for SI476X MFD

2013-02-25 Thread Andrey Smirnov
From: Andrey Smirnov andreysm@charmander.(none) This patch adds all the functions used for exchanging commands with the chip. Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- drivers/mfd/si476x-cmd.c | 1553 ++ 1 file changed, 1553

Re: [PATCH v5 8/8] v4l2: Add a V4L2 driver for SI476X MFD

2013-02-26 Thread Andrey Smirnov
snip + +enum phase_diversity_modes_idx { + SI476X_IDX_PHDIV_DISABLED, + SI476X_IDX_PHDIV_PRIMARY_COMBINING, + SI476X_IDX_PHDIV_PRIMARY_ANTENNA, + SI476X_IDX_PHDIV_SECONDARY_ANTENNA, + SI476X_IDX_PHDIV_SECONDARY_COMBINING, +}; + +static const char * const

[PATCH v6 0/9] Driver for Si476x series of chips

2013-02-26 Thread Andrey Smirnov
to the earlier described task, but for ALSA SoC subsystem. v6 of this driver has following changes: - Minor corrections Andrey Smirnov (9): mfd: Add header files and Kbuild plumbing for SI476x MFD core mfd: Add commands abstraction layer for SI476X MFD mfd: Add the main bulk of core driver

[PATCH v6 6/9] v4l2: Add standard controls for FM receivers

2013-02-26 Thread Andrey Smirnov
is based on the code found in the patch by Manjunatha Halli [1] [1] http://lists-archives.com/linux-kernel/27641307-new-control-class-and-features-for-fm-rx.html Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- drivers/media/v4l2-core/v4l2-ctrls.c | 14 +++--- include/uapi/linux

[PATCH v6 8/9] v4l2: Add private controls base for SI476X

2013-02-26 Thread Andrey Smirnov
Add a base to be used for allocation of all the SI476X specific controls in the corresponding driver. Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- include/uapi/linux/v4l2-controls.h |4 1 file changed, 4 insertions(+) diff --git a/include/uapi/linux/v4l2-controls.h b

[PATCH v6 5/9] v4l2: Fix the type of V4L2_CID_TUNE_PREEMPHASIS in the documentation

2013-02-26 Thread Andrey Smirnov
Change the type of V4L2_CID_TUNE_PREEMPHASIS from 'integer' to 'enum v4l2_preemphasis' Singed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- Documentation/DocBook/media/v4l/controls.xml |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/DocBook/media/v4l

[PATCH v6 1/9] mfd: Add header files and Kbuild plumbing for SI476x MFD core

2013-02-26 Thread Andrey Smirnov
From: Andrey Smirnov andreysm@charmander.(none) This patch adds all necessary header files and Kbuild plumbing for the core driver for Silicon Laboratories Si476x series of AM/FM tuner chips. The driver as a whole is implemented as an MFD device and this patch adds a core portion

[PATCH v6 4/9] mfd: Add chip properties handling code for SI476X MFD

2013-02-26 Thread Andrey Smirnov
From: Andrey Smirnov andreysm@charmander.(none) This patch adds code related to manipulation of the properties of SI476X chips. Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- drivers/mfd/si476x-prop.c | 234 + 1 file changed, 234

[PATCH v6 3/9] mfd: Add the main bulk of core driver for SI476x code

2013-02-26 Thread Andrey Smirnov
From: Andrey Smirnov andreysm@charmander.(none) This patch adds main part(out of three) of the I2C driver for the core of MFD device. Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- drivers/mfd/si476x-i2c.c | 878 ++ 1 file changed, 878

[PATCH v6 2/9] mfd: Add commands abstraction layer for SI476X MFD

2013-02-26 Thread Andrey Smirnov
From: Andrey Smirnov andreysm@charmander.(none) This patch adds all the functions used for exchanging commands with the chip. Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- drivers/mfd/si476x-cmd.c | 1553 ++ 1 file changed, 1553

[PATCH v7 0/9] Driver for Si476x series of chips

2013-02-26 Thread Andrey Smirnov
requests into Core device commands. 3. Codec device that does similar to the earlier described task, but for ALSA SoC subsystem. v7 of this driver has following changes: - Minor Makefile/Kconfig changes - MFD driver commit reordering as per suggestions from Sam Ravnborg Andrey Smirnov (9

[PATCH v7 7/9] v4l2: Add documentation for the FM RX controls

2013-02-26 Thread Andrey Smirnov
Add appropriate documentation for all the newly added standard controls. Based on the patch by Manjunatha Halli [1] [1] http://lists-archives.com/linux-kernel/27641303-media-update-docs-for-v4l2-fm-new-features.html Acked-by: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Andrey Smirnov

[PATCH v7 8/9] v4l2: Add private controls base for SI476X

2013-02-26 Thread Andrey Smirnov
Add a base to be used for allocation of all the SI476X specific controls in the corresponding driver. Acked-by: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- include/uapi/linux/v4l2-controls.h |4 1 file changed, 4 insertions(+) diff

[PATCH v7 1/9] mfd: Add commands abstraction layer for SI476X MFD

2013-02-26 Thread Andrey Smirnov
This patch adds all the functions used for exchanging commands with the chip. Acked-by: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- drivers/mfd/si476x-cmd.c | 1553 ++ 1 file changed, 1553 insertions

[PATCH v7 4/9] mfd: Add header files and Kbuild plumbing for SI476x MFD core

2013-02-26 Thread Andrey Smirnov
other drivers that represent radio and audio codec subsystems of the chip. Acked-by: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- drivers/mfd/Kconfig | 12 + drivers/mfd/Makefile|4 + include/linux/mfd/si476x-core.h

[PATCH v7 6/9] v4l2: Add standard controls for FM receivers

2013-02-26 Thread Andrey Smirnov
is based on the code found in the patch by Manjunatha Halli [1] [1] http://lists-archives.com/linux-kernel/27641307-new-control-class-and-features-for-fm-rx.html Acked-by: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- drivers/media/v4l2-core/v4l2

[PATCH v7 5/9] v4l2: Fix the type of V4L2_CID_TUNE_PREEMPHASIS in the documentation

2013-02-26 Thread Andrey Smirnov
Change the type of V4L2_CID_TUNE_PREEMPHASIS from 'integer' to 'enum v4l2_preemphasis' Acked-by: Hans Verkuil hans.verk...@cisco.com Singed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- Documentation/DocBook/media/v4l/controls.xml |2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH v7 3/9] mfd: Add chip properties handling code for SI476X MFD

2013-02-26 Thread Andrey Smirnov
This patch adds code related to manipulation of the properties of SI476X chips. Acked-by: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- drivers/mfd/si476x-prop.c | 234 + 1 file changed, 234 insertions

[PATCH v7 2/9] mfd: Add the main bulk of core driver for SI476x code

2013-02-26 Thread Andrey Smirnov
This patch adds main part(out of three) of the I2C driver for the core of MFD device. Acked-by: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- drivers/mfd/si476x-i2c.c | 878 ++ 1 file changed, 878

[PATCH v3 3/3] regmap: Add no-bus option for regmap API

2013-01-27 Thread Andrey Smirnov
register access sequence does not fit the 'bus' abstraction. Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- drivers/base/regmap/internal.h |2 ++ drivers/base/regmap/regmap.c | 58 +++- include/linux/regmap.h | 18 - 3

[PATCH v4 0/7] Driver for Si476x series of chips

2013-02-18 Thread Andrey Smirnov
VIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported) Buffer ioctls: test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported) Total: 38, Succeeded: 38, Failed: 0, Warnings: 0 Andrey Smirnov (7): mfd: Add header files and Kbuild plumbing for SI476x

[PATCH v4 1/7] mfd: Add header files and Kbuild plumbing for SI476x MFD core

2013-02-18 Thread Andrey Smirnov
From: Andrey Smirnov andreysm@charmander.(none) This patch adds all necessary header files and Kbuild plumbing for the core driver for Silicon Laboratories Si476x series of AM/FM tuner chips. The driver as a whole is implemented as an MFD device and this patch adds a core portion

[PATCH v4 6/7] sound/soc/codecs: Convert SI476X codec to use regmap

2013-02-18 Thread Andrey Smirnov
From: Andrey Smirnov andreysm@charmander.(none) The latest radio and MFD drivers for SI476X radio chips use regmap API to provide access to the registers and allow for caching of their values when the actual chip is powered off. Convert the codec driver to do the same, so it would not loose

[PATCH v4 7/7] sound/soc/codecs: Cosmetic changes to SI476X codec driver

2013-02-18 Thread Andrey Smirnov
- Add appropriate license header - Change email address in MODULE_AUTHOR - Remove trailing whitespaces Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- sound/soc/codecs/si476x.c | 25 ++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/sound/soc

[PATCH v4 3/7] mfd: Add the main bulk of core driver for SI476x code

2013-02-18 Thread Andrey Smirnov
From: Andrey Smirnov andreysm@charmander.(none) This patch adds main part(out of three) of the I2C driver for the core of MFD device. Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- drivers/mfd/si476x-i2c.c | 878 ++ 1 file changed, 878

[PATCH v4 2/7] mfd: Add commands abstraction layer for SI476X MFD

2013-02-18 Thread Andrey Smirnov
From: Andrey Smirnov andreysm@charmander.(none) This patch adds all the functions used for exchanging commands with the chip. Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- drivers/mfd/si476x-cmd.c | 1553 ++ 1 file changed, 1553

[PATCH v4 4/7] mfd: Add chip properties handling code for SI476X MFD

2013-02-18 Thread Andrey Smirnov
From: Andrey Smirnov andreysm@charmander.(none) This patch adds code related to manipulation of the properties of SI476X chips. Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- drivers/mfd/si476x-prop.c | 234 + 1 file changed, 234

[PATCH 3/3] Add a codec driver for SI476X MFD

2012-09-13 Thread Andrey Smirnov
This commit add a sound codec driver for Silicon Laboratories 476x series of AM/FM radio chips. Signed-off-by: Andrey Smirnov andrey.smir...@convergeddevices.net --- sound/soc/codecs/Kconfig |4 + sound/soc/codecs/Makefile |2 + sound/soc/codecs/si476x.c | 346

[PATCH 2/3] Add a V4L2 driver for SI476X MFD

2012-09-13 Thread Andrey Smirnov
This commit adds a driver that exposes all the radio related functionality of the Si476x series of chips via the V4L2 subsystem. Signed-off-by: Andrey Smirnov andrey.smir...@convergeddevices.net --- drivers/media/radio/Kconfig| 17 + drivers/media/radio/radio-si476x.c | 1307

[PATCH 0/3] A driver for Si476x series of chips

2012-09-13 Thread Andrey Smirnov
: 2b, 3, 5, 7, 9, 10 Andrey Smirnov (3): Add a core driver for SI476x MFD Add a V4L2 driver for SI476X MFD Add a codec driver for SI476X MFD drivers/media/radio/Kconfig| 17 + drivers/media/radio/radio-si476x.c | 1307 +++ drivers/mfd/Kconfig

[PATCH v2] [RFC] regmap: Add no-bus configuration possibility

2012-11-23 Thread Andrey Smirnov
Second version of the patch with incorporated suggestions form Mark(hopefully): https://lkml.org/lkml/2012/11/20/249 Once again at this point this patch is for illustrative purposes. If the overall structure and nature of the change is agreed upon, I'll work on properly implementing it and

Re: [PATCH v3 5/6] Add a V4L2 driver for SI476X MFD

2012-11-23 Thread Andrey Smirnov
On 11/16/2012 07:02 AM, Hans Verkuil wrote: Hi Andrey, Some more comments... On Tue October 23 2012 20:44:31 Andrey Smirnov wrote: This commit adds a driver that exposes all the radio related functionality of the Si476x series of chips via the V4L2 subsystem. Signed-off-by: Andrey Smirnov

Re: [PATCH v2 1/6] Add header files and Kbuild plumbing for SI476x MFD core

2012-12-18 Thread Andrey Smirnov
On 12-12-18 11:37 AM, Mauro Carvalho Chehab wrote: Em Mon, 8 Oct 2012 11:38:01 -0700 Andrey Smirnov andrey.smir...@convergeddevices.net escreveu: On 10/08/2012 01:43 AM, Hans Verkuil wrote: On Sat October 6 2012 03:54:57 Andrey Smirnov wrote: This patch adds all necessary header files

[PATCH 0/3] Add no-bus configuration for regmap API

2012-12-21 Thread Andrey Smirnov
to use that infrastracture. Third patch introduces code that implements 'no-bus' configuration Andrey Smirnov (3): Add provisions to have user-defined read operation Add provisions to have user-defined write operation Add no-bus option for regmap API drivers/base/regmap/internal.h |5

[PATCH 1/3] Add provisions to have user-defined read operation

2012-12-21 Thread Andrey Smirnov
This commit is a preparatory commit to provide no-bus configuration option for regmap API. It adds necessary plumbing needed to have the ability to provide user define register read function. Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- drivers/base/regmap/internal.h |2

[PATCH 2/3] Add provisions to have user-defined write operation

2012-12-21 Thread Andrey Smirnov
This commit is a preparatory commit to provide no-bus configuration option for regmap API. It adds necessary plumbing needed to have the ability to provide user define register write function. Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- drivers/base/regmap/internal.h |1

[PATCH 3/3] Add no-bus option for regmap API

2012-12-21 Thread Andrey Smirnov
register access sequence does not fit the 'bus' abstraction. Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- drivers/base/regmap/internal.h |6 ++-- drivers/base/regmap/regmap.c | 78 include/linux/regmap.h |7 3 files

Re: [PATCH 3/3] Add no-bus option for regmap API

2012-12-29 Thread Andrey Smirnov
- int (*reg_read)(struct regmap *map, unsigned int reg, unsigned int *val); - int (*reg_write)(struct regmap *map, unsigned int reg, unsigned int val); + int (*reg_read)(void *context, unsigned int reg, unsigned int *val); + int (*reg_write)(void *context, unsigned int reg,

[PATCH v2 0/3] [regmap] Add no-bus configuration for regmap API

2012-12-30 Thread Andrey Smirnov
argument in all the patches - Minor improvements in documentation Andrey Smirnov (3): Add provisions to have user-defined read operation Add provisions to have user-defined write operation Add no-bus option for regmap API drivers/base/regmap/internal.h |5 ++ drivers/base/regmap/regmap.c

[PATCH v2 2/3] [regmap] Add provisions to have user-defined write operation

2012-12-30 Thread Andrey Smirnov
This commit is a preparatory commit to provide no-bus configuration option for regmap API. It adds necessary plumbing needed to have the ability to provide user define register write function. Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- drivers/base/regmap/internal.h |1

[PATCH v2 3/3] [regmap] Add no-bus option for regmap API

2012-12-30 Thread Andrey Smirnov
register access sequence does not fit the 'bus' abstraction. Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- drivers/base/regmap/internal.h |2 ++ drivers/base/regmap/regmap.c | 52 ++-- include/linux/regmap.h | 18 +- 3

[PATCH v2 1/3] [regmap] Add provisions to have user-defined read operation

2012-12-30 Thread Andrey Smirnov
This commit is a preparatory commit to provide no-bus configuration option for regmap API. It adds necessary plumbing needed to have the ability to provide user define register read function. Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- drivers/base/regmap/internal.h |2

[PATCH 1/3] [regmap] [RESEND] Add provisions to have user-defined read operation

2013-01-12 Thread Andrey Smirnov
This commit is a preparatory commit to provide no-bus configuration option for regmap API. It adds necessary plumbing needed to have the ability to provide user define register read function. Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- drivers/base/regmap/internal.h |2

[PATCH 3/3] [regmap] [RESEND] Add no-bus option for regmap API

2013-01-12 Thread Andrey Smirnov
register access sequence does not fit the 'bus' abstraction. Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com --- drivers/base/regmap/internal.h |2 ++ drivers/base/regmap/regmap.c | 52 ++-- include/linux/regmap.h | 18 +- 3

  1   2   3   4   5   6   7   8   9   10   >