From: Antti Palosaari <crope@iki.fi>
To: Hans de Goede <hdegoede@redhat.com>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>,
hverkuil@xs4all.nl
Subject: Re: [PATCH 4/4] radio-si470x: Lower firmware version requirements
Date: Thu, 05 Jul 2012 18:09:33 +0300 [thread overview]
Message-ID: <4FF5AE2D.7040309@iki.fi> (raw)
In-Reply-To: <4FF5ADE3.5040600@redhat.com>
On 07/05/2012 06:08 PM, Hans de Goede wrote:
> Hi,
>
> On 07/05/2012 04:13 PM, Antti Palosaari wrote:
>> On 07/05/2012 04:41 PM, Hans de Goede wrote:
>>> Hi,
>>>
>>> On 07/05/2012 03:35 PM, Antti Palosaari wrote:
>>>
>>> <snip>
>>>
>>>>> I believe you're doing something wrong ...
>>>>>
>>>>>> I compiled radio from http://git.linuxtv.org/xawtv3.git to tune and
>>>>> > "arecord -r96000 -c2 -f S16_LE | aplay - " to play sound. Just
>>>>> silent white noise is heard.
>>>>>
>>>>> You're not specifying which device arecord should record from so
>>>>> likely
>>>>> it is taking
>>>>> the default input of your soundcard (line/mic in), rather then
>>>>> recording
>>>>> from the
>>>>> radio device.
>>>>
>>>> I tried to define hw:1,0 etc. but only hw:0,0 exists.
>>>>
>>>>> Note the latest radio from http://git.linuxtv.org/xawtv3.git will
>>>>> do the
>>>>> digital loopback of
>>>>> the sound itself, so try things again with running arecord / aplay, if
>>>>> you then start radio
>>>>> and exit again (so that you can see its startup messages) you
>>>>> should see
>>>>> something like this:
>>>>>
>>>>> "Using alsa loopback: cap: hw:1,0 (/dev/radio0), out: default"
>>>>>
>>>>> Note radio will automatically select the correct alsa device to record
>>>>> from for the radio-usb-stick.
>>>>
>>>> For some reason I don't see that happening.
>>>
>>> Hmm, so it seems that for some reason alsa is not working with the usb
>>> "sound-card" part of the usb-stick. Can you try doing:
>>>
>>> ls /dev/snd/
>>>
>>> Before and after plugging in the device, you should get a new
>>> PCMC?D0c device there.
>>
>> Two files appears, controlC2 and pcmC2D0c.
>>
>>> Otherwise see if you can enable some debugging options for snd-usb-audio
>>> and find out why it is not liking your device (and maybe at a quirk for
>>> it somewhere) ? If you do end up adding a quirk please let me know
>>> and I'll test with mine to ensure the quirck does not break working
>>> versions :)
>>
>> And now I can hear the voice too using "arecord -D hw:2,0 -r96000 -c2
>> -f S16_LE | aplay -".
> >
> > But loopback is still missing.
>
> So if you start radio before starting the arecord, it won't do the
> loopback for you?
> Have you compiled xawtv with alsa support? (this requires the libalsa
> headers to be installed)
aah, that explains.
compile time options summary
============================
aalib : no
alsa : no
dv : no
QuickTime : no
OpenMotif : no
X11R6 : no
OpenGL : no
zvbi : no
libv4l : yes
libexplain : no
regards
Antti
--
http://palosaari.fi/
next prev parent reply other threads:[~2012-07-05 15:09 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-14 13:43 [PATCH 1/4] radio-si470x: Don't unnecesarily read registers on G_TUNER Hans de Goede
2012-06-14 13:43 ` [PATCH 2/4] radio-si470x: Always use interrupt to wait for tune/seek completion Hans de Goede
2012-06-14 13:43 ` [PATCH 3/4] radio-si470x: Lower hardware freq seek signal treshold Hans de Goede
2012-06-14 13:43 ` [PATCH 4/4] radio-si470x: Lower firmware version requirements Hans de Goede
2012-07-04 15:23 ` Antti Palosaari
2012-07-05 8:33 ` Hans de Goede
2012-07-05 13:35 ` Antti Palosaari
2012-07-05 13:41 ` Hans de Goede
2012-07-05 14:13 ` Antti Palosaari
2012-07-05 15:08 ` Hans de Goede
2012-07-05 15:09 ` Antti Palosaari [this message]
2012-07-07 7:58 ` Hans de Goede
2012-07-07 9:00 ` Antti Palosaari
2012-07-07 18:53 ` Hans de Goede
2012-07-09 9:17 ` Antti Palosaari
2012-07-09 10:03 ` Hans de Goede
2012-07-09 11:58 ` Antti Palosaari
2012-07-09 13:02 ` Hans de Goede
2012-07-09 13:34 ` Antti Palosaari
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=4FF5AE2D.7040309@iki.fi \
--to=crope@iki.fi \
--cc=hdegoede@redhat.com \
--cc=hverkuil@xs4all.nl \
--cc=linux-media@vger.kernel.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).