Skip to content

Instantly share code, notes, and snippets.

Avatar

Kimmo Lindholm kimmoli

View GitHub Profile
View gist:bca2a08b3b3d73fdc3a75bb958e70cfd
with changes
HF->handset:
D/audio_hw_primary( 1080): out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=1;
D/audio_hw_primary( 1080): select_devices: out_snd_device(6: voice-handset) in_snd_device(55: voice-dmic-ef)
D/hardware_info( 1080): hw_info_append_hw_type : device_name = voice-speaker
D/hardware_info( 1080): hw_info_append_hw_type : device_name = voice-speaker-dmic-ef
W/msm8974_platform( 1080): Codec backend bitwidth 16, samplerate 48000
W/msm8974_platform( 1080): platform_check_codec_backend_cfg:Use default bw and sr for voice/voip calls
D/hardware_info( 1080): hw_info_append_hw_type : device_name = voice-handset
@kimmoli
kimmoli / driver.c.patch
Created Oct 14, 2016
simplelink and dereferencing type-punned pointer will break strict-aliasing rules
View driver.c.patch
union
{
_u8 TempBuf[_SL_RESP_HDR_SIZE];
_u32 DummyBuf[2];
} uBuf;
----------------------------------------------------------------------------------------
diff --git a/simplelink/source/driver.c b/simplelink/source/driver.c
index 0102ff9..8cf6bba 100755
View Nappi.qml
Button
{
text : "huuhaanappi"
anchors.centerIn: parent
onClicked: console.log("huuhaa")
}
View New file
Risifrutti
Kaasu
Patterit 4*D
Wc paperi
View pack-sfdroid.sh
fold=sfdroid-0.0.0
rm -rf $fold
mkdir $fold
mkdir -p $fold/system/bin
mkdir -p $fold/system/framework
mkdir -p $fold/system/lib
mkdir -p $fold/system/lib/hw
mkdir -p $fold/system/priv-app
View sfdroid_renderer_mer_obs_project.md

Project config

Prefer: libhybris-libGLESv1-devel
Release: <CI_CNT>.<B_CNT>
Macros:
%vendor %%foo

Meta

in Meta, add <path project="nemo:devel:hw:oneplus:onyx" repository="sailfish_latest_armv7hl"/> with your device project and repo containing droid-hal

@kimmoli
kimmoli / buildscript.sh
Last active Aug 24, 2016
onyx sfdroid - Android patches and builds
View buildscript.sh
#!/bin/bash
source build/envsetup.sh
set -e
SOURCE_DIR=~/android/system
INSTALLDIR=~/onyx_sfdroid
DEVICE=onyx
View onyx-sfdroid.md
View 0001-build_packages-Add-ffmemless-and-remove-other-vibrat.patch
From a0f7f405fb726bdee1d0c2388da80ea62cf93f34 Mon Sep 17 00:00:00 2001
From: taaem <taaem@mailbox.org>
Date: Sun, 26 Jun 2016 13:41:45 +0200
Subject: [PATCH] [build_packages] Add ffmemless and remove other vibrator
---
helpers/build_packages.sh | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/helpers/build_packages.sh b/helpers/build_packages.sh
View onyx-hadk.md

Setup your SDK

.hadk.env

export MER_ROOT="$HOME/mer"
export ANDROID_ROOT="$MER_ROOT/android/droid"
export VENDOR="OnePlus"
export DEVICE="onyx"
export PORT_ARCH="armv7hl"