Naaman Sittsamer | 25 Feb 22:06 2014
Picon

Possible audio resampling issue in 4.3

Hi,
I have a system where the audio hardware supports 16KHz.
I've moved from Android 4.2.2 to 4.3 and now it seems there's no resampling. If I play 44.1KHz media (e.g. music, ringtones) it results with slow audio.
If I play 16KHz file it sounds good. On the previous release the resampling was fine (done by audioflinger).

After code inspection, I found a fix for this issue, in frameworks/av/services/audioflinger/Threads.cpp - MixerThread::prepareTracks_l() :
// limit track sample rate to 2 x output sample rate, which changes at re-configuration
uint32_t maxSampleRate = mSampleRate * 2;
uint32_t reqSampleRate = track->mServerProxy->getSampleRate();
if (reqSampleRate == 0) {
   reqSampleRate = mSampleRate;
} else if (reqSampleRate > maxSampleRate) {
   reqSampleRate = maxSampleRate;
mAudioMixer->setParameter(
          name,
          AudioMixer::RESAMPLE,
          AudioMixer::SAMPLE_RATE,
          (void *)reqSampleRate);

Since my HW works with 16KHz then all the 44.1KHz media is handled as 32KHz, hence it sounds slowly. 
Is there a reason for this logic? audio quality limitation?
By removing the "else" part resampling works fine.
Is it a bug?
In 4.2.2 this logic is missing and there're no resampling issues.

Thanks,
Naaman

--
--
unsubscribe: android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
website: http://groups.google.com/group/android-porting
 
---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Android Newbie | 25 Feb 19:33 2014
Picon

display message from system service

I am adding additional battery properties that require a shutdown under certain conditions. I have a requirement that the user be notified of the shutdown reason

Basically I am adding additional checks like shutdownIfOverTemp() in BatteryService, so I can use that function as an example of where I would like to add a reason notification to the end user.

The standard behavior simply shuts down the phone (at least in 4.1.2 that I am based on):

    private final void shutdownIfOverTemp() {
        // shut down gracefully if temperature is too high (> 68.0C)
        // wait until the system has booted before attempting to display the shutdown dialog.
        if (mBatteryTemperature > 680 && ActivityManagerNative.isSystemReady()) {
            Intent intent = new Intent(Intent.ACTION_REQUEST_SHUTDOWN);
            intent.putExtra(Intent.EXTRA_KEY_CONFIRM, false);
            intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
            mContext.startActivity(intent);
        }
    }

I'm not sure what my options are to notify the user.
I can't display a toast from the service right?

It might be OK to set EXTRA_KEY_CONFIRM to true (iffy in the case of being over temp), but I don't think this provides me a way to show a message anyway (I'll try it next)

The only way I can think of is to send a new intent SHUTDOWN_REQUEST_BATTERY_OVERTEMP then define an activity that would catch it, display something ("system shutting down due to battery temperature") and that activity would then send ACTION_REQUEST_SHUTDOWN? and I would have to do this for every separate shutdown reason or can I add an additional extra to ACTION_REQUEST_SHUTDOWN that would indicate the shutdown reason?


--
--
unsubscribe: android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
website: http://groups.google.com/group/android-porting
 
---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
SSI | 25 Feb 09:54 2014
Picon

JB4.3 compilation error

Hello,

   I have checked in android jelly bean 4.3 source code into my server with below command,

    svn import -m "commit message here" /source_code_path/jb4.3/ URL_LINK/JB4.3/ --no-ignores

 before commit I checked that source code is compiling or not . It was working fine. After compiling the source code and I checked out to local machine and kept it for compilation using make -j4 command.

  It is giving below error

   build/core/base_rules.mk:130: *** libcore: MODULE.TARGET.ETC.target-cacert-74c26bd0.0.svn-base already defined by libcore.  Stop.

 If I commented out in above file line number 130, it is started build and it is created boot.img and other binaries but not system.img. I got below error before it complete the build.

