Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 92622 - New ALSA Guide
Summary: New ALSA Guide
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Alsa Configuration Guide (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Shyam Mani (RETIRED)
URL: http://xinetd.accosted.net/gentoo/als...
Whiteboard:
Keywords:
: 89521 92909 92912 92914 (view as bug list)
Depends on: 92711
Blocks: 94464
  Show dependency tree
 
Reported: 2005-05-14 11:54 UTC by Shyam Mani (RETIRED)
Modified: 2005-06-06 13:25 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
New alsa-guide.xml (alsa-guide.xml,21.85 KB, text/plain)
2005-05-14 11:55 UTC, Shyam Mani (RETIRED)
Details
Fig 1 - AlsaMixer Muted (alsamixer-muted.png,16.75 KB, image/png)
2005-05-14 11:56 UTC, Shyam Mani (RETIRED)
Details
Fig 2 - AlsaMixer Unmuted (alsamixer.png,16.93 KB, image/png)
2005-05-14 11:57 UTC, Shyam Mani (RETIRED)
Details
Updated new alsa-guide.xml (alsa-guide.xml,22.92 KB, text/plain)
2005-05-18 04:16 UTC, Shyam Mani (RETIRED)
Details
New alsa-guide.xml, take 3 (alsa-guide.xml,23.06 KB, text/plain)
2005-06-02 12:08 UTC, Shyam Mani (RETIRED)
Details
New alsa-guide.xml, take 4 (alsa-guide.xml,23.04 KB, text/plain)
2005-06-02 12:42 UTC, Shyam Mani (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Shyam Mani (RETIRED) gentoo-dev 2005-05-14 11:54:36 UTC
I've re-written the existing ALSA guide to fix Bug 89521 and make the doc a wee bit more better to understand and make the install options clear to the end user.

This is complete re-write of the doc from scratch....this means that except for at most 2 sections, the rest of the doc has completely changed.

Attaching two image files as well, for alsamixer.

There is no section on Joystick support in the new doc as my sound card has no joystick port and I couldn't verify the correctness of the earlier doc as well. I aslo just had a look at overview.xml and saw Bug 48733 which again, I couldn't test. Would be nice if someone could. Attachments to follow.
Comment 1 Shyam Mani (RETIRED) gentoo-dev 2005-05-14 11:55:50 UTC
Created attachment 58891 [details]
New alsa-guide.xml
Comment 2 Shyam Mani (RETIRED) gentoo-dev 2005-05-14 11:56:44 UTC
Created attachment 58892 [details]
Fig 1 - AlsaMixer Muted
Comment 3 Shyam Mani (RETIRED) gentoo-dev 2005-05-14 11:57:44 UTC
Created attachment 58893 [details]
Fig 2 - AlsaMixer Unmuted
Comment 4 Jonathan Smith (RETIRED) gentoo-dev 2005-05-14 12:11:24 UTC
see http://neverland.ncssm.edu/~smithj/gentoo/alsa-guide.html for the rendered html (total rewrites and new docs are a pain to read by hand sometimes)
Comment 5 Jan Kundrát (RETIRED) gentoo-dev 2005-05-14 14:17:40 UTC
I have several remarks:

a) Last section about saying "thanks" - I see that author tried to give credits to the original authors, but I don't know about any other guide doing so.

b) `cat .config | grep blah` - use `grep blah .config` instead ;-)

c) Ad in-kernel ALSA vs. alsa-driver usage - I'm not sure that the guide should suggest using alsa-driver as it requires rebuild after every kernel upgrade, and, to my current knowledge, Portage can't automate it yet. So I think that the warning about this topic should be added to the second paragraph where the reader is presented with his/her choices.

So, my suggestions coming from c):
1) Add note about need of rebuilding to the beginning of the guide (I know it is in the middle)
2) Don't recommend alsa-driver as default just because it is newer

And finally d):
d) In the Handbook, text above code listings often end with colon. I vote for style unification.
Comment 6 Shyam Mani (RETIRED) gentoo-dev 2005-05-14 22:31:08 UTC
a) Personally, I don't see the problem in thanking people for their work. And hey, lets set a good precedent :) Part of this guide were taken verbatim from the old one (timidity++) and well, those guys did the old doc, I think there's nothing wrong in mentioning them.

b) Totally agreed. Dumb mistake ;)

c) This needs to be debated/pros-cons discussed. Personally, I'm in favor of ALSA in the kernel as its less painful. Also, genkernel seems to be configured with modularized ALSA built-in by default. Which means, no alsa-driver. Also do you think a pros vs cons analysis would be good in the guide?

d) Will add colons as appropriate, if it makes it look better ;)

