All of lore.kernel.org
 help / color / mirror / Atom feed
* Master vs. Front/Rear/LFE/... elements
@ 2009-05-06 17:58 Lennart Poettering
  2009-05-07  8:49 ` Takashi Iwai
  0 siblings, 1 reply; 17+ messages in thread
From: Lennart Poettering @ 2009-05-06 17:58 UTC (permalink / raw)
  To: ALSA Development Mailing List

Heya!

Some cards expose 'Master' volume sliders. Others expose seperate
(stereo) sliders for 'Front', 'Rear' and so on. I have trouble dealing
with them properly in PulseAudio:

First of all, on some cards 'Master' seems not to have any effect on
the actual analog output, only 'Front' and friends do. Is this a bug
or intended behaviour? Can I assume that 'Master' and 'Front' are
always independant?

Secondly, I have trouble supporting the
'Front'/'Rear'/'Side'/... elements properly, since they split up the
surround channels into seperate elements. Now, this is confusing in
many ways, even for "amixer" which will then show channels such as
"Rear Front Left" and so on, which obviously make no
sense. snd_mixer_selem_has_playback_channel() just returns bogus data
for these cases. Why are those elements seperate anyway? Why aren't
they combined into a single multi-channel event? Looking at the APIs I
get the idea that the problem appears to be that elements can only
control all channels the same are all independantly which doesn't
really match 1:1 on my multichannel sound cards. However, wouldn't it
be possible to use the 'index' value of a selem_id for this? I.e. have
a series of controls by the same name but different indexes which
would then implement snd_mixer_selem_has_playback_channel() correctly?
i.e. foo,0 would do front-left/right, foo,1 would do rear, foo,2 would
do lfe, and so? I have no clue how this implemented internally, so not
sure how feasible this might be.

Lennart

-- 
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/           GnuPG 0x1A015CC4

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2009-05-12 13:15 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-06 17:58 Master vs. Front/Rear/LFE/... elements Lennart Poettering
2009-05-07  8:49 ` Takashi Iwai
2009-05-07 10:09   ` Mark Brown
2009-05-07 10:30     ` Takashi Iwai
2009-05-07 10:53       ` Mark Brown
2009-05-07 12:56       ` Lennart Poettering
2009-05-07 13:10         ` Mark Brown
2009-05-07 13:12         ` Pavel Hofman
2009-05-08  6:36     ` Eliot Blennerhassett
2009-05-07 12:46   ` Lennart Poettering
2009-05-07 13:18     ` Takashi Iwai
2009-05-09 22:11       ` Lennart Poettering
2009-05-11  9:26         ` Takashi Iwai
2009-05-12  7:47   ` James Courtier-Dutton
2009-05-12  8:02     ` Jaroslav Kysela
2009-05-12  9:21     ` Mark Brown
2009-05-12 13:15     ` Lennart Poettering

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.