From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Christensen Subject: wrong channel mappings for HDMI audio Date: Wed, 10 Nov 2010 19:27:59 -0500 Message-ID: <87fwv8puuo.fsf@uwo.ca> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by alsa0.perex.cz (Postfix) with ESMTP id B28C510388B for ; Thu, 11 Nov 2010 01:30:05 +0100 (CET) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PGL3E-0007pA-Dh for alsa-devel@alsa-project.org; Thu, 11 Nov 2010 01:30:04 +0100 Received: from bas3-london14-1096778080.dsl.bell.ca ([65.95.129.96]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Nov 2010 01:30:04 +0100 Received: from jdc by bas3-london14-1096778080.dsl.bell.ca with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Nov 2010 01:30:04 +0100 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org [System specs at end.] When I try to use 5.1 audio over HDMI, the front left and front right channels are correct, but the others are wrong: - surround (rear) left and center are swapped - surround (rear) right and LFE are swapped This has been tested using "speaker-test -c6 -Dhw:0,3 -twav" and also by playing http://www.avenard.org/files/media/videotest/audiotest/idch_AviaSurroundTest-AAC.mkv http://www.avenard.org/files/media/videotest/audiotest/idch_AviaSurroundTest-DTS.mkv using mplayer and mythtv. They play correctly with digital passthrough: AAC and DTS for mythtv, and DTS for mplayer. Jean-Yves Avenard reports that they play correctly using 5.1 analog output on the same motherboard, but I haven't tested that myself. Let me know if this would be helpful, e.g. if it is hard to believe that analog has the correct mapping while HDMI doesn't. James Courtier-Dutton suggested that I report this here, in the hopes that ALSA can be taught the correct mapping for my sound card. I'm also interested in the best way to work around this in the meantime. Thanks for any help! Dan System specs: Motherboard: Gigabyte GA-E7AUM-DS2H http://gigabyte.com/products/product-page.aspx?pid=2946#ov Up-to-date Debian squeeze with 2.6.32-5-686-bigmem kernel. ALSA packages installed: alsa-base 1.0.23+dfsg-2 ALSA driver configuration files alsa-oss 1.0.17-4 ALSA wrapper for OSS applications alsa-source 1.0.23+dfsg-2 ALSA driver sources alsa-utils 1.0.23-3 Utilities for configuring and using ALSA alsaplayer-alsa 0.99.80-5+b1 PCM player designed for ALSA (ALSA output module) alsaplayer-common 0.99.80-5+b1 PCM player designed for ALSA (common files) alsaplayer-oss 0.99.80-5+b1 PCM player designed for ALSA (OSS output module) alsaplayer-text 0.99.80-5+b1 PCM player designed for ALSA (text version) libasound2 1.0.23-2.1 shared library for ALSA applications linux-sound-base 1.0.23+dfsg-2 base package for ALSA and OSS sound systems xmms2-plugin-alsa 0.7DrNo+dfsg-2 XMMS2 - ALSA output Pioneer VSX-820-K receiver, which has 5 speakers connected (no subwoofer), receiving input over HDMI. asound.conf: pcm.!default { type hw card 0 device 3 } lspci -vv output: 00:08.0 Audio device: nVidia Corporation MCP79 High Definition Audio (rev b1) Subsystem: Giga-byte Technology Device a102 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- SERR-