And I guess I'll be the best one to make the mods, so I'll handle the doc till it goes live. Thanks!

Comment 7 Jan Kundrát (RETIRED) gentoo-dev 2005-05-15 03:01:41 UTC
a) Isn't it enough to mark them as authors/editors/contributors/whatever?

c) Good idea

d) It's up to you, do whatever you consider appropriate ;-)
Comment 8 Shyam Mani (RETIRED) gentoo-dev 2005-05-15 05:58:52 UTC
a) Too long a list. Easier thanking them this way.
Comment 9 Jonathan Smith (RETIRED) gentoo-dev 2005-05-15 06:05:21 UTC
the other problem with listing them in the author's section is that they had very little to do with this new document. we would be giving them credit/blame (depending on your view ;-) for something that they had no part in...

i like fox2mike's solution
Comment 10 Arun Raghavan (RETIRED) gentoo-dev 2005-05-15 09:11:03 UTC
Good doc, fox2mike!

Might I suggest that we advise people going with the "in-kernel" option to add "media-sound/alsa-driver" to /etc/portage/package.provided ? This way, the user will not have to worry about alsa-driver getting emerge'd when some other package depends on it.

Also, a simple, unbiased Pros/Cons list at the beginning of the doc to help pick alsa-driver vs. in-kernel would help the impatient. Something like:

Replace:
-<p>
-The main difference between using <c>alsa-driver</c> and ALSA that comes with 
-the kernel is that <c>alsa-driver</c> is generally more up to date than the 
-version in the kernel. Although this does not make any huge difference as 
-such, people are encouraged to use <c>alsa-driver</c> since it is the latest.
-</p>

With:
+Advantages of In-Kernel:
+1) Don't have to remerge alsa-driver for each kernel compile 
+
+Advantages of alsa-driver:
+1) Don't have to manually compile your kernel
+2) Being a part of 'portage' it's the Better(tm) option
+3) Might be slightly more recent than the kernel version

Gosh, this *must* makes the user a bit biased towards alsa-driver. :)
Comment 11 Jan Kundrát (RETIRED) gentoo-dev 2005-05-15 09:21:05 UTC
Arun, iirc there are shouldn't be any packages depending at alsa-driver, we have something like virtual/alsa for it.

