Skip to content

Instantly share code, notes, and snippets.

@carlocaione
carlocaione / SOC-Audio.conf
Last active Aug 29, 2015
ALSA configuration file for Amlogic M8B board
View SOC-Audio.conf
#
# Configuration for Amlogic M8B SoC
#
<confdir:pcm/front.conf>
SOC-Audio.pcm.front.0 {
@args [ CARD ]
@args.CARD {
type string
View buildroot_config
#
# Automatically generated file; DO NOT EDIT.
# Buildroot 2015.02-git-00870-g3ac6390 Configuration
#
BR2_HAVE_DOT_CONFIG=y
BR2_HOSTARCH_NEEDS_IA32_LIBS=y
#
# Target options
#
View armsoc_driver.c
drmModeResPtr res;
drmModeCrtcPtr crtc;
drmModeFBPtr fb;
struct drm_mode_map_dumb mreq;
int ret;
uint8_t *map;
size_t size;
unsigned int i, j, off;
uint8_t r, g, b;
View armsoc_driver.c
/* -*- mode: C; c-file-style: "k&r"; tab-width 4; indent-tabs-mode: t; -*- */
/*
* Copyright © 2011 Texas Instruments, Inc
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
View 0001-Test.patch
From ba460ffbe15a419c5fa3e207fc7999a030fffd12 Mon Sep 17 00:00:00 2001
From: Carlo Caione <carlo@endlessm.com>
Date: Wed, 25 Feb 2015 14:44:08 +0100
Subject: [PATCH] Test
Signed-off-by: Carlo Caione <carlo@endlessm.com>
---
src/plugins/renderers/drm/plugin.c | 28 ++++++++++++++++++++++
.../renderers/drm/ply-renderer-generic-driver.c | 28 ++++++++++++++++++++++
.../renderers/drm/ply-renderer-generic-driver.h | 2 ++
View log
-- Logs begin at Wed 2015-02-25 20:45:03 CET, end at Wed 2015-02-25 20:45:29 CET. --
Feb 25 20:45:03 localhost systemd-journal[78]: Allowing runtime journal files to grow to 8.0M.
Feb 25 20:45:03 localhost kernel: Booting Linux on physical CPU 0x200
Feb 25 20:45:03 localhost kernel: Initializing cgroup subsys cpuset
Feb 25 20:45:03 localhost kernel: Initializing cgroup subsys cpu
Feb 25 20:45:03 localhost kernel: Initializing cgroup subsys cpuacct
Feb 25 20:45:03 localhost kernel: Linux version 3.10.33 (debian-kernel@lists.debian.org) (gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-1ubuntu1bsa1) ) #1 SMP Debian 3.10.33.20150115+dev236.d5b5213-0bem1 (2015-02-11)
Feb 25 20:45:03 localhost kernel: CPU: ARMv7 Processor [410fc051] revision 1 (ARMv7), cr=10c5387d
Feb 25 20:45:03 localhost kernel: CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Feb 25 20:45:03 localhost kernel: Machine: Amlogic Meson8B, model: AMLOGIC
View drmModeSetCrtc
diff --git a/src/armsoc_driver.c b/src/armsoc_driver.c
index 322a9c5..2dc61b3 100644
--- a/src/armsoc_driver.c
+++ b/src/armsoc_driver.c
@@ -348,7 +348,7 @@ static Bool ARMSOCCopyDRMFB(ScrnInfoPtr pScrn)
drmModeCrtcPtr crtc;
drmModeFBPtr fb;
struct drm_mode_map_dumb mreq;
- uint32_t crct_id;
+ uint32_t crtc_id, connector_id;
View log_drmModeSetCrtc
-- Logs begin at Thu 2015-02-26 12:45:25 CET, end at Thu 2015-02-26 12:45:52 CET. --
Feb 26 12:45:25 localhost systemd-journal[78]: Allowing runtime journal files to grow to 8.0M.
Feb 26 12:45:25 localhost kernel: Booting Linux on physical CPU 0x200
Feb 26 12:45:25 localhost kernel: Initializing cgroup subsys cpuset
Feb 26 12:45:25 localhost kernel: Initializing cgroup subsys cpu
Feb 26 12:45:25 localhost kernel: Initializing cgroup subsys cpuacct
Feb 26 12:45:25 localhost kernel: Linux version 3.10.33 (debian-kernel@lists.debian.org) (gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-1ubuntu1bsa1) ) #1 SMP Debian 3.10.33.20150115+dev236.d5b5213-0bem1 (2015-02-11)
Feb 26 12:45:25 localhost kernel: CPU: ARMv7 Processor [410fc051] revision 1 (ARMv7), cr=10c5387d
Feb 26 12:45:25 localhost kernel: CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Feb 26 12:45:25 localhost kernel: Machine: Amlogic Meson8B, model: AMLOGIC
View drmModeSetCrtc
diff --git a/src/armsoc_driver.c b/src/armsoc_driver.c
index 322a9c5..9c60559 100644
--- a/src/armsoc_driver.c
+++ b/src/armsoc_driver.c
@@ -348,7 +348,7 @@ static Bool ARMSOCCopyDRMFB(ScrnInfoPtr pScrn)
drmModeCrtcPtr crtc;
drmModeFBPtr fb;
struct drm_mode_map_dumb mreq;
- uint32_t crct_id;
+ uint32_t crtc_id, connector_id;
View ueue
This file has been truncated, but you can view the full file.
-- Logs begin at Thu 2015-02-26 19:36:41 CET, end at Thu 2015-02-26 19:41:33 CET. --
Feb 26 19:36:41 localhost systemd-journal[78]: Allowing runtime journal files to grow to 8.0M.
Feb 26 19:36:41 localhost kernel: Booting Linux on physical CPU 0x200
Feb 26 19:36:41 localhost kernel: Initializing cgroup subsys cpuset
Feb 26 19:36:41 localhost kernel: Initializing cgroup subsys cpu
Feb 26 19:36:41 localhost kernel: Initializing cgroup subsys cpuacct
Feb 26 19:36:41 localhost kernel: Linux version 3.10.33 (debian-kernel@lists.debian.org) (gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-1ubuntu1bsa1) ) #1 SMP Debian 3.10.33.20150115+dev236.d5b5213-0bem1 (2015-02-11)
Feb 26 19:36:41 localhost kernel: CPU: ARMv7 Processor [410fc051] revision 1 (ARMv7), cr=10c5387d
Feb 26 19:36:41 localhost kernel: CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache