Includes support for factor test and latest tuning settings
Signed-off-by: John Kramer <john.kramer@motorola.com>
Change-Id: Icc0e17317c4209cd58d0981b34cd8b60c80be09e
The Motorola HID driver needs an interface to call when an audio cable
is inserted/removed from a Smart Dock. The interface should update
the audio switch so the audio driver can properly route audio.
Change-Id: Ifad06400c5895f7545f702cdb09be02fe716412a
Signed-off-by: Greg Meiste <w30289@motorola.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
- create cpcap_audio debugfs with access to the audio_state
- add cpcap_audio_state_dump call to parallel the register
dump call.
Change-Id: Ia7331b9218ea93602833b2a99097109031035280
Signed-off-by: James Wylder <james.wylder@motorola.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
-- add CPCAP_AUDIO_OUT_STANDBY definition, extended ioctl interface to support
for selecting new CPCAP_AUDIO_OUT_STANDBY output id;
-- manage VAUDIO through balanced calls to regulator_set_mode() initialize
audio speaker to off.
Signed-off-by: Iliyan Malchev <malchev@google.com>
- Initialize VAUDIO to low power mode
- Add standby_config changes to allow audio to go into low
power state.
- remove direct references to register 512, because access
should be through the Linux regulator framework.
Change-Id: I3ea23e2aabd183a3ecae0d30fce15a7365b168d8
Signed-off-by: James Wylder <james.wylder@motorola.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
Need to save the temperature in a signed variable. Otherwise, when the
temperature is below zero, an extremely hot temperature is reported to
the system, causing the device to power down.
Change-Id: I243bfc0fd1e1d76b2986e9def624de2b7782d731
Signed-off-by: Greg Meiste <w30289@motorola.com>
Exposes more parameters and settings to focuser HAL,
putting all specifics in the driver, queryable from the HAL.
Change-Id: Id3d8764b7f9f1853982ca9c0d403fb0e455c7185
Signed-off-by: Andrei Warkentin <andreiw@motorola.com>
fsl_build_dtd may be called from atomic context. Don't hardcode the gfp
flag to GFP_KERNEL. Pass down to dma_pool_alloc the flag used by the
function driver to enqueue the request.
Change-Id: Iba1ccf73bbcd648b8c13228157431d2ce52979ef
Signed-off-by: Benoit Goby <benoit@android.com>
The uC can now be used to write the secondary SPI standby bits.
Change-Id: I0f6a69d78b941fdf7b65d893c0ae8b29cc8bd740
Signed-off-by: Greg Meiste <w30289@motorola.com>
Other ports may need the wakeup irq even if the modem main port is not
opened. Enable the wakeup irq when the first opened port is suspended,
instead of enabling it when the main port is opened.
Change-Id: I15f32bb885673765cf5c7a574896e1c427d24977
Signed-off-by: Benoit Goby <benoit@android.com>
The accessory team has requested that detection wait 200ms before
taking the ADC read to give the ID line time to settle to the
correct state. This fixes audio cable detection on real docks.
Change-Id: I7744bb3927a07c299e7efa27eee24d3267aa6856
Signed-off-by: Greg Meiste <w30289@motorola.com>
Set default trigger as timer.
Seperate blink function from brightness.
Change-Id: I1dd789ae8b5df88ea26c40ed544807ec0f3bb52a
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
Allow auto-suspend and suspend when there are no pending writes and
no data have been received for 2s.
While the modem is suspended, enqueue write urbs and submit them once
the modem is resumed.
Request the wakeup gpio irq so that the modem can wakeup from lp0.
Change-Id: If2a47756e9a2138d6c1a7c2e7bf235dfc396cec5
Signed-off-by: Benoit Goby <benoit@android.com>
Remove functions cpcap_set_volume() and cpcap_set_mic_volume() and instead set
the gains through cpcap_audio_set_audio_state(), which is the correct way to do
so.
Signed-off-by: Iliyan Malchev <malchev@google.com>
From a driver standpoint the max8649s and 8952 variants
for the max8649 differ only in the minimum and maximum
voltages.
Change-Id: Icc90af48a6c2d99577aa479218564d2ebee71e56
Signed-off-by: James Wylder <james.wylder@motorola.com>
The following sysfs nodes will be exposed.
/sys/class/radio/mdm6600/status (query BP status)
/sys/class/radio/mdm6600/power_status (query BP power status)
/sys/class/radio/mdm6600/command (To control BP status)
Change-Id: I4ed4b6d0d9df010713732e79f3a0598e09ad5dec
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
When changing mode, also program frame length, coarse time,
and gain so it can keep the same exposure value. Without this
API change, exposure time and gain will be reset to the default
values in the mode table and the image brightness may change
suddenly.
Change-Id: I82fe8a7d838a041b27af7dd6b9b3d27030318456