Ad advantages of alsa-driver:
1) Incorrect, genkernel provides correct ALSA environment (sometimes, should be fixed - bug 92711)
2) Irrelevant - sys-kernel/*-sources are part of Portage tree, too.
Comment 12 Shyam Mani (RETIRED) gentoo-dev 2005-05-15 09:28:24 UTC
Jan, I remember having to add alsa-driver to packages.provided...but that issue does seem to have been resolved now.

Arun, I think I'll go ahead with a pros/cons analysis...seems a nice way to present it to the end-user. I shall do that after we have a decent set of pros and cons.
Comment 13 Arun Raghavan (RETIRED) gentoo-dev 2005-05-15 09:43:21 UTC
What can I do with virtuals/alsa? And would it not be a good thing to document it in this guide?
Comment 14 Jan Kundrát (RETIRED) gentoo-dev 2005-05-15 09:51:41 UTC
re comment 13:
Nothing, Arun. You don't have to care about it, as all kernel ebuilds based on kernel-2.eclass provide virtual/alsa.
Comment 15 Jonathan Smith (RETIRED) gentoo-dev 2005-05-17 07:07:08 UTC
*** Bug 89521 has been marked as a duplicate of this bug. ***
Comment 16 Xavier Neys (RETIRED) gentoo-dev 2005-05-17 08:01:21 UTC
*** Bug 92912 has been marked as a duplicate of this bug. ***
Comment 17 Xavier Neys (RETIRED) gentoo-dev 2005-05-17 08:03:04 UTC
*** Bug 92909 has been marked as a duplicate of this bug. ***
Comment 18 Xavier Neys (RETIRED) gentoo-dev 2005-05-17 09:07:45 UTC
FWIW, I would have prefered to see 'kernel modules vs. alsa-driver modules',
recommend kernel modules, explain how to install each, configure modules which
is identical in both cases. Using modules in both cases makes it easier to try
alsa-driver

Comment 19 Shyam Mani (RETIRED) gentoo-dev 2005-05-17 09:24:47 UTC
(In reply to comment #18)
> FWIW, I would have prefered to see 'kernel modules vs. alsa-driver modules',
> recommend kernel modules, explain how to install each, configure modules which
> is identical in both cases. Using modules in both cases makes it easier to try
> alsa-driver

I see what you're getting at. Will change the kernel method to modules. Though
"trying" alsa-driver means disabling kernel support for ALSA altogether, not
even as a module. CONFIG_SND should not be set or alsa-driver will fail.

Comment 20 Xavier Neys (RETIRED) gentoo-dev 2005-05-17 10:08:05 UTC
*** Bug 92914 has been marked as a duplicate of this bug. ***
Comment 21 Shyam Mani (RETIRED) gentoo-dev 2005-05-18 04:16:36 UTC
Created attachment 59208 [details]
Updated new alsa-guide.xml

Righto, this is pretty much a final draft, unless there are any major
changes....

a) Pros and Cons for Kernel ALSA vs alsa-driver
b) Kernel ALSA recommended as default
c) Kernel ALSA now recommends modular kernel
d) genkernel users have now been asked to go ahead and configure ALSA, since
their current config builds ALSA support in the kernel. This may change, based
on the outcome of Bug 92711
Comment 22 Shyam Mani (RETIRED) gentoo-dev 2005-05-18 04:28:00 UTC
(In reply to comment #21)
> Created an attachment (id=59208) [edit]
> Updated new alsa-guide.xml

Could the person who commits the doc please bump version to 1.1 and date to 18
May. I forgot to do that in the attachment. TIA
Comment 23 Jonathan Smith (RETIRED) gentoo-dev 2005-05-20 17:36:14 UTC
fox2mike, i was looking through the bugs which had been marked LATER by the
docs-team, and came accross bug 48733, which might be useful to integrate into
yoru guide

besides, it will give you something to do while waiting for ro cvs access from
infra ;-)
Comment 24 Sven Vermeulen (RETIRED) gentoo-dev 2005-05-23 11:07:12 UTC
Shyam: a couple of comments.

1/ You use a link to "ALSA Utilities" in your guide but call the link "ALSA
Utils". Perhaps it would be easier if you stick with the name. Also, perhaps
using id="alsa-utils" and then <uri link="#alsa-utils"> instead of <uri
link="#doc_chap3_sect1"> might make that a bit better.

2/ Having a link <uri link="...">this</uri> isn't good writing. This is called
the "here-syndrome" (like "Click _here_").

It might also be interesting to view the CVS history of the ALSA Guide to see
what issues we had and the resolution. One mistake I frequently make when I
rewrite stuff is to undo changes (fixes) made to a guide.

Also, although I have been victim of this myself until recently, do we want to
stick with correct grammar/spelling or with common grammar/spelling? 

For instance: soundcard isn't good English, "sound card" is. But "soundcard" is
commonly used for a "sound card".
Comment 25 Shyam Mani (RETIRED) gentoo-dev 2005-05-23 21:58:39 UTC
(In reply to comment #24)
> 1/ You use a link to "ALSA Utilities" in your guide but call the link "ALSA
> Utils". Perhaps it would be easier if you stick with the name. Also, perhaps
> using id="alsa-utils" and then <uri link="#alsa-utils"> instead of <uri
> link="#doc_chap3_sect1"> might make that a bit better.

Agreed. Have changed the sect links.
 
> 2/ Having a link <uri link="...">this</uri> isn't good writing. This is called
> the "here-syndrome" (like "Click _here_").

Changed. The only place that had this now reads : If you don't have an idea of
what drivers your soundcard might need, please take a look at the "lspci"
section of this guide.
 
> It might also be interesting to view the CVS history of the ALSA Guide to see
> what issues we had and the resolution. One mistake I frequently make when I
> rewrite stuff is to undo changes (fixes) made to a guide.

I've been keeping the current alsa-guide for reference throughout...so I guess
that any fixes in place on the old guide have been carried over....

> Also, although I have been victim of this myself until recently, do we want to
> stick with correct grammar/spelling or with common grammar/spelling? 

I'd go for correct grammar/spelling. But that's your call :) Either is fine with me.
 
Also, could you please look at Bug 48733, which you've marked as LATER? If we
could push that into the doc as well, would be nice.
Comment 26 Arun Raghavan (RETIRED) gentoo-dev 2005-05-23 22:11:07 UTC
I'm a "Correct English" Nazi myself, but I think soundcard is easier to read
than sound card. Correct English rules should be slightly flexible when the
context is technical.
Comment 27 Shyam Mani (RETIRED) gentoo-dev 2005-05-24 00:19:15 UTC
http://xinetd.accosted.net/gentoo/alsa-guide-beta.html

Absolute latest version, changes made (wrt comment #24) haven't yet been
attached to this bug, but are online at the above URL.
Comment 28 Arun Raghavan (RETIRED) gentoo-dev 2005-05-24 05:22:01 UTC
1) alsa-driver pros: Bleeding edge, latest drivers.

You probably want to make this latest drivers (or latest and greatest :) ).
Bleeding edge implies that stuff might be broken/not fully tested.

2) This message ...
 "Important: genkernel users have their config built such a way that the ALSA
sub-system in the kernel is active. Therefore genkernel users can proceed to the
ALSA Utilities section directly. "

... might make more sense near the beginning of the "Options Galore" section. If
the user doesn't have to consider his options, let him/her know it at the earliest

OTOH, it might make sense to make this one more option (in addition to a
hand-compiled kernel and alsa-driver), since this implies a whole different path
for the user - one that involves *very* little work.

3) The options listed as:

"The first method of getting ALSA support running on Gentoo is to compile ALSA
support into your kernel and is the preferred/recommended one. The second method
is to use media-sound/alsa-driver provided by Gentoo. We shall take a peek into
both before finally deciding on one."

Would look better as a numbered list - options, when presented as a list, are
easier for the user to parse.

4) Don't know if this is a good idea, but in the alsamixer section, do we want
to tell the user to use Q/A and W/S keys to increase/decrease the volumes of the
left and right channels separately?

5) If the user is using a desktop like KDE/GNOME, do we want to mention that
he/she can use whatever mixer application they wish instead of alsamixer? This
also applies to the part about emerge'ing xmms/mpg123/madplay. The downside of
all this is that we're being very verbose about a straightforward process.
Comment 29 Shyam Mani (RETIRED) gentoo-dev 2005-06-02 12:06:20 UTC
(In reply to comment #28)
> 1) alsa-driver pros: Bleeding edge, latest drivers.
> You probably want to make this latest drivers (or latest and greatest :) ).
> Bleeding edge implies that stuff might be broken/not fully tested.

Done.
 
> 2) This message ...
> ... might make more sense near the beginning of the "Options Galore" section. 

Done.

> OTOH, it might make sense to make this one more option (in addition to a
> hand-compiled kernel and alsa-driver), since this implies a whole different path
> for the user - one that involves *very* little work.

Not right now. Genkernel -> SuX0r :) Let that settle down first.


> 3) The options listed as:
> Would look better as a numbered list - options, when presented as a list, are
> easier for the user to parse.

Done.

 
> 4) Don't know if this is a good idea, but in the alsamixer section, do we want
> to tell the user to use Q/A and W/S keys to increase/decrease the volumes of the
> left and right channels separately?

Doesn't actually matter.

> 5) If the user is using a desktop like KDE/GNOME, do we want to mention that
> he/she can use whatever mixer application they wish instead of alsamixer? This
> also applies to the part about emerge'ing xmms/mpg123/madplay. The downside of
> all this is that we're being very verbose about a straightforward process.

I ran alsaconf and the sound applet in Gnome was reloaded....I couldn't unmute
using the applet. I *had* to run alsamixer to fix that. Instead of confusing
everyone, I guess alsamixer = straightforward + easy method. The emerge
xmms/blahfoo is *only* there as an example. Use what you like. The doc isn't a
"have to follow", just a "how-to" :)

Other changes in the upcoming version :
1) Changes of <e>XYZ</e> to <e>xyz</e>
2) alsaconf corrections
3) Minor changes to code listing(s)
4) Typos + Grammatical errors corrected.
5) ogg and ogg examples added coz Xavier would have killed me otherwise ;)
Comment 30 Shyam Mani (RETIRED) gentoo-dev 2005-06-02 12:08:30 UTC
Created attachment 60469 [details]
New alsa-guide.xml, take 3

Changes according to Comment #29
Comment 31 Shyam Mani (RETIRED) gentoo-dev 2005-06-02 12:42:35 UTC
Created attachment 60473 [details]
New alsa-guide.xml, take 4

Tons of spelling + grammar corrections....

Thanks (or no thanks) to Sven and Xavier :)
Comment 32 Shyam Mani (RETIRED) gentoo-dev 2005-06-04 13:10:25 UTC
wrt bug #92711, plasmaroo says the genkernel config patch I submitted is in
portage but that release of genkernel is p.masked. If that goes live, this doc
will undergo a few minor changes...to the effect that running genkernel or not
doesn't make a difference...you would still be able to choose in-kernel or
alsa-driver.

No timeframe on when that release of Genkernel will go live, so I guess we won't
wait for that. Doc can be patched later in case genkernel is still masked at
time of commit.
Comment 33 Sven Vermeulen (RETIRED) gentoo-dev 2005-06-06 12:31:02 UTC
the images are available under:
- "/images/docs/alsa-mixermuted.png"
- "/images/docs/alsa-mixerunmuted.png"

Adjust your guide accordingly.
Comment 34 Shyam Mani (RETIRED) gentoo-dev 2005-06-06 13:25:01 UTC
Commited to CVS, thanks everyone for their suggestions!