RasPlex / OpenPHT

OpenPHT is a community driven fork of Plex Home Theater
Other
597 stars 110 forks source link

[Embedded] Sound card not showing up (help) #41

Closed sammy2142 closed 8 years ago

sammy2142 commented 8 years ago

Hi My soundcard is not showing in openpht menu. I have connected via ssh and got:

OpenPHT-Embedded:~ # aplay -l \ List of PLAYBACK Hardware Devices ** card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: DG [Xonar DG], device 0: Multichannel [Multichannel] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: DG [Xonar DG], device 1: Digital [Digital] Subdevices: 1/1 Subdevice #0: subdevice #0

Only the HDA NVidia device is showing in the audio out menu in openPHT. I'm using an Asus Xonar DG and want to set the audio device to digital (toslink) to output to my amp.

Any ideas on how to get this working (ps. im new to openelec)?

This soundcard was working fine on openelec 3.2 (ziggimon pht openelec build) http://forums.plex.tv/discussion/87943/openelec-plex-home-theater-the-all-in-one-pht-distro#latest

Thanks

sammy2142 commented 8 years ago

Adding a sleep delay on startup seems to fix this (it looks like openpht was starting before all the devices were enumerated in openelec). Im running this off an old slow usb drive which may explain it.

http://openelec.tv/forum/68-audio/73014-soundcard-xonar-dx

NedtheNerd commented 8 years ago

have you tried running it off a USB stick instead of a drive, glad you got it sorted, closing issue.

sammy2142 commented 8 years ago

Spoke too soon - its not quite fixed yet :( I was hoping adding a sleep delay to autostart.sh would delay the startup of openpht (to give the sound card time to initialise) but it doesnt seem to delay openpht. This is the script:

!/bin/sh

(sleep 20; \ echo performance >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor; \ echo performance >/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor)&

The performance bit is just disabling some powersaving features (as it downclocks my gpu too on my old motherboard - its not officially supported by openelec). Anyway on startup plex loads straight away (about 10-12 seconds bootup time in total). I know the performance commands are executed as without them hd playback stutters a lot so it seems to be executing them.

Any ideas on how to create a delay for openpht starting up?

Thanks again