| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|
| |
|
|
| |
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|
| |
|
|
| |
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Without that fix we have:
$ source build/envsetup.sh
$ lunch
17:31:48 Build sandboxing disabled due to nsjail error.
In file included from build/make/core/config.mk:291:
In file included from build/make/core/envsetup.mk:266:
device/hardkernel/odroid-u3/AndroidProducts.mk:20: error:
device/hardkernel/odroid-u3: replicant_odroid-u3-userdebug: Invalid variant: u3.
17:31:48 dumpvars failed with: exit status 1
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|
| |
|
|
|
|
| |
1024x768 is pretty common across HDMI displays.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|
| |
|
|
| |
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|
| |
|
|
| |
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
We do need to flash the recovery to enable people to format the
userdata partition.
In addition we can't flash the userdata as-is as the hack to
automatically reisize it at the first boot doesn't work anymore
because for some reasons selinux seems to be enforced for init
services even when it's in permissive mode globally.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|
| |
|
|
|
|
|
| |
We now use userdebug for quite some time, and we also use it by
default in vendor/replicant/build.sh
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|
| |
|
|
|
|
|
|
|
| |
The device_samsung_i9300 also copies the exact same
android.software.app_widgets.xml in the exact same
place, so it's best to move that in
device_samsung_midas_common.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|
| |
|
|
|
|
|
|
| |
The device_samsung_i9300 also ships the exact same
android.hardware.wifi.xml file, so it's best to move
that in device_samsung_midas_common.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|
| |
|
|
|
|
|
| |
This shorten the lines and makes this repository more position
independent.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|
| |
|
|
|
|
|
|
| |
The device_samsung_i9300 also ships the exact same
media_codecs.xml file, so it's best to move that
in device_samsung_midas_common.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|
| |
|
|
|
|
|
| |
The media_codecs.xml is already opied from
frameworks/av/media/libstagefright/data/media_codecs_sw.xml
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|
| |
|
|
|
|
|
|
|
|
|
| |
Beside the modem specific part, all the content of the
init.smdk4x12.rc is shared with the init.smdk4x12.rc from
the device_samsung_i9305 repository.
Change-Id: Iade835ea98cbf881f41f412405376fe9e361d7dc
GNUtoo: rebased to take into account the modem changes,
updated commit message
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|
| |
|
|
| |
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|
| |
|
|
| |
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The default audio HAL is a stub that doesn't do any access to the
hardware. The code of the audio.primary.default default implementation
is in hardware/libhardware/modules/audio and in audio_hw.c we have:
static ssize_t out_write(struct audio_stream_out *stream, const void* buffer,
size_t bytes)
{
ALOGV("out_write: bytes: %zu", bytes);
/* XXX: fake timing for audio output */
struct stub_stream_out *out = (struct stub_stream_out *)stream;
struct timespec t = { .tv_sec = 0, .tv_nsec = 0 };
clock_gettime(CLOCK_MONOTONIC, &t);
const int64_t now = (t.tv_sec * 1000000000LL + t.tv_nsec) / 1000;
const int64_t elapsed_time_since_last_write = now - out->last_write_time_us;
int64_t sleep_time = bytes * 1000000LL / audio_stream_out_frame_size(stream) /
out_get_sample_rate(&stream->common) - elapsed_time_since_last_write;
if (sleep_time > 0) {
usleep(sleep_time);
} else {
// we don't sleep when we exit standby (this is typical for a real alsa buffer).
sleep_time = 0;
}
out->last_write_time_us = now + sleep_time;
// last_write_time_us is an approximation of when the (simulated) alsa
// buffer is believed completely full. The usleep above waits for more space
// in the buffer, but by the end of the sleep the buffer is considered
// topped-off.
//
// On the subsequent out_write(), we measure the elapsed time spent in
// the mixer. This is subtracted from the sleep estimate based on frames,
// thereby accounting for drain in the alsa buffer during mixing.
// This is a crude approximation; we don't handle underruns precisely.
return bytes;
}
This function is supposed to send the audio frames to the the audio driver,
but instead it doesn't send it anywhere. So we can safely deduce that this
implementation is a dummy one that implements the API just to make the
higher level of the stack happy.
Because of that the Dragonboard audio library which is known to work in
Android 11, has been imported in device_samsung_midas_common for now.
In order to use it, we need to change ro.hardware.audio.primary as it is
used by the higher level stack to find what HAL library to load for the
primary audio module.
While the Dragonboard audio library doesn't handle audio routing, it is
possible to either modify it to do that or use another library like
libaudioroute, and the associated mixer_paths.xml configuration file
to do it.
Thanks to Joonas Kylmälä who identified that the Dragonboard
audio library worked out of the box on Android 11 for the
Galaxy SIII 4G (GT-I9305).
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|
| |
|
|
| |
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|
| |
|
|
| |
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|
| |
|
|
| |
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
|
| |
|
|
| |
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
|
| |
|
|
| |
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
The hardware seems to support vsync, at least no erros come without
this setting. Overlay planes also work, the issue with graphics
corruption was previously because we allocated graphics buffers for
SCANOUT (buffers to be shown on display) on the GPU render node which
seems to allocate the memory non-contiguously with MMU. The exynos
display controller seems to require contiguous memory. When
gralloc.gbm.device is card0 and kmsro driver is enabled then it
handles the allocation between card and render nodes correctly.
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
|
| |
|
|
| |
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
|
| |
|
|
| |
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
|
| |
|
|
| |
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
|
| |
|
|
| |
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
|
| |
|
|
|
|
| |
The common init.rc already does this.
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
|
| |
|
|
|
|
| |
It causes graphics corruption with Lima
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Using vendorsetup generated the following warning message:
device/samsung/i9305/vendorsetup.sh:17: add_lunch_combo is obsolete.
Use COMMON_LUNCH_CHOICES in your AndroidProducts.mk instead.
So we use COMMON_LUNCH_CHOICES in your AndroidProducts.mk
instead in order to silence this warning.
Signed-off-by: Tobias Tefke <t.tefke@stud.fh-sm.de>
GNUtoo@cyberdimension.org: fixed a tiny bit the comimt message
Acked-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|
| |
|
|
| |
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
|
| |
|
|
| |
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
|
| |
|
|
| |
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
|
| |
|
|
| |
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
|
| |
|
|
| |
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
|
| |
|
|
| |
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
|
| |
|
|
| |
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
|
| |
|
|
| |
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
|
| |
|
|
| |
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
|
| |
|
|
|
|
|
| |
We have no audio implemented yet so let's use the audio settings for
devices that have no audio devices.
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
|
| |
|
|
| |
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|
| |
|
|
| |
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|
| |
|
|
| |
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|
| |
|
|
| |
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|
| |
|
|
| |
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|
| |
|
|
| |
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|
| |
|
|
| |
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
|
| |
|
|
|
|
| |
This is used for testing SwiftShader
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
|
| |
|
|
| |
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
|