On Sun, 2 Jan 2011 at 6:27pm, Steven Adams wrote:
Hi All,
Hello,
I've been trying to configure my Shuttle XS35GT (ION2 HDMI) with ALSA (without pulse as I want pass-through) for the past 2 days. I'm using Ubuntu 10.10 and have now compiled nvidia drivers and alsa from source code on kernel 2.6.35-24-generic.
I too have got an XS35GT, and I have sound over HDMI working satisfactory (for my purposes, at least).
Running Debian unstable, I have compiled my own kernel (2.6.35.4) and I use the latest Nvidia drivers (260.19.29) which I re-installed yesterday.
It's connected via HDMI to my Philips 47PFL7404H/12 TV. Philips seems to be making the only TVs on earth that can take 5.1 audio from HDMI and pass it on to my 5.1 receiver, using a coaxial S/PDIF cable. All other TVs seem to be downmixing to 2.1 or 2.0 before sending audio on to a receiver through (optical) S/PDIF.
I cannot for the life of me get it working... I can play standard sound like "speaker-test -c 2 -D plughw:1,7" but when it comes to speaker-test -c 5 -d plughw:1,7 it throws "xrun_recovery failed: -5,Input/output error"
Same thing for me, which surprises me since I do have 5.1 sound working when playing DVDs etc. through mplayer.
Also, when testing mplayer with an AC3 encoded sound file it throws ========== Forced audio codec: hwac3 Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF hwac3: switched to AC3, 448000 bps, 48000 Hz AUDIO: 48000 Hz, 2 ch, ac3be, 448.0 kbit/29.17% (ratio: 56000->192000) Selected audio codec: [hwac3] afm: hwac3 (AC3 through S/PDIF) ========================================================================== [AO_ALSA] alsa-lib: conf.c:4484:(parse_args) Unknown parameter AES0 [AO_ALSA] alsa-lib: conf.c:4617:(snd_config_expand) Parse arguments error: No such file or directory [AO_ALSA] alsa-lib: pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM plughw:0,7,AES0=6 AO: [alsa] 48000Hz 2ch ac3be (2 bytes per sample) =============
I too get similar error output, but I still get 5.1 audio (just tried with my Bjork "Volta" 5.1 DVD). My mplayer command, as you'll see in the attached mplayer_tv_real.sh, is basically this:
$ mplayer -ac hwac3,a52, -ao alsa:device=hw=1.7 dvdnav://and I just discovered that hw=1.3 and hw=1.8 works just as well, but for some reason hw=1.9 is mute. I see you use hw=0.7, try 1.7 instead.
I've attached aplay -l and aplay -L output in the aplay.txt file. Driver is loaded with options snd-hda-intel enable_msi=0
Same thing here, according to my /etc/modprobe.d/alsa-base.conf .
I've read 1000's and 1000's of posts and tried alot of "fixes" but nothing has worked.Any help would be much appreciated!
I have attached output from "aplay -l", "aplay -L", "dpkg -l" (gzipped), and "zcat /proc/config.gz > config" (gzipped), as well as my $HOME/.alsactl.store (generated with "/usr/sbin/alsactl -F -f $HOME/.alsactl.store store"), /etc/X11/xorg.conf, and /etc/modprobe.d/alsa-base.conf, plus two scripts I use to run mplayer (mplayer_tv.sh calls mplayer_tv_real.sh, as you will see).
Hopefully looking through my working config will help you come closer to audio working the way you want.
The XS35 is a really nice piece of hardware, but DVDs do tend to get hot when played, and the LEDs on the XS35GT are annoying. And I really think Shuttle should have included an optical or coax S/PDIF output, but since they didn't I have bought a Sweex SC016 USB 7.1 soundcard, to be able to listen to stuff in 5.1 without having to go through my TV. Haven't hooked it up and configured it yet, though...
/L (2nd attempt as attached files were too large in 1st attempt)
**** List of PLAYBACK Hardware Devices **** card 0: Intel [HDA Intel], device 0: HDA Generic [HDA Generic] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: NVidia [HDA NVidia], device 7: NVIDIA HDMI [NVIDIA HDMI] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: NVidia [HDA NVidia], device 8: NVIDIA HDMI [NVIDIA HDMI] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: NVidia [HDA NVidia], device 9: NVIDIA HDMI [NVIDIA HDMI] Subdevices: 1/1 Subdevice #0: subdevice #0
null Discard all samples (playback) or generate zero samples (capture) default:CARD=Intel HDA Intel, HDA Generic Default Audio Device front:CARD=Intel,DEV=0 HDA Intel, HDA Generic Front speakers surround40:CARD=Intel,DEV=0 HDA Intel, HDA Generic 4.0 Surround output to Front and Rear speakers surround41:CARD=Intel,DEV=0 HDA Intel, HDA Generic 4.1 Surround output to Front, Rear and Subwoofer speakers surround50:CARD=Intel,DEV=0 HDA Intel, HDA Generic 5.0 Surround output to Front, Center and Rear speakers surround51:CARD=Intel,DEV=0 HDA Intel, HDA Generic 5.1 Surround output to Front, Center, Rear and Subwoofer speakers surround71:CARD=Intel,DEV=0 HDA Intel, HDA Generic 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers hdmi:CARD=NVidia HDA NVidia, NVIDIA HDMI HDMI Audio Output
Attachment:
dpkg-l.txt.gz
Description: Binary data
Attachment:
config.gz
Description: Binary data
state.VT82xx { control.1 { comment.access 'read write' comment.type BOOLEAN comment.count 2 iface MIXER name 'Front Playback Switch' value.0 true value.1 true } control.2 { comment.access 'read write' comment.type BOOLEAN comment.count 2 iface MIXER name 'Surround Playback Switch' value.0 true value.1 true } control.3 { comment.access 'read write' comment.type BOOLEAN comment.count 1 iface MIXER name 'Center Playback Switch' value true } control.4 { comment.access 'read write' comment.type BOOLEAN comment.count 1 iface MIXER name 'LFE Playback Switch' value true } control.5 { comment.access 'read write' comment.type BOOLEAN comment.count 2 iface MIXER name 'Side Playback Switch' value.0 true value.1 true } control.6 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 23' iface MIXER name 'CD Playback Volume' value.0 18 value.1 18 } control.7 { comment.access 'read write' comment.type BOOLEAN comment.count 2 iface MIXER name 'CD Playback Switch' value.0 true value.1 true } control.8 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 23' iface MIXER name 'Line Playback Volume' value.0 0 value.1 0 } control.9 { comment.access 'read write' comment.type BOOLEAN comment.count 2 iface MIXER name 'Line Playback Switch' value.0 false value.1 false } control.10 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 23' iface MIXER name 'Mic Playback Volume' value.0 0 value.1 0 } control.11 { comment.access 'read write' comment.type BOOLEAN comment.count 2 iface MIXER name 'Mic Playback Switch' value.0 false value.1 false } control.12 { comment.access 'read write' comment.type BOOLEAN comment.count 2 iface MIXER name 'Front Mic Playback Switch' value.0 false value.1 false } control.13 { comment.access 'read write' comment.type BOOLEAN comment.count 2 iface MIXER name 'Headphone Playback Switch' value.0 true value.1 true } control.14 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 13' iface MIXER name 'Capture Volume' value.0 0 value.1 0 } control.15 { comment.access 'read write' comment.type BOOLEAN comment.count 2 iface MIXER name 'Capture Switch' value.0 true value.1 true } control.16 { comment.access 'read write' comment.type ENUMERATED comment.count 1 comment.item.0 Mic comment.item.1 'Front Mic' comment.item.2 Line comment.item.3 CD comment.item.4 Mixer iface MIXER name 'Capture Source' value Mic } control.17 { comment.access read comment.type IEC958 comment.count 1 iface MIXER name 'IEC958 Playback Con Mask' value '0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' } control.18 { comment.access read comment.type IEC958 comment.count 1 iface MIXER name 'IEC958 Playback Pro Mask' value '0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' } control.19 { comment.access 'read write' comment.type IEC958 comment.count 1 iface MIXER name 'IEC958 Playback Default' value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' } control.20 { comment.access 'read write' comment.type BOOLEAN comment.count 1 iface MIXER name 'IEC958 Playback Switch' value true } control.21 { comment.access 'read write' comment.type BOOLEAN comment.count 1 iface MIXER name 'IEC958 Default PCM Playback Switch' value true } control.22 { comment.access 'read write' comment.type BOOLEAN comment.count 1 iface MIXER name 'Master Playback Switch' value true } control.23 { comment.access 'read write user' comment.type INTEGER comment.count 2 comment.range '0 - 255' iface MIXER name 'PCM Playback Volume' value.0 255 value.1 255 } }
Section "ServerLayout" Identifier "Layout0" Screen 0 "Screen0" 0 0 # InputDevice "Keyboard0" "CoreKeyboard" # InputDevice "Mouse0" "CorePointer" EndSection Section "Files" # FontPath "/usr/share/fonts/X11/encodings" # FontPath "/usr/share/fonts/X11/encodings/large" # RgbPath "/usr/lib/X11/rgb" FontPath "/usr/share/fonts/X11/100dpi" FontPath "/usr/share/fonts/X11/75dpi" # FontPath "/usr/share/fonts/X11/Type1" FontPath "/usr/share/fonts/X11/misc" EndSection Section "Module" # Load "freetype" Load "dbe" Load "extmod" # Load "type1" Load "glx" EndSection #http://www.penlug.org/twiki/bin/view/Main/LinuxHardwareInfoNvidia9800GTX+ Section "Extensions" Option "Composite" "disable" EndSection Section "ServerFlags" Option "AllowEmptyInput" "false" Option "BlankTime" "10" Option "StandbyTime" "15" Option "SuspendTime" "20" Option "OffTime" "60" Option "DontVTSwitch" "0" # Option "XkbDisable" "true" # http://www.linux-archive.org/gentoo-user/41762-xorg-keyboard.html : Option "AutoAddDevices" "false" EndSection #Section "InputDevice" # # generated from default # Identifier "Mouse0" # Driver "mouse" # Option "CorePointer" # Option "Protocol" "PS/2" # Option "Device" "/dev/gpmdata" # Option "Emulate3Buttons" "no" ## Option "ZAxisMapping" "4 5" #EndSection #Section "InputDevice" # # generated from default # Identifier "Keyboard0" # Driver "kbd" # Option "XkbRules" "xorg" # Option "XkbModel" "microsoftccurve2k" # Option "XkbLayout" "us" ## Option "XkbLayout" "us,se" ## Option "XkbVariant" "," ## Option "XkbOptions" "grp:sclk_toggle" #EndSection Section "Monitor" # HorizSync 30.0 - 50.0 # VertRefresh 60.0 Identifier "Monitor0" VendorName "Philips" ModelName "PFL7404H/12" HorizSync 15.0 - 70.0 VertRefresh 48.0 - 62.0 EndSection Section "Device" # BusID "PCI:1:0:0" # Screen 1 # Option "Coolbits" "" Identifier "Device0" Driver "nvidia" VendorName "NVIDIA Corporation" Option "NvAGP" "1" Option "NoLogo" "true" Option "RenderAccel" "true" #TODO: Option "UseEvents" "true" Option "OnDemandVBlankInterrupts" "true" EndSection Section "Screen" # Option "ConnectedMonitor" "TV" # Option "IgnoreEDID" "on" # Option "TVOutFormat" "SVIDEO" Option "TVOverScan" "0.77" # option, is recommended. Identifier "Screen0" Device "Device0" Monitor "Monitor0" DefaultDepth 24 Option "UseEDID" "TRUE" # to keep picture from being "lifted up" on the tv screen: Option "UseEDIDFreqs" "FALSE" # Option "ModeValidation" "NoEdidModes" Option "UseEDIDDpi" "FALSE" # HD1080p on Philips 47PFL7404H/12: Option "TVStandard" "HD1080p" Option "ConnectedMonitor" "DFP-0" #Using the "UseDisplayDevice" option, rather than the "ConnectedMonitor" Option "UseDisplayDevice" "DFP-0" Option "NvAGP" "1" Option "NoLogo" "true" Option "RenderAccel" "true" #TODO: Option "UseEvents" "true" Option "OnDemandVBlankInterrupts" "true" SubSection "Display" # Option "FlatPanelProperties" "Scaling = Native" # Option "HWCursor" "Off" # Modes "nvidia-auto-select" # Viewport 0 0 # Modes "1360x768" "1024x768" "800x600" # Modes "1280x720" # Modes "1366x768" "1360x768" "1280x720" Depth 24 Modes "1920x1080" "1600x1200" "1366x768" "1360x768" "1280x720" EndSubSection EndSection
# autoloader aliases install sound-slot-0 /sbin/modprobe snd-card-0 install sound-slot-1 /sbin/modprobe snd-card-1 install sound-slot-2 /sbin/modprobe snd-card-2 install sound-slot-3 /sbin/modprobe snd-card-3 install sound-slot-4 /sbin/modprobe snd-card-4 install sound-slot-5 /sbin/modprobe snd-card-5 install sound-slot-6 /sbin/modprobe snd-card-6 install sound-slot-7 /sbin/modprobe snd-card-7 # Cause optional modules to be loaded above generic modules install snd /sbin/modprobe --ignore-install snd && { /sbin/modprobe --quiet snd-ioctl32 ; /sbin/modprobe --quiet snd-seq ; } install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi && { /sbin/modprobe --quiet snd-seq-midi ; : ; } install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 && { /sbin/modprobe --quiet snd-emu10k1-synth ; : ; } # Prevent abnormal drivers from grabbing index 0 options bt87x index=-2 options cx88_alsa index=-2 options snd-atiixp-modem index=-2 options snd-intel8x0m index=-2 options snd-via82xx-modem index=-2 # Keep snd-pcsp from beeing loaded as first soundcard options snd-pcsp index=-2 # Keep snd-usb-audio from beeing loaded as first soundcard options snd-usb-audio index=-2 #http://forum.xbmc.org/showthread.php?t=74974&page=10 options snd-hda-intel enable_msi=0
#!/bin/sh time startx /usr/bin/xterm -e `dirname $0`/mplayer_tv_real.sh $* -- :0 -depth 24 -screen Screen0
#!/bin/sh /usr/sbin/alsactl -F -f $HOME/.alsactl.store restore xsetroot -solid black xset dpms 0 0 0 xset -dpms time /usr/bin/mplayer -monitoraspect 16:9 -fs -ac hwac3,a52, -ao alsa:device=hw=1.7 $* #uncomment to see output after mplayer is done: #cat xset +dpms xset dpms 300 400 500
------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________ Alsa-user mailing list Alsa-user@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-user