From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: Devin Heitmueller <dheitmueller@kernellabs.com>
Cc: Hans de Goede <hdegoede@redhat.com>,
Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: Re: Some fixes for alsa_stream
Date: Tue, 14 Jun 2011 11:17:44 -0300 [thread overview]
Message-ID: <4DF76D88.5000506@redhat.com> (raw)
In-Reply-To: <BANLkTi=9L+oxjpUaFo3ge0iqcZ2NCjJWWA@mail.gmail.com>
Em 14-06-2011 10:52, Devin Heitmueller escreveu:
> On Tue, Jun 14, 2011 at 9:47 AM, Hans de Goede <hdegoede@redhat.com> wrote:
>> Hmm, we really don't need more cmdline options IMHO, it is quite easy to
>> detect
>> if an alsa device supports mmap mode, and if not fall back to r/w mode, I
>> know
>> several programs which do that (some if which I've written the patches to do
>> this for myself).
>
> Agreed.
>
>>> It should be noticed that the driver tries first to access the alsa driver
>>> directly,
>>> by using hw:0,0 output device. If it fails, it falls back to plughw:0,0.
>>> I'm not sure
>>> what's the name of the pulseaudio output, but I suspect that both are just
>>> bypassing
>>> pulseaudio, with is good ;)
>>
>> Right this means you're just bypassing pulse audio, which for a tvcard +
>> tv-viewing
>
> Actually, the ALSA client libraries route through PulseAudio (as long
> as Pulse is running). Basically PulseAudio is providing emulation for
> the ALSA interface even if you specify "hw:1,0" as the device.
I'm not so sure about that. This probably depends on how the alsa library
is configured, and this is distribution-specific. I'm almost sure that
pulseaudio won't touch on hw: on Fedora.
>> app is a reasonable thing to do. Defaulting to hw:0,0 makes no sense to me
>> though, we
>> should default to either the audio devices belonging to the video device (as
>> determined
>> through sysfs), or to alsa's default input (which will likely be
>> pulseaudio).
>
> Mauro was talking about the output device, not the input device.
Yes.
The default for capture is the one detected via sysfs.
The default for playback is not really hw:0,0. It defaults to the first hw: that it is not
associated with a video device.
I don't like the idea of defaulting to pulseaudio: on my own experiences, the addition
of pulseaudio didn't bring me any benefit, but it causes several troubles that I needed to
workaround, like disabling the access to the master volume control on a Sony Vaio notebook
while setting it to 0 (I had to manually add some scripting at rc.local to fix),
limiting the max volume to half of the maximum (very bad effect on some notebooks),
preventing rmmod of V4L devices, and not working when the development user is different
than the console owner, even when it is at the audio group. I can't think on even a single
benefit of using it on my usecase.
Besides that, video playback generates too much IO, and, on slower machines, it demands
a lot of CPU time. Not having an extra software layer is a good thing to do for the
default.
If someone wants to use pulseaudio, all they need to do is to pass an extra parameter.
That's said, I was not able yet to discover what are the alsa names for pulseaudio
devices. Any ideas on how to get it?
Mauro
next prev parent reply other threads:[~2011-06-14 14:17 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-14 2:01 Some fixes for alsa_stream Mauro Carvalho Chehab
2011-06-14 12:48 ` Hans de Goede
2011-06-14 13:05 ` Mauro Carvalho Chehab
2011-06-14 13:39 ` Mauro Carvalho Chehab
2011-06-14 13:47 ` Hans de Goede
2011-06-14 13:52 ` Devin Heitmueller
2011-06-14 14:17 ` Mauro Carvalho Chehab [this message]
2011-06-14 14:37 ` Hans de Goede
2011-06-14 14:45 ` Mauro Carvalho Chehab
2011-06-14 14:48 ` Devin Heitmueller
2011-06-14 15:51 ` Mauro Carvalho Chehab
2011-06-15 13:43 ` Hans de Goede
2011-06-15 14:25 ` Mauro Carvalho Chehab
2011-06-15 14:35 ` Hans de Goede
2011-06-15 14:51 ` Mauro Carvalho Chehab
2011-06-15 15:45 ` Mauro Carvalho Chehab
2011-06-16 12:29 ` Hans de Goede
2011-06-16 14:38 ` Mauro Carvalho Chehab
2011-06-16 15:11 ` Hans de Goede
2011-06-16 15:35 ` Mauro Carvalho Chehab
2011-06-16 18:19 ` Hans de Goede
2011-06-16 18:28 ` Mauro Carvalho Chehab
2011-06-15 14:36 ` Mauro Carvalho Chehab
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=4DF76D88.5000506@redhat.com \
--to=mchehab@redhat.com \
--cc=dheitmueller@kernellabs.com \
--cc=hdegoede@redhat.com \
--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