Commit Graph

884 Commits

Author SHA1 Message Date
Srinivasa Rao Uppala
4e38bfc56c radio: tavarua: Added place holder for notch filter ioctl
This patch adds place holder for notch filter, to keep
the driver compatible with the framework changes made for IRIS

CRs-fixed: 306856
Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>
2011-10-03 16:20:46 -07:00
Mingcheng Zhu
8e9f99e622 msm: add video processing engine (VPE) as a V4L2 subdev in 8960.
Signed-off-by: Mingcheng Zhu <mingchen@codeaurora.org>
2011-10-03 16:20:18 -07:00
Srinivasa Rao Uppala
3c7a8eb9d8 radio: iris: Added missing radio Events & IOCTLs.
Added support for events rds availability, service availability,
alternate frequency list and RDS group complete.

Added IOCTLs for search on, radio state, search Program Type,
search Program Identification, alternate frequency jump,
stop Program Service name transmission and stop radio text transmission.

CRs-fixed: 307369
Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>
2011-10-03 16:20:00 -07:00
Sreesudhan Ramakrish Ramkumar
5f4b344ef8 msm: camera: Get info changes for unified actuator
Signed-off-by: Sreesudhan Ramakrish Ramkumar <srramku@codeaurora.org>
2011-10-03 16:19:57 -07:00
Sreesudhan Ramakrish Ramkumar
a4b5f30e62 msm: camera: Actuator changes for 8960
1) Added actuator framework with common functions abstracted out
2) Added actuator as a sub device in media controller
3) coupled sensor with its specific actuator in board file
4) Added new actuator control structure and new enum for communication
between user space and kernel space
5) Added common logging module with different logging levels

Signed-off-by: Sreesudhan Ramakrish Ramkumar <srramku@codeaurora.org>

Conflicts:

	arch/arm/configs/msm8960_defconfig
2011-10-03 16:19:57 -07:00
Srinivasa Rao Uppala
0f4098f5b4 radio: iris: Added support for FTM commands
This patch adds support for  RDS group counters,
Set HLsi and Set notch filter FTM commands.

Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>
2011-10-03 16:19:33 -07:00
Shuzhen Wang
6b0f33239d camera: v4l2: Add msm_isp_cmd structure in msm_isp.h.
This structure replaces msm_vfe32_cmd, and is exported
to user space.

Signed-off-by: Shuzhen Wang <shuzhenw@codeaurora.org>
2011-10-03 16:18:38 -07:00
Kevin Chan
07f710c887 msm: camera: Add camera epprom utility functions
New utility file for handling camera eeprom.
Added standard functions for reading from eeprom.

Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
2011-10-03 16:18:15 -07:00
Kevin Chan
36e2bdcdf3 msm: camera: Add camera sensor quarter & full size enum
Add quarter and  full size as a valid resolution.
Both size are always present and used in sensor driver.

Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
2011-10-03 16:18:11 -07:00
Ujwal Patel
edcbdcced5 msm: camera: Lens rolloff changes for MSM8960.
MSM8960v1 has mesh based lens rolloff while MSM8960v2 has
PCA based lens rolloff. Also starting from MSM8960v2 and
newer chipsets have double buffered lens rolloff. So adding
the run-time lens rolloff update, new config for PCA lens
rolloff and run-time selection of Mesh or PCA lens rolloff.

Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org>
2011-10-03 16:17:36 -07:00
Kiran Kumar H N
ceea762f4b msm: camera: Support for Multi planar image formats.
Add support for multi-planar image formats. This
allows the luma and chroma planes of the image to
reside in different memory locations.