Target ram disk: out/target/product/sabresd_6dq/ramdisk.img
Target boot image: out/target/product/sabresd_6dq/boot.img
----- Making recovery image ------
Copying baseline ramdisk...
Modifying ramdisk contents...
cp: cannot stat `out/target/product/sabresd_6dq/root/init.recovery.*.rc': No such file or directory
make: [out/target/product/sabresd_6dq/recovery.img] Error 1 (ignored)
----- Made recovery image: out/target/product/sabresd_6dq/recovery.img --------

zip error: Invalid command arguments (cannot repeat names in zip file)
make: *** [out/target/product/sabresd_6dq/system/etc/recovery-resource.dat] Error 16

Can anybody tell me that why I am getting above errors? Is am doing anything wrong in importing source code to server using svn ?

Kindly help me to resolve the problem

Thanks

--
--
unsubscribe: android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
website: http://groups.google.com/group/android-porting
 
---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
SzuHung | 23 Feb 14:04 2014
Picon

Android 4.4 low power sensor support sensor types?

In android 4.4 can support low power sensor.
Is only support Step detector, Step counter, Significant motion and Geomagnetic rotation vector sensor type?
Whether to support Proximity/Light sensor type? 

--
--
unsubscribe: android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
website: http://groups.google.com/group/android-porting
 
---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Richard Phillips | 22 Feb 10:27 2014
Picon

Porting to new board - advice on first steps

Hello all,

I'm currently running an Android build on the beagleboard-xM, and now need to migrate this build to our
custom board. This board uses the AM3715 (TI ARM Sitara) SoC, the xM uses the DM3715, but it's basically the
same. I expect the main differences are likely to be at board level, rather than SoC... (crosses fingers)

So, what should my first steps be? My guess is I need to set up a "board config (file?)" of some kind, and "make
config" the kernel accordingly?

I'm reading books and websites and plan to attend a course on this soon, but would appreciate a nudge in the
right direction!

Regards,
Richard.

-- 
--

-- 
unsubscribe: android-porting+unsubscribe@...
website: http://groups.google.com/group/android-porting

--- 
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscribe@...
For more options, visit https://groups.google.com/groups/opt_out.

Satish Aradhya | 23 Feb 13:19 2014
Picon

Kitkat porting on custom hardware

Hi, all,

 I have ported kitkat to our new hardware.
     But still im seeing Jelly Bean  home screen and icon tiles also looks JB layout.

      by ADB shell, if we query of android version it gives 4.4.2 

          
     What should I do? Do I missed any other while porting..

--
--
unsubscribe: android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
website: http://groups.google.com/group/android-porting
 
---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
petr.vorel | 19 Feb 21:49 2014
Picon

In which part of Android ajust code to calibrate screen

Hi there,

I need to calibrate screen (move coordinates to right, basically add some
margin to left). Where is the best place to adjust the code? In kernel driver?
Or would it be possible and easier in user space libraries? Or is there a some 
boot parameter? (something like disp.screen0_output_mode from
http://linux-sunxi.org/Kernel_arguments)?

I'm using Allwinner A31.

Thanks for any advice.

Regards,
Petr

--
--
unsubscribe: android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
website: http://groups.google.com/group/android-porting
 
---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Ahmed Amer Shahin | 19 Feb 21:35 2014
Picon

Enable Multiple Groups Connrction in Wi-Fi Direct

Hi everyone,

I am trying to find a way to enable one android device to connect to multiple Wi-Fi Direct groups at the same time. The Wi-Fi Direct specification leaves this feature as an optional one and Android does not implement it.
The first problem is in the WifiP2pService file the IP Address for the Group Owner (GO) is fixed and the range of IPs for clients is fixed too. This means that two or more groups can not communicate together because of IP address overlapping. I can find a way around this by randomizing the GO and Clients IP address selection. The second problem is how to make the device accept two or more concurrent connections from Wi-Fi Direct groups. I think it something similar to enabling concurrent Wi-Fi and Wi-Fi Direct connection in Jellybean.

So any ideas?

Thank you so much.
--Ahmed Shahin

--
--
unsubscribe: android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
website: http://groups.google.com/group/android-porting
 
---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Dave McLaughlin | 19 Feb 09:57 2014
Picon

How to enable debug output

Hi all, I am trying to get the code for the Huawei generic ril to work and I am not seeing any output in the logcat that matches this library although I know that it is being called as I can see signal strength data being updated in the logcat output.

In the source, there is a #define LOG_NDEBUG 1 line and I have tried both 1 and 0 here but nothing appears. I want to see the ALOGW and ALOGI messages. I've also tried commenting out the #define.

How can I be sure that the file will generate the output and not be stripped? I am building the system in release mode at present but I thought W and I would still appear.

--
--
unsubscribe: android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
website: http://groups.google.com/group/android-porting
 
---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
David Borthwick | 12 Feb 16:46 2014
Picon

Controlling the intensity of camera LED on Nexus 4

Hi,

I am attempting to control the intensity of the Nexus 4 camera LED from an application. I know to do this I will have to make a modification to the Kernel.  I have downloaded the Android kernel using git clone https://android.googlesource.com/kernel/msm.git.  I chose MSM as the google developer section states that this is the kernel version used with the Nexus 4.  I have been looking through the various drivers within this kernel, including the camera driver.  However I am not able to locate where it interacts with the LED.  Could someone point me to where the kernel controls the camera LED?  Once I can locate this code I can analyze it and continue with the project.

Thanks,
David Borthwick

--
--
unsubscribe: android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
website: http://groups.google.com/group/android-porting
 
---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Glenn Kasten | 12 Feb 22:46 2014

updated audio porting documentation

The audio section of the device porting documentation at http://source.android.com/devices/audio.html
was updated recently.  New topics include sample rate conversion, and audio debugging tips and tricks.
In addition, if you would like to contribute to the porting docs for audio or any other area, please see today's post at android-contrib:
  https://groups.google.com/forum/#!topic/android-contrib/U98QmzoRlCw

--
--
unsubscribe: android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
website: http://groups.google.com/group/android-porting
 
---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.

Gmane