News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

MD on Zotac Zbox ID42 Plus not playing audio [SOLVED]

Started by Avner, December 25, 2013, 09:05:19 PM

Previous topic - Next topic

Avner

I am trying to configure a new Zotac Zbox ID42 Plus.
It is PXE booting from the core.
At the audio / video setup stage in audio settings (step 5) the list of audio output connectors is empty.

The device has audio on board:
root@moon63:~#  lspci | grep -i audio
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
01:00.1 Audio device: NVIDIA Corporation GF119 HDMI Audio Controller (rev a1)


aplay can not recognize the sound card
root@moon63:~# aplay -l
aplay: device_list:240: no soundcards found...

The instructions in http://wiki.linuxmce.org/index.php/Audio_in_1004
talk about alternate sound configuration settings in:
/etc/pluto.conf
/etc/asound.conf
/etc/pluto/alsa/virtual_cards.conf

In: /etc/pluto.conf there is no flag named "AlternateSC"

I the MD, there is no file or directories for:
/etc/pluto/alsa/virtual_cards.conf, /etc/pluto/alsa/, /etc/asound.conf, /etc/asound/

root@moon63:~# ll /etc/pluto/alsa/virtual_cards.conf
ls: cannot access /etc/pluto/alsa/virtual_cards.conf: No such file or directory

root@moon63:~# ll /etc/pluto/alsa/
ls: cannot access /etc/pluto/alsa/: No such file or directory

root@moon63:~# ll /etc/asound.conf
ls: cannot access /etc/asound.conf: No such file or directory

root@moon63:~# ll /etc/asound/
ls: cannot access /etc/asound/: No such file or directory


Any advice?
Thanks,
Avner
Asus P5GD2-X, Intel i915P/G, Pentium 4 3.2 GHz, 2.5GB, nvidia Geforce 8800, Hauppauge WinTV-HVR-1850

l3mce

#1
I forgot... before my time away becoming l3mce the White... it was decided that automagic kernel upgrading would not happen. This and some other hardware requires the backported natty kernel.

For those with this hardware, or other newer nvidia stuff running 1004, where nothing appears in aplay -l  the following is required.
sudo -i on the core and ssh moonXX where XX is the moon number if this is an MD.
apt-get install -yf linux-image-generic-lts-backport-natty linux-headers-generic-lts-backport-natty
chmod +r /vmlinuz


If there is an issue then you might apt-get install --reinstall -yf alsa-base alsa-utils and remove the old kernel with apt-get remove. I am not providing that specifically because it would depend on what version your kernel is, which can change.
I never quit... I just ping out.

Avner

#2
L3top, thanks for helping to solve this problem.

Now, I can play video and hear audio successfully via lmce.
I can still not mute from lmce, but I can live with that (decrease / increase is not expected to work anyways because the digital signal via hdmi can only be controlled to on/off).

To summarize, the relevant settings that eventually worked for me were:

cat /etc/pluto/xine.conf
...
audio.device.alsa_front_device:asym_hdmi
audio.device.alsa_default_device:asym_hdmi
audio.device.alsa_passthrough_device:plughw:1,3
audio.output.speaker_arrangement:Pass Through



cat /etc/asound.conf
</etc/pluto/alsa/virtual_cards.conf>

pcm_slave.hdmi_convert48k {
       pcm "plughw:1,3"
       rate 48000
}

pcm.hdmi_playback {
       type plug
       slave hdmi_convert48k
}

pcm.asym_hdmi {
       type asym
       playback.pcm "hdmi_playback"
       capture.pcm "plughw:1,3"
}

pcm.nvidia_hdmi {
       type hw
       card 1
       device 3
}

pcm.!default asym_hdmi



cat /usr/pluto/diskless/35/usr/share/alsa/alsa.conf
...
defaults.ctl.card 1
defaults.pcm.card 1
defaults.pcm.device 3
...



I also verified that /etc/pluto.conf does not contain the variable AlternateSC

The following tests / utilities helped me solve the problem:

1. Check the sound card
I used the following command to verify that nvidia hdmi maps to 1,3:
root@moon35:~# aplay -l
List of PLAYBACK Hardware Devices ****

card 0: Intel [HDA Intel], device 0: ALC892 Analog [ALC892 Analog]
 Subdevices: 1/1
 Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC892 Digital [ALC892 Digital]
 Subdevices: 1/1
 Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
 Subdevices: 0/1
 Subdevice #0: subdevice #0


2. Generate some audio signal in the TV
I used the following command to verify that the moon can generate sound in the TV
speaker-test -t sine -D plughw:1,3


3. Play xine via KDE
I used xine directly to see that I can play a video/audio using xine outside lmce.
root@moon35:~# xine /home/public/data/videos/movie.avi



Setting of moon MD in webadmin

# In Wizard / devices / Media Directors
moon MD is set to:
Hardware accelaration: vdpau
Deinterlace quality: vdpau
Video Card : Geoforce or TNT2


Audio settings
Selecting HDMI (or anyhting other than "Manual") causes to execute Setup_AsoundConf in /usr/pluto/bin/SetupAudioVideo.sh
Ideally this should set e.g. asound.conf, xine.conf correctly but, for some reasons it replaces the good settings with settings that break Xine_Player.
So instead, use:
Audio settings: Manual Settings (M)
This prevents /usr/pluto/bin/SetupAudioVideo.sh from overwriting (returns from Setup_AsoundConf)
Asus P5GD2-X, Intel i915P/G, Pentium 4 3.2 GHz, 2.5GB, nvidia Geforce 8800, Hauppauge WinTV-HVR-1850

Marie.O

Quote from: Avner on January 05, 2014, 09:33:47 AM
L3top, thanks for helping to solve this problem.

Now, I can play video and hear audio successfully via lmce.
I can still not mute from lmce, but I can live with that (decrease / increase is not expected to work anyways because the digital signal via hdmi can only be controlled to on/off).


Whenever you go digital from a media director to an amp, all volume control function are a function of the amp, and not of the PC. Mute, Vol+ and Vol- will only work by controlling the amp.
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]