Signed-off-by: Kiran Kumar H N <hurlisal@codeaurora.org>
2011-10-03 16:17:31 -07:00
Mingcheng Zhu
fe7abc088b mm camera: Add pmem vaddr mapping in HAL
Signed-off-by: Mingcheng Zhu <mingchen@codeaurora.org>
2011-10-03 16:17:10 -07:00
Mingcheng Zhu
9559ee42d0 msm camera: separate daemon pmem mapping away from video node
Signed-off-by: Mingcheng Zhu <mingchen@codeaurora.org>
2011-10-03 16:17:10 -07:00
Ankit Premrajka
f94bcc6852 msm: camera: add config identifier to control command structure.
Signed-off-by: Ankit Premrajka <ankitp@codeaurora.org>
2011-10-03 16:16:14 -07:00
Shuzhen Wang
ce65086d12 camera: Export msm_isp.h to user space.
The header would hold command IDs and ISP message IDs,
which can be used by user space code.

Signed-off-by: Shuzhen Wang <shuzhenw@codeaurora.org>
2011-10-03 16:16:12 -07:00
Mingcheng Zhu
270813aace msm: code clean up of the existing improper event implementation
Current implementation has a bug in v4l2 event subscription.

Also it is good to make the kernel to be transparent
to those notification events from daemon to HAL.

Signed-off-by: Mingcheng Zhu <mingchen@codeaurora.org>
2011-10-03 16:15:36 -07:00
Lakshmi Narayana Kalavala
4ab97a9943 msm: camera: Include Minimum Luma in Stats buffer
Include Minimum Luma Pixel value in Stats buffer
for AWB stats process.

Signed-off-by: Lakshmi Narayana Kalavala <lkalaval@codeaurora.org>
2011-10-03 16:15:22 -07:00
Kevin Chan
a980f399e0 msm: camera: Improve unify sensor apis
Added more error checking code
Separate dimension specific register settings into separate structure
Code flow improvements

Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
2011-10-03 16:15:10 -07:00
Ankur Nandwani
d928d54d59 radio: iris: adding support for TX functionality
This patch adds the functionality for FM enable, disable,
tuning, configuration and RDS functionality for FM TX

Signed-off-by: Ankur Nandwani <ankurn@codeaurora.org>
2011-10-03 16:14:50 -07:00
Srinivasa Rao Uppala
58273f8b07 radio: iris: Fixed the issue with RDS configuration
This patch configures the rds registers properly

CRs-fixed: 298431
Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>
2011-10-03 16:14:44 -07:00
Srinivasa Rao Uppala
4b92e4bd0c radio: iris:Fixed the search station list issue
This patch adds the changes for search station list responce,
corresponding to the firmware change

Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>
2011-10-03 16:14:07 -07:00
Srinivasa Rao Uppala
abc8efa597 radio:iris:Adding support for FM debug commands
This patch adds new debug commands for FM driver

Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>
2011-10-03 10:28:48 -07:00
Anantha Krishnan
f225860718 radio-tavarua: Adding V4L2 private control to enable HLSI
This change is to add a new private control to enable the
high-low injection.

Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>
2011-10-03 10:28:24 -07:00
Nishant Pandit
474f225b55 msm: camera: Initial version of LED Driver on 8960
Initial version of LED driver for Cdp & Mdp comprise

- Enable SC628A LED Driver chip for 8960.
- Configure SX150X Gpio Expander chip.
- Restructure  Camera Gpio Mux settings table
which will later be used to toggle function select for LED Flash
between Mdp & Cdp.

Signed-off-by: Nishant Pandit <npandit@codeaurora.org>
2011-10-03 10:28:19 -07:00
Shuzhen Wang
2fe35efa5b camera: v4l2: Add zoom support in driver.
Add implementation of G_CROP and event for
zoom completion.

Signed-off-by: Shuzhen Wang <shuzhenw@codeaurora.org>
2011-10-03 10:28:08 -07:00
Shuzhen Wang
0d9277c6c1 camera: v4l2: Use v4l2_event for event from config to app.
This simplies the way event is propagated. Driver only needs
to pass on the v4l2_event structure directly.

