I have tried both kernel alsa and alsa-driver. Stereo sound through spdif works fine, since i have setup my asound.conf like this: pcm.!default { type hw card 0 device 2 } ctl.!default { type hw card 0 } I have tried Ac3 passthrough with 'mplayer -ac hwac3' and with vlc... Mplayer thinks that it sends the correct stream, but my decoder receives nothing: ========================================================================== Forced audio codec: hwac3 Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF No accelerated IMDCT transform found hwac3: switched to AC3, 448000 bps, 48000 Hz AUDIO: 48000 Hz, 2 ch, ac3, 448,0 kbit/29,17% (ratio: 56000->192000) Selected audio codec: [hwac3] afm: hwac3 (AC3 through S/PDIF) ========================================================================== AO: [alsa] 48000Hz 2ch ac3 (1 bytes per sample) Starting playback... VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12) Could not find matching colorspace - retrying with -vf scale... Opening video filter: [scale] VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 1,78:1 - prescaling to correct movie aspect. SwScaler: using unscaled yuv420p -> bgr24 special converter VO: [gl2] 720x576 => 1024x576 BGR 24-bit [gl2] You have OpenGL >= 1.2 capable drivers, GOOD (16bpp and BGR is ok!) [gl2] antialiasing off [gl2] bilinear linear All i can hear from the speakers is a sound similar to an electric discharge... $ cat /etc/modules.d/alsa (created by alsaconf) alias /dev/mixer snd-mixer-oss alias /dev/dsp snd-pcm-oss alias /dev/midi snd-seq-oss alias snd-card-0 snd-intel8x0 alias sound-slot-0 snd-intel8x0 Reproducible: Always $ emerge --info Portage 2.1.1-r2 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo-r2 x86_64) ================================================================= System uname: 2.6.18-gentoo-r2 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ Gentoo Base System version 1.12.6 Last Sync: Fri, 26 Jan 2007 12:01:01 +0000 ccache version 2.3 [enabled] app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.3.7, 2.0.30 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -msse3 -O3 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-march=athlon64 -msse3 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig candy ccache confcache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LINGUAS="en el" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X a52 aac aalib acpi aiglx alsa alsa_cards_bt87x alsa_cards_emu10k1 alsa_cards_intel8x0 alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol amr artworkextra asf audiofile beagle berkdb bitmap-fonts bluetooth bzip2 cairo cdr cli cracklib crypt css cups dbus divx dlloader doc dri dts dv dvb dvd dvdr dvdread eds elibc_glibc emboss encode fam fat ffmpeg firefox flac fontconfig fortran fuse gcc64 gdbm gif gimp gimpprint glitz gmedia gnokii gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal iconv ieee1394 imagemagick input_devices_evdev input_devices_joystick input_devices_keyboard input_devices_mouse ipv6 isdnlog ithreads java jikes jpeg junit kde kdeenablefinal kdehiddenvisibility kernel_linux lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text lcms ldap libcaca libg++ linguas_el linguas_en lirc lirc_devices_leadtek_0010 logitech-mouse mad matroska mikmod mmx2 mng mono mozbranding mozilla mp3 mp4 mpeg mplayer msn musicbrainz nautilus ncurses network nfs nls nodrm nptl nptlonly nsplugin ntfs nvidia offensive ogg on-the-fly-crypt openal opengl pam pcre pda pdf perl png ppds pppd python qt3 qt4 quicktime readline realmedia reflection reiser4 reiserfs samba scanner sdl seamonkey session slp smp snmp spell spl ssl svg sysfs tcltk tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU userlocales v4l v4l2 video_cards_nv video_cards_nvidia video_cards_vesa vorbis wma wmp wxwindows x264 xine xml xmp xorg xscreensaver xv xvid zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Which drivers are you using? in-kernel ones or alsa-driver? If alsa-driver, which version?
Yeah, i' m sorry... ;) I' m now using alsa-driver-1.0.13, but i always had this problem. Should i reopen this bug?
Reopening.
Set the device to iec958 to get the passthrough.
Already donw(In reply to comment #4) > Set the device to iec958 to get the passthrough. > I had already done it (my default device is hw:0.2)... And i have followed this: amixer set IEC958 unmute amixer set 'IEC958 Playback AC97-SPSA' 0 amixer set 'IEC958 Playback Source' PCM Generally i have tried all recommendations i came across but no luck...
Can you please try with 1.0.14_rc1 that for some reason is not stable on AMD64, but should be?
(In reply to comment #6) > Can you please try with 1.0.14_rc1 that for some reason is not stable on AMD64, > but should be? > Yes of cource! I tried that, but nothing changed. The only thing i hear, is that sound described in first post... I use mplayer to test ac3 passthrough with these commands: gmplayer -ao alsa:device=hw=0.2 -ac hwac3 gmplayer -ao alsa:device=iec958 -ac hwac3 My external decoder works just fine, i tried ac3 spdif out in windvd (windows xp).
Have you ever had this working under Linux? Can you reproduce this with the in-kernel alsa drivers in the latest development kernel, currently 2.6.20-rc3?
(In reply to comment #8) > Have you ever had this working under Linux? > Never... > Can you reproduce this with the in-kernel alsa drivers in the latest > development kernel, currently 2.6.20-rc3? > Uname info: Linux 2.6.20-gentoo-r4 #1 SMP PREEMPT Wed Mar 28 15:57:39 EEST 2007 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ AuthenticAMD GNU/Linux .config: # # Sound # CONFIG_SOUND=m # # Advanced Linux Sound Architecture # CONFIG_SND=m CONFIG_SND_TIMER=m CONFIG_SND_PCM=m CONFIG_SND_HWDEP=m CONFIG_SND_RAWMIDI=m CONFIG_SND_SEQUENCER=m # CONFIG_SND_SEQ_DUMMY is not set CONFIG_SND_OSSEMUL=y CONFIG_SND_MIXER_OSS=m CONFIG_SND_PCM_OSS=m CONFIG_SND_PCM_OSS_PLUGINS=y CONFIG_SND_SEQUENCER_OSS=y # CONFIG_SND_RTCTIMER is not set # CONFIG_SND_DYNAMIC_MINORS is not set CONFIG_SND_SUPPORT_OLD_API=y CONFIG_SND_VERBOSE_PROCFS=y # CONFIG_SND_VERBOSE_PRINTK is not set # CONFIG_SND_DEBUG is not set # # Generic devices # CONFIG_SND_AC97_CODEC=m # CONFIG_SND_DUMMY is not set # CONFIG_SND_VIRMIDI is not set # CONFIG_SND_MTPAV is not set # CONFIG_SND_SERIAL_U16550 is not set # CONFIG_SND_MPU401 is not set # # PCI devices # # CONFIG_SND_AD1889 is not set # CONFIG_SND_ALS300 is not set # CONFIG_SND_ALS4000 is not set # CONFIG_SND_ALI5451 is not set # CONFIG_SND_ATIIXP is not set # CONFIG_SND_ATIIXP_MODEM is not set # CONFIG_SND_AU8810 is not set # CONFIG_SND_AU8820 is not set # CONFIG_SND_AU8830 is not set # CONFIG_SND_AZT3328 is not set CONFIG_SND_BT87X=m # CONFIG_SND_BT87X_OVERCLOCK is not set # CONFIG_SND_CA0106 is not set # CONFIG_SND_CMIPCI is not set # CONFIG_SND_CS4281 is not set # CONFIG_SND_CS46XX is not set # CONFIG_SND_DARLA20 is not set # CONFIG_SND_GINA20 is not set # CONFIG_SND_LAYLA20 is not set # CONFIG_SND_DARLA24 is not set # CONFIG_SND_GINA24 is not set # CONFIG_SND_LAYLA24 is not set # CONFIG_SND_MONA is not set # CONFIG_SND_MIA is not set # CONFIG_SND_ECHO3G is not set # CONFIG_SND_INDIGO is not set # CONFIG_SND_INDIGOIO is not set # CONFIG_SND_INDIGODJ is not set CONFIG_SND_EMU10K1=m # CONFIG_SND_EMU10K1X is not set # CONFIG_SND_ENS1370 is not set # CONFIG_SND_ENS1371 is not set # CONFIG_SND_ES1938 is not set # CONFIG_SND_ES1968 is not set # CONFIG_SND_FM801 is not set # CONFIG_SND_HDA_INTEL is not set # CONFIG_SND_HDSP is not set # CONFIG_SND_HDSPM is not set # CONFIG_SND_ICE1712 is not set # CONFIG_SND_ICE1724 is not set CONFIG_SND_INTEL8X0=m # CONFIG_SND_INTEL8X0M is not set # CONFIG_SND_KORG1212 is not set # CONFIG_SND_MAESTRO3 is not set # CONFIG_SND_MIXART is not set # CONFIG_SND_NM256 is not set # CONFIG_SND_PCXHR is not set # CONFIG_SND_RIPTIDE is not set # CONFIG_SND_RME32 is not set # CONFIG_SND_RME96 is not set # CONFIG_SND_RME9652 is not set # CONFIG_SND_SONICVIBES is not set # CONFIG_SND_TRIDENT is not set # CONFIG_SND_VIA82XX is not set # CONFIG_SND_VIA82XX_MODEM is not set # CONFIG_SND_VX222 is not set # CONFIG_SND_YMFPCI is not set # CONFIG_SND_AC97_POWER_SAVE is not set # # USB devices # # CONFIG_SND_USB_AUDIO is not set # CONFIG_SND_USB_USX2Y is not set # # Open Sound System # # CONFIG_SOUND_PRIME is not set CONFIG_AC97_BUS=m lspci: 00:04.0 Multimedia audio controller: nVidia Corporation CK804 AC'97 Audio Controller (rev a2) This time, i hear the same sound, but alsa gives me some more information: ========================================================================== ========================================================================== Forced audio codec: hwac3 Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF No accelerated IMDCT transform found hwac3: switched to AC3, 384000 bps, 48000 Hz AUDIO: 48000 Hz, 2 ch, ac3, 384.0 kbit/25.00% (ratio: 48000->192000) Selected audio codec: [hwac3] afm: hwac3 (AC3 through S/PDIF) ========================================================================== [AO_ALSA] alsa-lib: conf.c:3830:(parse_args) Unknown parameter AES0 [AO_ALSA] alsa-lib: conf.c:3956:(snd_config_expand) Parse arguments error: No such file or directory [AO_ALSA] alsa-lib: pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM hw:0,2,AES0=6 AO: [alsa] 48000Hz 2ch ac3 (1 bytes per sample) Starting playback...
I actually meant you to try 2.6.21-rc5 but mistyped. Anyway, the 2.6.20 results are interesting so don't worry about testing 2.6.21 just yet. You are saying that on 2.6.20, you now hear audio over AC3 passthrough despite those error messages? Do you have any idea where "AES0" comes from? i.e. is it listed in your .asoundrc, asound.conf, or mplayer config?
(In reply to comment #10) > I actually meant you to try 2.6.21-rc5 but mistyped. Anyway, the 2.6.20 results > are interesting so don't worry about testing 2.6.21 just yet. > Unfortunately those error messages come from mplayer upgrade and not kernel upgrade... I emerged the previous version of mplayer to make sure of that... > You are saying that on 2.6.20, you now hear audio over AC3 passthrough despite > those error messages? > No i hear a crackling sound just like an electric discharge... I hope you can understand what i mean... > Do you have any idea where "AES0" comes from? i.e. is it listed in your > .asoundrc, asound.conf, or mplayer config? > My asound.conf is very simple, it is in my first comment.I used grep to find all files containing "AES0" in home and etc directories, but nothing related to mplayer...
OK. please test the latest development kernel (currently 2.6.21-rc6) and after confirming that the problem still exists there, file a bug at https://bugtrack.alsa-project.org and post the new URL here.