devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Thierry Reding <thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
Cc: Dylan Reid <dgreid-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>,
	Peter De Schrijver
	<pdeschrijver-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
	"linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 1/2] ARM: tegra: Add Tegra124 HDA support
Date: Wed, 4 Jun 2014 22:43:33 +0200	[thread overview]
Message-ID: <20140604204330.GA18710@mithrandir> (raw)
In-Reply-To: <538F6DA5.9040608-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 4208 bytes --]

On Wed, Jun 04, 2014 at 01:04:05PM -0600, Stephen Warren wrote:
> On 06/04/2014 11:51 AM, Dylan Reid wrote:
> > On Wed, Jun 4, 2014 at 10:32 AM, Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> wrote:
> >> On 05/30/2014 07:45 PM, Dylan Reid wrote:
> >>> On Fri, May 23, 2014 at 1:34 PM, Dylan Reid <dgreid-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org> wrote:
> >>>> On Fri, May 23, 2014 at 12:05 PM, Stephen Warren <swarren@wwwdotorg.org> wrote:
> >>>>> On 05/22/2014 09:55 PM, Dylan Reid wrote:
> >>>>> ...
> >>>>>>>>>>>>> On Tue, May 20, 2014 at 2:55 PM, Stephen Warren <swarren@wwwdotorg.org> wrote:
> >>>>> ...
> >>>>>>>>>>>>>> Now I have the same results as Thierry; speaker-test looks like it
> >>>>>>>>>>>>>> should be working, yet I don't hear any audio from the monitor. I know
> >>>>>>>>>>>>>> the monitor works, since I've used it extensively for testing GeForce
> >>>>>>>>>>>>>> GPU HDMI audio.
> >>>>> ...
> >>>>>> Took all day, but I did get to try this.
> >>>>>>
> >>>>>> on U-Boot commit d7782d0, flashed with Stephen's u-boot flasher from github.
> >>>>>>
> >>>>>> And kernel at 81d0207 - ARM: tegra: enable HD-Audio controller in defconfig
> >>>>>> plus the addition of the hda node "okay"  to the jetson-tk1 DT.
> >>>>>>
> >>>>>> I can hear the jetson's audio on the TV.  This is currently a sample
> >>>>>> size of one TV, I'll set up the Quantum Data tomorrow and check that
> >>>>>> it works there as well.
> >>>>>
> >>>>> I tried that same U-Boot commit (with a few device-mode USB patches on
> >>>>> top that shouldn't affect anything since I didn't use USB device mode)
> >>>>> and have the same results.
> >>>>>
> >>>>> My monitor is a Dell U2410 with sound bar.
> >>>
> >>> I found one of these.  I also didn't hear any audio.  In fact I
> >>> couldn't get audio out of most monitors, TV sets worked fine.
> >>>
> >>> hdmi.c couldn't configure audio for the pixel clock generated for the
> >>> monitor.  Luckily I found a patch in our downstream tree that fixes
> >>> it.
> >>>
> >>> video: tegra: Calculate HDMI audio CTS/N/AVAL values -- 7/25/11 author
> >>> swarren =)
> >>>
> >>> Thanks for fixing this for me!
> >>>
> >>> I can send this up unless you'd rather send it yourself.
> >>>
> >>> I appended the patch moved to the new location of hdmi.c:
> >>
> >> That wouldn't apply for me since all the TABs were spaces in the email.
> >> I tracked down the original and manually ported it over. You can find it
> >> in my github if you're interested:
> >>
> >> git://github.com/swarren/linux-tegra.git tegra_dev
> >>
> >> That patch does make things a bit better, but there are still some issues.
> >>
> >> When my (Venice2) system boots, the login screen is displayed at native
> >> LCD resolution, and my HDMI monitor displays a 1920x1200 chunk from the
> >> top-left of the LCD. At this point, I can play 44.1KHz audio without
> >> issue. 48KHz doesn't work due to hdmi->audio_freq not being updated, as
> >> I mentioned in my previous mail.
> > 
> > Do you have a good idea how to convey this information from the audio
> > driver over to HDMI?
> > Downstream I see we have a hideous if CONFIG_TEGRA_DC in patch_hdmi.
> 
> The only way of avoiding that would be to create some kind of common
> infra-structure where video drivers can register for notifications from
> arbitrary audio devices. Then, the HDA code could always call this, and
> there'd be no direct references between the two drivers. To be honest
> though, this feels like creating a whole bunch of overhead for something
> that's very simple and likely not a maintenance issue, so I'm not sure
> there's much benefit doing that.

