Lakka working fine but with no sound :( ATI Radeon inside

Hello

Iā€™ve just discovered Lakka and think itā€™s a really great project !

Iā€™m trying to set up my PC with Lakka but I canā€™t get any sound.

My PC is plugged via HDMI on my TV Iā€™m using an ATI HD7970, with HDMI plugged on it.

Iā€™ve tryed the ā€œradeon.audio=1ā€ trick (added it on the cmdline), no success, even after having trying ALL possible settings in the audio_device="" variable.

I would really appreciate having help and i think it could help a lot of people !

Many thanks

First you can check if you can get some sound working :wink:

List the devices and check the id of the card and device for hdmi, for example :

aplay -l
**** List of PLAYBACK Hardware Devices ****
card [B]0[/B]: HDMI [HDA Intel HDMI], device[B] 3[/B]: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card [B]0[/B]: HDMI [HDA Intel HDMI], device [B]7[/B]: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card[B] 0[/B]: HDMI [HDA Intel HDMI], device [B]8[/B]: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: ALC283 Analog [ALC283 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Find some wav to play :

 find /storage/roms -name *.wav

or get one online

wget "http://samples.mplayerhq.hu/A-codecs/wavpcm/ahh.wav" -O sound.wav

Then try to play some sound with hdmi devices : aplay -D plughw:card_id,device_id

aplay -D plughw:0,3 sound.wav
aplay -D plughw:0,7 sound.wav
aplay -D plughw:0,8 sound.wav

Many thanks !

No sound at all. Iā€™ve tried all possible plughw settings :frowning: Do you know what it means ?

Iā€™m using my graphic cardā€™s HDMI port but my PC also avec an IGP with itā€™s own HDMI port (which i donā€™t use) and my mother board has itā€™s own sound card (that is not used either)

I have this strange message for one setting (itā€™s the only one that displays this) : Lakka:~ # aplay -D plughw:1,3 sound.wav aplay: main:722: audio open error: Device or resource busy

Here is what I also get : Lakka:~ # cat /proc/asound/cards 0 [HDMI ]: HDA-Intel - HDA ATI HDMI HDA ATI HDMI at 0xf0060000 irq 29

Lakka:~ # echo ā€œoptions radeon audio=1ā€ | tee /etc/modprobe.d/radeon.conf options radeon audio=1

Lakka:~ # dmesg | egrep ā€˜drm|radeonā€™ [ 0.000000] Kernel command line: root=/dev/ram0 rdinit=/init usbcore.autosuspend=-1 BOOT_IMAGE=/KERNEL boot=UUID=ad20944d-15a9-40b9-b5c2-d74908e3ce9e disk=UUID=a35ded14-cd85-4290-b2bd-56f9dda774c6 quiet ssh vga=current vt.global_cursor_default=0 loglevel=2 radeon.audio=1 [ 0.774916] [drm] Initialized drm 1.1.0 20060810 [ 0.774924] [drm] radeon kernel modesetting enabled. [ 0.775093] [drm] initializing kernel modesetting (TAHITI 0x1002:0x679A 0x174B:0xE249). [ 0.775097] [drm] register mmio base: 0xF0000000 [ 0.775098] [drm] register mmio size: 262144 [ 0.775166] [drm] Changing default dispclk from 500Mhz to 600Mhz [ 0.775175] radeon 0000:01:00.0: VRAM: 3072M 0x0000000000000000 - 0x00000000BFFFFFFF (3072M used) [ 0.775177] radeon 0000:01:00.0: GTT: 2048M 0x00000000C0000000 - 0x000000013FFFFFFF [ 0.775177] [drm] Detected VRAM RAM=3072M, BAR=256M [ 0.775178] [drm] RAM width 384bits DDR [ 0.775247] [drm] radeon: 3072M of VRAM memory ready [ 0.775248] [drm] radeon: 2048M of GTT memory ready. [ 0.775253] [drm] Loading tahiti Microcode [ 0.775266] [drm] Internal thermal controller with fan control [ 0.775293] [drm] probing gen 2 caps for device 8086:c01 = 261ad03/e [ 0.780076] [drm] radeon: dpm initialized [ 0.780094] radeon 0000:01:00.0: Direct firmware load for radeon/TAHITI_vce.bin failed with error -2 [ 0.780095] radeon 0000:01:00.0: radeon_vce: Canā€™t load firmware ā€œradeon/TAHITI_vce.binā€ [ 0.780097] [drm] GART: num cpu pages 524288, num gpu pages 524288 [ 0.781215] [drm] probing gen 2 caps for device 8086:c01 = 261ad03/e [ 0.781217] [drm] PCIE gen 3 link speeds already enabled [ 0.796266] [drm] PCIE GART of 2048M enabled (table at 0x0000000000277000). [ 0.796356] radeon 0000:01:00.0: WB enabled [ 0.796358] radeon 0000:01:00.0: fence driver on ring 0 use gpu addr 0x00000000c0000c00 and cpu addr 0xffff88023313cc00 [ 0.796359] radeon 0000:01:00.0: fence driver on ring 1 use gpu addr 0x00000000c0000c04 and cpu addr 0xffff88023313cc04 [ 0.796360] radeon 0000:01:00.0: fence driver on ring 2 use gpu addr 0x00000000c0000c08 and cpu addr 0xffff88023313cc08 [ 0.796361] radeon 0000:01:00.0: fence driver on ring 3 use gpu addr 0x00000000c0000c0c and cpu addr 0xffff88023313cc0c [ 0.796362] radeon 0000:01:00.0: fence driver on ring 4 use gpu addr 0x00000000c0000c10 and cpu addr 0xffff88023313cc10 [ 0.796729] radeon 0000:01:00.0: fence driver on ring 5 use gpu addr 0x0000000000075a18 and cpu addr 0xffffc90001035a18 [ 0.796730] radeon 0000:01:00.0: VCE init error (-22). [ 0.796731] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [ 0.796732] [drm] Driver supports precise vblank timestamp query. [ 0.796733] radeon 0000:01:00.0: radeon: MSI limited to 32-bit [ 0.796770] radeon 0000:01:00.0: radeon: using MSI. [ 0.796787] [drm] radeon: irq initialized. [ 0.937537] [drm] ring test on 0 succeeded in 1 usecs [ 0.937540] [drm] ring test on 1 succeeded in 1 usecs [ 0.937543] [drm] ring test on 2 succeeded in 1 usecs [ 0.937549] [drm] ring test on 3 succeeded in 3 usecs [ 0.937552] [drm] ring test on 4 succeeded in 2 usecs [ 1.124685] [drm] ring test on 5 succeeded in 2 usecs [ 1.124688] [drm] UVD initialized successfully. [ 1.124843] [drm] ib test on ring 0 succeeded in 0 usecs [ 1.124866] [drm] ib test on ring 1 succeeded in 0 usecs [ 1.124886] [drm] ib test on ring 2 succeeded in 0 usecs [ 1.124900] [drm] ib test on ring 3 succeeded in 0 usecs [ 1.124913] [drm] ib test on ring 4 succeeded in 0 usecs [ 1.775105] [drm] ib test on ring 5 succeeded [ 1.775919] [drm] Radeon Display Connectors [ 1.775920] [drm] Connector 0: [ 1.775921] [drm] DP-1 [ 1.775922] [drm] HPD5 [ 1.775923] [drm] DDC: 0x6530 0x6530 0x6534 0x6534 0x6538 0x6538 0x653c 0x653c [ 1.775923] [drm] Encoders: [ 1.775924] [drm] DFP1: INTERNAL_UNIPHY2 [ 1.775925] [drm] Connector 1: [ 1.775925] [drm] HDMI-A-1 [ 1.775926] [drm] HPD4 [ 1.775926] [drm] DDC: 0x6540 0x6540 0x6544 0x6544 0x6548 0x6548 0x654c 0x654c [ 1.775927] [drm] Encoders: [ 1.775927] [drm] DFP2: INTERNAL_UNIPHY2 [ 1.775928] [drm] Connector 2: [ 1.775928] [drm] DVI-D-1 [ 1.775929] [drm] HPD1 [ 1.775930] [drm] DDC: 0x6550 0x6550 0x6554 0x6554 0x6558 0x6558 0x655c 0x655c [ 1.775930] [drm] Encoders: [ 1.775931] [drm] DFP3: INTERNAL_UNIPHY1 [ 1.775931] [drm] Connector 3: [ 1.775932] [drm] DVI-I-1 [ 1.775932] [drm] HPD3 [ 1.775933] [drm] DDC: 0x6580 0x6580 0x6584 0x6584 0x6588 0x6588 0x658c 0x658c [ 1.775933] [drm] Encoders: [ 1.775934] [drm] DFP4: INTERNAL_UNIPHY [ 1.775934] [drm] CRT1: INTERNAL_KLDSCP_DAC1 [ 1.853399] [drm] fb mappable at 0xE0679000 [ 1.853400] [drm] vram apper at 0xE0000000 [ 1.853401] [drm] size 8294400 [ 1.853402] [drm] fb depth is 24 [ 1.853402] [drm] pitch is 7680 [ 1.853437] fbcon: radeondrmfb (fb0) is primary device [ 1.872519] radeon 0000:01:00.0: fb0: radeondrmfb frame buffer device [ 1.898909] [drm] Initialized radeon 2.43.0 20080528 for 0000:01:00.0 on minor 0

[ 1.898928] [drm] amdgpu kernel modesetting enabled.

What is the output of aplay -l and lsmod | grep snd ?