Signed-off-by: Shuzhen Wang <shuzhenw@codeaurora.org>
2011-10-03 10:28:03 -07:00
Anantha Krishnan
a02ef21306 radio-tavarua: Changes for supporting the new FM Search Algorithm.
Added host side changes for supporting the new Bahama FM Searcher
Algorithm. This involves configuring the channel spacing as 100KHz
and enabling the 200KHz enforcer for regions that are 200KHz spaced.

Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>
2011-10-03 10:27:55 -07:00
Mingcheng Zhu
5b04d356f5 msm camera: snapshot wavelet denoise support
Signed-off-by: Mingcheng Zhu <mingchen@codeaurora.org>
2011-10-03 10:27:53 -07:00
Mansoor Aftab
5d41837ac1 msm: camera: Changes to enable events and Auto Focus
Added event notify message support added entries for
autofocus event types

Signed-off-by: Mansoor Aftab <maftab@codeaurora.org>
2011-10-03 10:27:20 -07:00
Ankit Premrajka
c6864b8db3 msm-camera: add SMMU code for use with videobuf2 framework
Signed-off-by: Ankit Premrajka <ankitp@codeaurora.org>
Signed-off-by: Mingcheng Zhu <mingchen@codeaurora.org>
2011-10-03 10:26:31 -07:00
Mingcheng Zhu
4950550ed4 msm: Add new msm_buffer and event structs and event defines
Signed-off-by: Mingcheng Zhu <mingchen@codeaurora.org>
2011-10-03 10:26:30 -07:00
Kiran Kumar H N
0fb9dcfbc6 msm-camera: configure preview and recording buffers
seperately.

decouple preview and recording path configuration
by configuring the buffers during preview start
and recording start respectively.

Signed-off-by: Kiran Kumar H N <hurlisal@codeaurora.org>
Signed-off-by: Mingcheng Zhu <mingchen@codeaurora.org>
2011-10-03 10:26:29 -07:00
Mingcheng Zhu
9812bd34ec msm camera: migrate to videobuf2 framework
add necessary changes in camera driver to
migrate to videobuf2 framework.

Signed-off-by: Kiran Kumar H N <hurlisal@codeaurora.org>
Signed-off-by: Mingcheng Zhu <mingchen@codeaurora.org>

Conflicts:

	drivers/media/video/Makefile
2011-10-03 10:26:28 -07:00
Kiran Kumar H N
5a19c68d63 Revert "msm: camera: YV12 video support"
This reverts commit 66882a5046143601429632a0b589d9ffeeb3c668.
This change will be submitted later.

Signed-off-by: Kiran Kumar H N <hurlisal@codeaurora.org>
2011-10-03 10:26:23 -07:00
Azam Sadiq Pasha Kapatrala Syed
7ff0cf4999 msm: camera: YV12 video support
Support for color format YV12.

Signed-off-by: Azam Sadiq Pasha Kapatrala Syed <akapatra@codeaurora.org>
2011-10-03 10:26:16 -07:00
Anantha Krishnan
3b44cd4aee radio-tavarua: Adding private control to configure the RMSSI threshold
This change is to add V4L2 private controls for configuring the
value of RMSSI threshold.

CRs-Fixed: 293328
Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>
2011-10-03 10:25:48 -07:00
Ankur Nandwani
4246251a69 radio: iris: updating the values for RDS PID and PTYPE
Signed-off-by: Ankur Nandwani <ankurn@codeaurora.org>
2011-10-03 10:25:42 -07:00
Srinivasa Rao Uppala
18fb80ef71 radio: iris: Added code for search station list response
This patch adds support to handle  the search station list
response event

Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>
2011-10-03 10:25:38 -07:00
Anantha Krishnan
e46ef6f1bc radio-tavarua: FM jumps to alternate freq. with AF jump option disabled
When the transmit power of the currently tuned station decreases,
FM Receiver automatically switches to available alternate frequencies,
even though the auto AF jump feature is not enabled

