Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 563760 (fails_with_ALSA) - [TRACKER] Command-line cd players without alsa support are unusable on recent sytems
Summary: [TRACKER] Command-line cd players without alsa support are unusable on recent...
Status: CONFIRMED
Alias: fails_with_ALSA
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords: Tracker
Depends on: 762349 762352 762355 762358 762346 762361
Blocks: 386275
  Show dependency tree
 
Reported: 2015-10-22 08:26 UTC by Teika kazura
Modified: 2023-01-14 17:55 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Teika kazura 2015-10-22 08:26:48 UTC
Summary: There're several command-line cd player packages which don't use alsa/oss, but they may be obsolete on recent hardwares. They don't produce any sound on 2 PCs I tried. At least, ewarn is necessary.

Platform: amd64
Packages I tested:
media-sound/cdcd-0.6.6-r2
media-sound/cdplay-1.0
media-sound/cdtool-2.1.8
media-sound/dcd-0.95
media-sound/mcdp-0.4b
media-sound/takcd-0.10

Explanation:
Theses packages make use of ioctl, not only to play, stop, but also for volume control etc, and that's all; they don't use alsa, nor oss. (OSS is an old interface, replaced by alsa.) "cdcd" relies on media-libs/libcdaudio rather than direct ioctl, but it doesn't matter much.

Some of these softwares _do_ report ioctl errors if any, but all run without any problem for me, _except that_ the speaker remains silent. (Of course I can play CDs with mplayer, banshee, etc.)

I believe my ALSA mixer setting is ok; no channel is mute.

According to a forum post by NeddySeagoon, this kind of code is indeed obsolete; in old days cdrom players were connected to sound card, and provided analogue playback:
https://forums.gentoo.org/viewtopic-p-7779714.html?sid=007ddb5790df9fcad4d57c2ce6c9b228#7779714

Bug #386275 complains too on media-sound/cdcd. (I rather chose to open a new bug report, because the problem is not specific to one specific package. Sorry if you think it's a dup.)

Debian already deleted mcdp, which was "completely unusable":
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=709909
(But cdcd is still in sid, and cdtool in the stable.)

Some netBSD (sorry) bug reports look similar:
http://gnats.netbsd.org/45678
http://mail-index.netbsd.org/netbsd-bugs/2011/11/25/msg025040.html

Proposal:
These packages can be deemed "obsolete" in some sense. At least that fact should be ewarn-ed. [1] OTOH if there exist PCs where these packages work, then they can remain in the portage tree. (I asked at Gentoo forum to test these packages, but none responded.) Anyway I will respect developers decision.

media-sound/cdtool can be handled separately, since it has some cddb related tools, aside from commands to play CDs.

Thanks beforehand, Gentoo devs.
------
[1] In fact, I think we need a better function of ebuild (1), "eask" or something, such that prints a message and asks the user's agreement when "emerge --ask" is used; for "emerge --pretend", it prints the message, too; otherwise, it prints the message at an early stage, and reprints it at pkg_postinst or elsewhere.

When important changes or complex configuration changes accompany after emerge, then that should be informed to the users by "eask", too. (E.g. USE flag definiton changes. Also something like udev change of the network interface name about a year ago. Actually it was IIRC announced by eselct-news, because many rely on udev. I mean that kind of changes which is specific to some package, should be foretold by "eask".) Obviously you want to schedule such emerge for the time when you can spare time, don't you? :)

If you want, I'll open a new bugzilla entry to ask for this function.


Reproducible: Always
Comment 1 Teika kazura 2017-03-03 11:48:31 UTC
I tried them on another PC, and they don't work.
Most modern hardwares do not support these packages, I think.
Comment 2 Teika kazura 2020-12-29 23:37:31 UTC
@Jonas Stein: Thanks a lot for your diligence.
Comment 3 jonys 2023-01-14 17:55:45 UTC
Please, don't remove packages just because you don't have the required hardware.

These command-line players require digital-to-analog conversion in the optical disk drive and a cable connection to the sound card, which passes the signal to the line-out. With them, audio CDs can be played as in a hardware CD player, with no involvement of the OS. I regularly use media-sound/cdtool for this, it works just fine.

Today's computers rarely have optical drives at all, and newer SATA ODDs in general tend not to have the necessary DAC circuitry, but hardware from 2010 is still perfectly fine and will be for years to come.