public inbox for linux-media@vger.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: Mon, 02 Aug 2010 13:59:54 +0200	[thread overview]
Message-ID: <1280750394.1361.87.camel@gagarin> (raw)
In-Reply-To: <AANLkTi=M2wVY3vL8nGBg-YqUtRidBahpE5OXbjr5k96X@mail.gmail.com>

On Mon, 2010-08-02 at 22:19 +1200, Shane Harrison wrote:
[snip]
> Thanks Lawrence, will give that a whirl tomorrow and the muting idea
> might be important in this case as well.  Wierd you posted Saturday
> the day after I last worked on this and looked at the archives :-)
> 
> I am not ruling out initialisation problems with the WM8775 but I do
> always seem to get an I2S output from it that has data in it that
> reflects the input.  However it could be the wrong variant of I2S or
> some other configuration that isn't set right.

Currently in wm8775.c line 223, R11 is set to 0x21 which is 24-bit left
justified mode.  This is wrong, it should be i2s mode (0x22).  My patch
correctly sets this register and also disables ALC mode which is
irrelevant when setting input level via ALSA and can cause hiss during
quiet sections.

> Strange how eventually
> I do get audio (albeit mixed with the TV source it appears) simply by
> looping thru and changing input sources with v4l2-ctl.

Probably switching glitches eventually hit the right data
synchronisation format.

> I note that the Nova-S doesn't have the hardware MPEG encoding

Correct.

>  so
> still hoping someone can enlighten me on the audio path when using
> that chip.

When a Blackbird cx23416 MPEG encoder is fitted, i2s audio data from the
wm8775 is routed through the cx23883.  The i2s output of the cx23883 is
enabled by the function set_audio_finish() in cx88-tvaudio.c line 148.
The cx23416 can accept stereo Sony I2S format audio data when quoting
from the Conexant datasheet "running its AILR sync signal through an
inverting flip-flop, clocked by an inverted AICKIN".

-- Lawrence Rust



  reply	other threads:[~2010-08-02 11:59 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 [this message]
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
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=1280750394.1361.87.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox