From 9a4b7c3ad8b5f95912180a5eefb246caacd737d3 Mon Sep 17 00:00:00 2001 From: Dominig ar Foll Date: Tue, 6 Mar 2018 17:34:33 +0100 Subject: presentation trying to get the MD presentation working on AGL web site as well as in git. --- getting-started/troubleshooting.md | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/getting-started/troubleshooting.md b/getting-started/troubleshooting.md index 95a08ac..a9dcaff 100644 --- a/getting-started/troubleshooting.md +++ b/getting-started/troubleshooting.md @@ -107,29 +107,29 @@ If you don’t want to touch the ligthmediascanner service, you can also add a f ## Configuring the Audio hardware AGL uses alsa as Audio configuration master. If the correct HW is not setup, the Audio system will fail to start what will also fails the demo Home Screen launch. You need to configure Audio in 2 places - * alsa - * 4A HAL +* alsa +* 4A HAL ### alsa The file /etc/asound.conf (at the beginning) tells which hardware will be used. For example on an Intel Minnow or UP board your need to enter the following configuration. -```json - pcm.Speakers { - type dmix - slave {pcm "hw:PCH,3"} - ipc_key 1001 # ipc_key should be unique to each dmix -} +```bash + pcm.Speakers { + type dmix + slave {pcm "hw:PCH,3"} + ipc_key 1001 # ipc_key should be unique to each dmix + } ``` The correct value (here hw:PCH,3) can be obtained with the command: ```bash -aplay -l -**** List of PLAYBACK Hardware Devices **** -card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0] - Subdevices: 1/1 - Subdevice #0: subdevice #0 -card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1] - Subdevices: 1/1 - Subdevice #0: subdevice #0 + aplay -l + **** List of PLAYBACK Hardware Devices **** + card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0] + Subdevices: 1/1 + Subdevice #0: subdevice #0 + card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1] + Subdevices: 1/1 + Subdevice #0: subdevice #0 ``` Using hw:PCH rather than hw:0 will avoid you many trouble.
NOTE that the device number is not always 0. If you give no device number, alsa will assume device 0 (and the not the first available device), what can fail your configuration.
@@ -143,11 +143,11 @@ For info HW device for common configuration are: ### 4A HAL configuration AGL 4A needs to know which HAL shall be used. This is configured in the file: -``` +```bash /usr/agl-service-audio-4a/ahl-agl-service-audio-4a-config.json ``` At the beginning of that file you will find the slected HAL (note the there is no correct default value). -```json +```bash { "version": "0.2.0", "policy_module": "AudioPolicy_v1", @@ -189,5 +189,5 @@ Once that you have built your image on the SD card, uncompress the desired map i (YourMountPoint will vary with your build system).
You can also use the script from the image to install the Mapdata on your SD card but there is little adavange in using that method. e.g. - * download_mapdata_jp.sh /YourMountPoint +* download_mapdata_jp.sh /YourMountPoint -- cgit 1.2.3-korg