alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Wu Fengguang <fengguang.wu@intel.com>
To: pl bossart <bossart.nospam@gmail.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: HDMI hot-plug/ELD issues
Date: Mon, 23 Aug 2010 09:01:22 +0800	[thread overview]
Message-ID: <20100823010122.GA5740@localhost> (raw)
In-Reply-To: <AANLkTi=Nmtn8DsXH7u+tt0j_Cs1tnjaHO4XoLAPoyAAs@mail.gmail.com>

Hi Pierre,

On Thu, Aug 19, 2010 at 05:25:53PM -0500, pl bossart wrote:
> Hi,
> I was testing my pulseaudio AC3 passthrough patch on my new laptop
> (all Intel hw, Corei5/IbexPeak, 2.6.35) and noticed a set of issues
> with the HDMI output:
> 1. Playback can happen even if there's no HDMI cable plugged. Or when
> I remove the cable, the player isn't notified and keeps sending data
> to the driver. This is fine for PCM but I noticed that the receiver
> can handle some trouble synchronizing with in AC3-passthrough mode if
> the cable is inserted after the playback starts. It would be much
> cleaner to allow playback only when there's an actual cable connected,
> and to return -ENODEV or something to apps when this happens.

We used to turn off HDMI link when not playing. However that caused
loss of 0.5s samples when starting next playback, due to the slow
responding HDMI sink devices (in fact all my tested monitors/AV
receivers have this problem).

What's your test case? Keep playing during plug/unplug, or
play -- plug -- stop playing -- unplug -- play a new track?

Then there's the question whether to send -ENODEV to the audio player,
or to send udev events (for pulseaudio) on hotplug events, or to
disable HDMI link only for passthrough mode, or whatever policy.
Any ideas?

> 2. It looks like the ELD info is invalid in /proc/asound/cards/. Tried
> both with my TV and AV receiver, no luck, all zeroes except for
> 'monitor_present'
> 
> monitor_present         1
> eld_valid               0
> monitor_name
> connection_type         HDMI
> eld_version             [0x0] reserved
> edid_version            [0x0] no CEA EDID Timing Extension block present
> manufacture_id          0x0
> product_id              0x0
> port_id                 0x0
> support_hdcp            0
> support_ai              0
> audio_sync_delay        0
> speakers                [0xffff] FL/FR LFE FC RL/RR RC FLC/FRC RLC/RRC
> FLW/FRW FLH/FRH TC FCH
> sad_count               0
> 
> Is there a missing link with the display driver so that this info
> would make sense? I remember having a conversation with Fengguang Wu
> on this, but I can't remember what the outcome was. Or is this a case
> of back luck with broken hardware not sending the legal EDID info?
> Thanks for your help on this.

Sorry we have not implemented the ELD feature in video driver.  The
Intel gfx driver should read&parse HW EDID and pass the ELD info to
the audio driver.

Thanks,
Fengguang

  reply	other threads:[~2010-08-23  1:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-19 22:25 HDMI hot-plug/ELD issues pl bossart
2010-08-23  1:01 ` Wu Fengguang [this message]
2010-08-23 15:16   ` pl bossart

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100823010122.GA5740@localhost \
    --to=fengguang.wu@intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=bossart.nospam@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).