Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
#
# LightDM wrapper to run around X sessions.
echo "Running X session wrapper"
# Load profile
for file in "/etc/profile" "$HOME/.profile" "/etc/xprofile" "$HOME/.xprofile"; do
if [ -f "$file" ]; then
echo "Loading profile from $file";
@checko
checko / vmutt
Created November 4, 2014 08:23
#!/usr/bin/perl
# usage:
# vmutt [maildir] [command]
# eg.
# vmutt ~/mail/flagged "mutt -f ~/mail/flagged"
use warnings;
use strict;
use File::Basename qw/basename dirname/;
@checko
checko / 5670routemap
Created August 29, 2014 01:33
5670 route map
static const struct snd_soc_dapm_route rt5670_dapm_routes[] = {
#ifdef USE_ASRC
{"I2S1", NULL, "ASRC enable"},
{"I2S2", NULL, "ASRC enable"},
#endif
{ "micbias1", NULL, "DAC L1 Power" },
{ "micbias1", NULL, "DAC R1 Power" },
{ "DMIC1", NULL, "DMIC L1" },
#include <fcntl.h>
#include <sys/ioctl.h>
#include <hwdep.h>
#include <error.h>
#include <stdio.h>
#include "rt56xx_ioctl.h"
int main()
{
@checko
checko / nightly.sh
Created December 25, 2013 03:10
nightly test build
#!/bin/bash
cd /home/charles-chang
. .profile
# if exist, last build failed. do nothing.
cd nightly
if [ "$?" = "0" ]; then
exit 1
fi
diff --git a/samples/ApiDemos/src/com/example/android/apis/media/MediaPlayerDemo_Video.java b/samples/ApiDemos/src/com/example/android/apis/media/MediaPlayerDemo_Video.java
index 9853d67..de5a1ac 100644
--- a/samples/ApiDemos/src/com/example/android/apis/media/MediaPlayerDemo_Video.java
+++ b/samples/ApiDemos/src/com/example/android/apis/media/MediaPlayerDemo_Video.java
@@ -30,9 +30,13 @@ import android.util.Log;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import android.widget.Toast;
+import android.media.MediaScannerConnection;
+import android.net.Uri;
diff --git a/include/configs/mx53_loco_android.h b/include/configs/mx53_loco_android.h
index 3613af2..e88f7be 100644
--- a/include/configs/mx53_loco_android.h
+++ b/include/configs/mx53_loco_android.h
@@ -80,7 +80,7 @@
#define CONFIG_USB_DEVICE
#define CONFIG_FASTBOOT 1
#define CONFIG_IMX_UDC 1
-#define CONFIG_FASTBOOT_STORAGE_EMMC
+#define CONFIG_FASTBOOT_STORAGE_EMMC_SATA
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := eng
LOCAL_C_INCLUDES += $(LOCAL_PATH) $(LOCAL_PATH)/$(KERNEL_DIR)/include
LOCAL_SRC_FILES := tools/i2cbusses.c tools/util.c
LOCAL_MODULE := i2c-tools
include $(BUILD_STATIC_LIBRARY)
import subprocess
import os
import xml.dom.minidom
import sys
if len(sys.argv) < 2:
print 'Please specify the source path'
sys.exit()
sourcepath = sys.argv[1]