FWIW, there's currently a discussion going on about this on alsa-devel:

	[RFC] set up an sync channel between audio and display driver (i.e. ALSA and DRM)
	http://mailman.alsa-project.org/pipermail/alsa-devel/2014-May/076800.html
	http://mailman.alsa-project.org/pipermail/alsa-devel/2014-June/077371.html

Some of the ideas discussed there seem to be overengineered, but in
light of this thread it might be good if you guys could join in and
share some of your insights.

Thierry

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

  parent reply	other threads:[~2014-06-04 20:43 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-20 20:37 [PATCH 1/2] ARM: tegra: Add Tegra124 HDA support Dylan Reid
     [not found] ` <CAEUnVG7+=1ko8NL1Z3ovSpGveUADUidy4sBhU_dTUe1zbe-bMA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-05-20 21:55   ` Stephen Warren
     [not found]     ` <537BCF39.6050909-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2014-05-20 23:28       ` Dylan Reid
     [not found]         ` <CAEUnVG7CRWx5Y3RsgPzrHgYRGAx=bS4WY=w1xBUw0Ukt0DTdUQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-05-20 23:42           ` Stephen Warren
2014-05-21 20:55           ` Thierry Reding
2014-05-21 21:10             ` Dylan Reid
     [not found]               ` <CAEUnVG7tDjw_6wHc=FN0KsOKsSS1u8H8SzYdxt9VCwUsARRTeQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-05-22  9:50                 ` Thierry Reding
2014-05-22 17:48                   ` Dylan Reid
     [not found]                     ` <CAEUnVG5pNMzDoXGso+UiAWPpD0hNPhBPyGr8KfV587AuU70QPQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-05-22 17:54                       ` Stephen Warren
     [not found]                         ` <537E39D9.2000304-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2014-05-22 18:05                           ` Dylan Reid
     [not found]                             ` <CAEUnVG4UettOj0xDy+f6qEhUbhNs=u-wgyCf_Prsd2JpnmFfLw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-05-23  3:55                               ` Dylan Reid
2014-05-23 19:05                                 ` Stephen Warren
     [not found]                                   ` <537F9BEB.5020102-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2014-05-23 20:34                                     ` Dylan Reid
     [not found]                                       ` <CAEUnVG63BCgpGuo+qcYkvpnVSSguBy9xwSC_AoZqCt1RgBqm7w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-05-31  1:45                                         ` Dylan Reid
     [not found]                                           ` <CAEUnVG52fJhd9213fdydoUW11N0yZ31T2MZ2BPmd5Q2xkZ8XeQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-06-04 17:32                                             ` Stephen Warren
     [not found]                                               ` <538F5848.1050803-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2014-06-04 17:51                                                 ` Dylan Reid
     [not found]                                               ` <CAEUnVG7bbcPjRcGxn_GAJ7rKJy4g_5veEsRnU 2yCDVWFY3ncUQ@mail.gmail.com>
     [not found]                                                 ` <CAEUnVG7bbcPjRcGxn_GAJ7rKJy4g_5veEsRnU2yCDVWFY3ncUQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-06-04 19:04                                                   ` Stephen Warren
     [not found]                                                     ` <538F6DA5.9040608-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2014-06-04 20:43                                                       ` Thierry Reding [this message]
2014-06-04 17:13                                         ` Stephen Warren
  -- strict thread matches above, loose matches on Subject: below --
2014-05-20  2:35 Dylan Reid
     [not found] ` <1400553346-23238-1-git-send-email-dgreid-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2014-05-20 18:24   ` Stephen Warren
     [not found]     ` <537B9DE3.5020807-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2014-05-20 18:31       ` Stephen Warren
2014-06-16 19:10   ` Stephen Warren

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=20140604204330.GA18710@mithrandir \
    --to=thierry.reding-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=dgreid-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org \
    --cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=pdeschrijver-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
    --cc=swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org \
    /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).