CRs-Fixed: 293773
Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>
2011-10-03 09:59:11 -07:00
Srinivasa Rao Uppala
7bb2210232 radio-iris: Adding offset to the search mode for RDS search command
Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>
2011-10-03 09:59:06 -07:00
Ankur Nandwani
78a782be53 radio: iris: adding support for RDS program service and radio text
This patch adds support for RDS program service and radio text
so that RDS data is displayed in the UI

Signed-off-by: Ankur Nandwani <ankurn@codeaurora.org>
2011-10-03 09:59:05 -07:00
Bryan Huntsman
3f2bc4d6eb Initial Contribution
msm-2.6.38: tag AU_LINUX_ANDROID_GINGERBREAD.02.03.04.00.142

Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org>
2011-10-03 09:57:10 -07:00
Hans Verkuil
338e9e1ad5 [media] tuner-core/v4l2-subdev: document that the type field has to be filled in
The tuner ops g_frequency, g_tuner and s_tuner require that the tuner type
field is filled in. Document this.

The tuner-core doc is based on a patch from Mauro Carvalho Chehab <mchehab@redhat.com>.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-07-07 15:04:23 -03:00
Hans Verkuil
e206fc5e3d [media] v4l2-subdev.h: remove unused s_mode tuner op
s_mode is no longer used, so remove it.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-07-07 15:03:59 -03:00
HeungJun, Kim
c30701130c [media] m5mols: Use proper email address format
Signed-off-by: HeungJun, Kim <riverful.kim@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-06-11 09:46:00 -03:00
Jarod Wilson
8de111e276 [media] lirc_dev: store cdev in irctl, up maxdevs
Store the cdev pointer in struct irctl, allocated dynamically as needed,
rather than having a static array. At the same time, recycle some of the
saved memory to nudge the maximum number of lirc devices supported up a
ways -- its not that uncommon these days, now that we have the rc-core
lirc bridge driver, to see a system with at least 4 raw IR receivers.
(consider a mythtv backend with several video capture devices and the
possible need for IR transmit hardware).

Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-06-11 09:03:20 -03:00
Laurent Pinchart
6e3ea0e711 [media] v4l: Fix media_entity_to_video_device macro argument name
The name 'entity' is used twice in the macro body, once as the macro
argument, and once as a structure field name. This breaks compilation if
the macro is called with its argument not named 'entity'.

Fix this by renaming the macro argument '__e'. This should avoid
namespace clashes.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-06-01 09:42:03 -03:00
Hans Petter Selasky
5d8f290c05 [media] Add missing include guard to header file
Signed-off-by: Hans Petter Selasky <hselasky@c2i.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-05-25 21:42:30 -03:00
HeungJun, Kim
bc125106f8 [media] Add support for M-5MOLS 8 Mega Pixel camera ISP
Add I2C/V4L2 subdev driver for M-5MOLS integrated image signal processor
with 8 Mega Pixel sensor.

Signed-off-by: HeungJun, Kim <riverful.kim@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-05-25 07:51:18 -03:00
Jarod Wilson
08aeb7c9a4 [media] rc: add locking to fix register/show race
When device_add is called in rc_register_device, the rc sysfs nodes show
up, and there's a window in which ir-keytable can be launched via udev
and trigger a show_protocols call, which runs without various rc_dev
fields filled in yet. Add some locking around registration and
store/show_protocols to prevent that from happening.

The problem manifests thusly:

