summaryrefslogtreecommitdiffstats
path: root/meta-agl-bsp/conf/include/agl_raspberrypi2.inc
blob: 24077f02a9f3a6d0861349bd35680e65418de780 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#GPU_MEM = "512"
# Increase GPU_MEM for AGL apps (navi/poi)
GPU_MEM = "640"

ENABLE_CMA = "1"
CMA_LWM = "16"
CMA_HWM = "32"

CORE_IMAGE_EXTRA_INSTALL += "wayland weston"

MULTI_PROVIDER_WHITELIST += "virtual/libgl virtual/egl virtual/libgles1 virtual/libgles2"

KERNEL_DEVICETREE_append = " overlays/vc4-kms-v3d-overlay.dtb"
KERNEL_IMAGETYPE_sota = "uImage"
PREFERRED_VERSION_linux-raspberrypi = "4.4.%"
PREFERRED_VERSION_mesa = "12.%"

PREFERRED_PROVIDER_virtual/egl = "mesa"
PREFERRED_PROVIDER_virtual/libgles2 = "mesa"
PREFERRED_PROVIDER_virtual/libgl = "mesa"
PREFERRED_PROVIDER_virtual/mesa = "mesa"
PREFERRED_PROVIDER_jpeg = "jpeg"

MACHINE_FEATURES += "vc4graphics"

# For libomxil
#LICENSE_FLAGS_WHITELIST = "commercial"

IMAGE_INSTALL_append = " kernel-modules linux-firmware "

# Psplash causes crash on first boot on RPi
IMAGE_FEATURES_remove = "splash"

include conf/include/local/sota_raspberrypi.inc
class="n">error += snd_config_imake_string(&elemConfig, "type", "rate"); error += snd_config_add(rateConfig, elemConfig); if (error) goto OnErrorExit; error += snd_config_make_compound(&slaveConfig, "slave", 0); error += snd_config_imake_string(&elemConfig, "pcm", pcmSlave->cid.cardid); error += snd_config_add(slaveConfig, elemConfig); if (params->rate) { error += snd_config_imake_integer(&elemConfig, "rate", params->rate); error += snd_config_add(slaveConfig, elemConfig); } if (params->format) { error += snd_config_imake_string(&elemConfig, "format", params->formatS); error += snd_config_add(slaveConfig, elemConfig); } if (error) goto OnErrorExit; // add leaf into config error += snd_config_add(rateConfig, slaveConfig); if (error) goto OnErrorExit; error += snd_config_search(snd_config, "pcm", &pcmConfig); error += snd_config_add(pcmConfig, rateConfig); if (error) { AFB_ApiError(mixer->api, "AlsaCreateRate: fail to add configRATE=%s", pcmPlug->cid.cardid); goto OnErrorExit; } if (open) error = _snd_pcm_rate_open(&pcmPlug->handle, pcmPlug->cid.cardid, snd_config, rateConfig, SND_PCM_STREAM_PLAYBACK, SND_PCM_NONBLOCK); if (error) { AFB_ApiError(mixer->api, "AlsaCreateRate: fail to create Rate=%s Slave=%s Error=%s", pcmPlug->cid.cardid, pcmSlave->cid.cardid, snd_strerror(error)); goto OnErrorExit; } // Debug config & pcm //AlsaDumpCtlConfig(mixer, "plug-rate", pcmConfig, 1); //AlsaDumpCtlConfig (mixer, "plug-rate", rateConfig, 1); AFB_ApiNotice(mixer->api, "AlsaCreateRate: %s done\n", pcmPlug->cid.cardid); return pcmPlug; OnErrorExit: AlsaDumpCtlConfig(mixer, "plug-rate", rateConfig, 1); AFB_ApiNotice(mixer->api, "AlsaCreateRate: OnErrorExit\n"); return NULL; }