All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans Verkuil <hverkuil@xs4all.nl>
To: Scott Doty <scott@ponzo.net>
Cc: linux-media@vger.kernel.org
Subject: Re: hdpvr troubles
Date: Wed, 11 Jun 2014 22:33:30 +0200	[thread overview]
Message-ID: <5398BD1A.2000705@xs4all.nl> (raw)
In-Reply-To: <5398B15C.9040409@ponzo.net>

On 06/11/2014 09:43 PM, Scott Doty wrote:
> On 06/11/2014 01:24 AM, Hans Verkuil wrote:
>> On 06/03/14 03:23, Scott Doty wrote:
>>> Hello Mr. Hans and mailing list,
>>>
>>> In a nutshell, I'm having some hdpvr trouble:
>>>
>>> I'm using vlc to view the stream.  Kernel 3.9.11 works pretty well,
>>> including giving me AC3 5.1 audio from the optical input to the
>>> Hauppauge device.  The only problem I've run across is the device
>>> hanging when I change channels, but I've learned to live with that. 
>>> (Though naturally it would be nice to fix. :) )
>>>
>>> However, every kernel I've tried after 3.9.11 seems to have trouble with
>>> the audio.  I get silence, and pulseaudio reports there is only stereo. 
>>> I've taken a couple of of snapshots of pavucontrol so you can see what I
>>> mean:
>>>
>>>    http://imgur.com/a/SIwc7
>>>
>>> I even tried a git bisect to try to narrow down where things went awry,
>>> but ran out of time to pursue the question.  But as far as I can tell,
>>> 3.9.11 is as far as I can go before my system won't use the device properly.
>>>
>>> I see the conversation in the archives from around the middle of May,
>>> where Hans was working with Ryley and Keith, but I'm not sure if I
>>> should apply that patch or not.  I would love to make this work,
>>> including submitting a patch if someone could outline where the problem
>>> might be.
>>>
>>> Thank you in advance for any help you can provide, and please let me
>>> know if I can send any more information. :)
>> You can certainly try this patch:
>>
>> https://patchwork.linuxtv.org/patch/23890/
>>
>> Nobody else reported audio problems other than the issue this patch tries
>> to resolve. However, that problem most likely has been with hdpvr since
>> the very beginning.
>>
>> There were some major changes made to the driver in 3.10, so that makes me
>> suspect that something might have broken. Odd though that I didn't see any
>> reports about that.
>>
>> Keith, Ryley, if you run v4l2-ctl -D, what is the version number that is
>> reported?
>>
>> If it is >= 3.10, then can you test with vlc as well?
> 
> Just tried the patch with 3.14.5, and it didn't solve the problem.
> 
> I'm not sure what's different about my system than other folks', unless
> they aren't using the optical input?
> 
> Indeed, it acts just like the driver isn't properly honoring
> "default_audio_input=2".  (For S/PDIF).  Thinking that might be a clue,
> I hooked up stereo through the RCA jacks.  With "default_audio_input=2",
> I did hear some crackling sounds -- but nothing intelligible, and I'm
> having a hard time reproducing that.  With "default_audio_input=0", I
> get clear stereo sound from the RCA jacks.

Ah, you never mentioned that you used the default_audio_input module option.
I looked at that and that did indeed break in 3.10. You probably need to
do 'v4l2-ctl -c audio_encoding=4'. In 3.9 selecting default_audio_input=2
would also switch to AC3 audio encoding, but in 3.10 that is reset a bit
later to AAC.

But by selecting it manually it should work again. Let me know if I am
correct and if so, then I'll make a patch for this to fix this behavior.

Regards,

	Hans

  reply	other threads:[~2014-06-11 20:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-03  1:23 hdpvr troubles Scott Doty
2014-06-06 22:43 ` Scott Doty
2014-06-11  8:24 ` Hans Verkuil
2014-06-11 19:43   ` Scott Doty
2014-06-11 20:33     ` Hans Verkuil [this message]
2014-06-11 21:04       ` Scott Doty

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=5398BD1A.2000705@xs4all.nl \
    --to=hverkuil@xs4all.nl \
    --cc=linux-media@vger.kernel.org \
    --cc=scott@ponzo.net \
    /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.