All of lore.kernel.org
 help / color / mirror / Atom feed
From: lawrence rust <lawrence@softsystem.co.uk>
To: Shane Harrison <shane.harrison@paragon.co.nz>
Cc: linux-media@vger.kernel.org
Subject: Re: Fwd: No audio in HW Compressed MPEG2 container on HVR-1300
Date: Fri, 06 Aug 2010 11:40:50 +0200	[thread overview]
Message-ID: <1281087650.1332.26.camel@gagarin> (raw)
In-Reply-To: <AANLkTik0UZmf5b4nTi1AgFiKQAGkvU47_dN0gUSw3urs@mail.gmail.com>

On Fri, 2010-08-06 at 11:49 +1200, Shane Harrison wrote:
[snip]
> Well still no luck this end.  Have done the following:
> 1) Swapped boards - no change
> 2) Applied the patch - no change (we were detecting the WM8775 OK
> anyway and the other changes were either non HVR-1300 or we had
> already tried them so probably not too surprising
> 3) Made sure I2SINPUT is enabled - no change
> 
> So still have the following strange observations:
> 1) Repeatedly swapping between inputs eventually gives us audio
> 2) Once fixed it survives a warm reboot but not power cycle

Because of the the warm boot survival I'm tempted to think that this is
a cx23416 firmware problem.

I don't have any experience with cx23416 programming but from looking at
cx88-blackbird.c it appears that the firmware is only loaded from the
function blackbird_initialize_codec() if the chip doesn't respond to a
'ping' command.  blackbird_initialize_codec() is called during probing,
during the first open and whenever the tuner frequency is changed - i.e.
when inputs are changed.  I would be tempted to set this module's debug
parameter and see if there's a coincidence of resetting/reloading the
firmware and the audio path being enabled.

> 3) Putting a scope on the I2S line out of the CX2388x shows noise when
> TV input selected and no noise for Composite (unless inject a tone).

This confirms that the cx2388x is setup OK

> However MPEG-2 audio always contains hiss or hiss plus injected tone.

This tells me that the cx23416 is not configured right.

> So looks like two issues to me.  I'll try and modify the driver so
> that when switching inputs we only config the WM8775 or the CX2388x or
> the MPEG encoder and see if I can determine which item has the
> configuration issue.

Seems like a good idea, but I would put money on the cx23416.

I would recommend looking at the debug output from cx88-blackbird and if
there's anything unusual then temporarily disable the ping test in
blackbird_initialize_codec() and always reset and re-load the firmware.
If this helps then maybe add some delays around the reset for a long
term fix.

-- Lawrence Rust



  reply	other threads:[~2010-08-06  9:41 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-02  2:15 No audio in HW Compressed MPEG2 container on HVR-1300 Shane Harrison
2010-08-02  9:32 ` lawrence rust
     [not found]   ` <AANLkTinHK8mVwrCnOZTUMsHVGTykj8bNdkKwcbMQ8LK_@mail.gmail.com>
2010-08-02 10:19     ` Fwd: " Shane Harrison
2010-08-02 11:59       ` lawrence rust
2010-08-02 21:02         ` Shane Harrison
2010-08-03 13:48           ` lawrence rust
2010-08-05 23:49             ` Shane Harrison
2010-08-06  9:40               ` lawrence rust [this message]
2010-08-06 12:15                 ` Andy Walls
2010-08-06 12:22                 ` Andy Walls
2010-08-07  9:54                   ` lawrence rust

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=1281087650.1332.26.camel@gagarin \
    --to=lawrence@softsystem.co.uk \
    --cc=linux-media@vger.kernel.org \
    --cc=shane.harrison@paragon.co.nz \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.