[64692.957872] BUG: unable to handle kernel NULL pointer dereference at 0000000000000090
[64692.957878] IP: [<ffffffffa036a4c1>] show_protocols+0x47/0xf1 [rc_core]
[64692.957890] PGD 19cfc7067 PUD 19cfc6067 PMD 0
[64692.957894] Oops: 0000 [#1] SMP
[64692.957897] last sysfs file: /sys/devices/pci0000:00/0000:00:03.1/usb3/3-1/3-1:1.0/rc/rc2/protocols
[64692.957902] CPU 3
[64692.957903] Modules linked in: redrat3(+) ir_lirc_codec lirc_dev ir_sony_decoder ir_jvc_decoder ir_rc6_decoder ir_rc5_decoder rc_hauppauge ir_nec
_decoder rc_core ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_filter ip6_tables snd_emu10k1_synth snd_emux_synth snd_seq_virmidi snd_seq_mi
di_event snd_seq_midi_emul snd_emu10k1 snd_rawmidi snd_ac97_codec ac97_bus snd_seq snd_pcm snd_seq_device snd_timer snd_page_alloc snd_util_mem pcsp
kr tg3 snd_hwdep emu10k1_gp snd amd64_edac_mod gameport edac_core soundcore edac_mce_amd k8temp shpchp i2c_piix4 lm63 e100 mii uinput ipv6 raid0 rai
d1 ata_generic firewire_ohci pata_acpi firewire_core crc_itu_t sata_svw pata_serverworks floppy radeon ttm drm_kms_helper drm i2c_algo_bit i2c_core
[last unloaded: redrat3]
[64692.957949] [64692.957952] Pid: 12265, comm: ir-keytable Tainted: G   M    W   2.6.39-rc6+ #2 empty empty/TYAN Thunder K8HM S3892
[64692.957957] RIP: 0010:[<ffffffffa036a4c1>]  [<ffffffffa036a4c1>] show_protocols+0x47/0xf1 [rc_core]
[64692.957962] RSP: 0018:ffff880194509e38  EFLAGS: 00010202
[64692.957964] RAX: 0000000000000000 RBX: ffffffffa036d1e0 RCX: ffffffffa036a47a
[64692.957966] RDX: ffff88019a84d000 RSI: ffffffffa036d1e0 RDI: ffff88019cf2f3f0
[64692.957969] RBP: ffff880194509e68 R08: 0000000000000002 R09: 0000000000000000
[64692.957971] R10: 0000000000000002 R11: 0000000000001617 R12: ffff88019a84d000
[64692.957973] R13: 0000000000001000 R14: ffff8801944d2e38 R15: ffff88019ce5f190
[64692.957976] FS:  00007f0a30c9a720(0000) GS:ffff88019fc00000(0000) knlGS:0000000000000000
[64692.957979] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[64692.957981] CR2: 0000000000000090 CR3: 000000019a8e0000 CR4: 00000000000006e0
[64692.957983] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[64692.957986] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[64692.957989] Process ir-keytable (pid: 12265, threadinfo ffff880194508000, task ffff88019a9fc720)
[64692.957991] Stack:
[64692.957992]  0000000000000002 ffffffffa036d1e0 ffff880194509f58 0000000000001000
[64692.957997]  ffff8801944d2e38 ffff88019ce5f190 ffff880194509e98 ffffffff8131484b
[64692.958001]  ffffffff8118e923 ffffffff810e9b2f ffff880194509e98 ffff8801944d2e18
[64692.958005] Call Trace:
[64692.958014]  [<ffffffff8131484b>] dev_attr_show+0x27/0x4e
[64692.958014]  [<ffffffff8118e923>] ? sysfs_read_file+0x94/0x172
[64692.958014]  [<ffffffff810e9b2f>] ? __get_free_pages+0x16/0x52
[64692.958014]  [<ffffffff8118e94c>] sysfs_read_file+0xbd/0x172
[64692.958014]  [<ffffffff8113205e>] vfs_read+0xac/0xf3
[64692.958014]  [<ffffffff8113347b>] ? fget_light+0x3a/0xa1
[64692.958014]  [<ffffffff811320f2>] sys_read+0x4d/0x74
[64692.958014]  [<ffffffff814c19c2>] system_call_fastpath+0x16/0x1b

Its a bit difficult to reproduce, but I'm fairly confident this has
fixed the problem.

Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-05-20 16:21:22 -03:00