From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mohammad Bahathir Hashim Subject: Re: HDMI on HDA device=3 Date: Wed, 10 Nov 2010 03:12:42 +0000 (UTC) Message-ID: References: <4CD95DD9.2070102@canonical.com> Reply-To: Mohammad Bahathir Hashim 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 DB9C0244C0 for ; Wed, 10 Nov 2010 04:12:58 +0100 (CET) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PG17H-0000XS-Jw for alsa-devel@alsa-project.org; Wed, 10 Nov 2010 04:12:55 +0100 Received: from 203.106.17.237 ([203.106.17.237]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Nov 2010 04:12:55 +0100 Received: from bahathir by 203.106.17.237 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Nov 2010 04:12:55 +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 On 2010-11-09, Jaroslav Kysela wrote: > On Tue, 9 Nov 2010, Mohammad Bahathir Hashim wrote: > >> On 2010-11-09, Jaroslav Kysela wrote: >>> On Tue, 9 Nov 2010, Mohammad Bahathir Hashim wrote: >>> >>>> On 2010-11-09, David Henningsson wrote: >>>>> I have seen a few HDMIs which share the HDA controller with the onboard >>>>> sound card, but the codecs are different, e g the onboard one is at >>>>> address #0 and the HDMI is at address #3 - or even #3, #7, #8 and #9 in >>>>> some cases. >>>>> >>>>> Now, if the user specifies the device string hdmi:x (where x is card >>>>> name/number), I'd like it to kind of autodetect this and use DEV=3 >>>>> instead of DEV=0, and without breaking the cards where the hdmi is a >>>>> separate card with a codec at address #0. However, it still seems like >>>>> the device is at DEV=3 somehow. >>>>> >>>>> Now, looking at /usr/share/alsa/cards/HDA-Intel.conf, I notice that >>>>> there are entries HDA-Intel.pcm.hdmi.0 which sets DEV=3, so it seems >>>>> like someone already thought of this. However, just using "hdmi:x" does >>>>> not trigger "DEV=3". I'm still not grepping all of the alsa lisp >>>>> architecture stuff, so could someone explain to me how the >>>>> HDA-Intel.pcm.hdmi.0 entry relates to the "hdmi:x" alsa device string? >>>>> >>>> >>>> I am not sure about Intel HDMI, but, in my case with MacbookPro 6,2 >>>> (15" Mid 2010); the HDMI audio stream via NVIDIA HDMI can only be >>>> started if I use hw:1,7 (or Mplayer's -ao alsa:device=hw=1.7). No >>> >>> This should be equal to '-ao alsa:device=hdmi=1.1' (hdmi:1,1 in ALSA >>> naming). >>> >>> Jaroslav >>> >>> ----- >>> Jaroslav Kysela >>> Linux Kernel Sound Maintainer >>> ALSA Project, Red Hat, Inc. >> >> >> Ok, I tried the -ao alsa:device=hdmi=1.7 ... but, MPlayer complains; > > No, 1.7 but 1.1 (hw device 7 is logical device 1 - aka second device - for > hdmi). > > Jaroslav > > ----- > Jaroslav Kysela > Linux Kernel Sound Maintainer > ALSA Project, Red Hat, Inc. Yup, I tried both -ao alsa:device=hdmi=1.1 and -ao alsa:device=1.7, but, I got same or similar errors. Thanks :)