View previous topic :: View next topic |
Author |
Message |
crimsonkepi n00b
Joined: 10 Jun 2004 Posts: 10
|
Posted: Sat Jun 19, 2004 12:12 am Post subject: alsa USE FLAG problem |
|
|
I add USE="alsa" to /etc/make.conf but when it enter emerge info
to see what is being used, alsa is not added to the USE FLAGS.
When I looked at the /etc/make.profile/user.defaults file, there is a comment that alsa is not recommended.
How do I permanently add alsa to the USE FLAGS? Is the user.defaults file causing my problem because it is a higher priority than make.conf? |
|
Back to top |
|
|
agent_jdh Veteran
Joined: 08 Aug 2002 Posts: 1783 Location: Scotland
|
Posted: Sat Jun 19, 2004 12:20 am Post subject: |
|
|
No, /etc/make.conf overrides the other files.
All of your USE stuff in the make.conf file should be in one line btw, do you have more than one line of USE variables? _________________ Jingle Jangle Jewellery |
|
Back to top |
|
|
crimsonkepi n00b
Joined: 10 Jun 2004 Posts: 10
|
Posted: Sat Jun 19, 2004 12:35 am Post subject: |
|
|
Just one USE line: USE="alsa" in /etc/make.conf
When I enter emerge info alsa doesn't show up.
If I change /etc/make.conf to USE="-X alsa" and enter emerge info, the X USE FLAG goes away as expected but the alsa FLAG is not set. |
|
Back to top |
|
|
agent_jdh Veteran
Joined: 08 Aug 2002 Posts: 1783 Location: Scotland
|
Posted: Sat Jun 19, 2004 1:33 am Post subject: |
|
|
Most strange, could you c&p the output of emerge info _________________ Jingle Jangle Jewellery |
|
Back to top |
|
|
crimsonkepi n00b
Joined: 10 Jun 2004 Posts: 10
|
Posted: Sat Jun 19, 2004 9:31 am Post subject: |
|
|
Here is the /etc/make.conf
CFLAGS="-mcpu=ultrasparc -O2 -pipe"
CHOST="sparc-unknown-linux-gnu"
CXXFLAGS="${CFLAGS}"
ACCEPT_KEYWORDS="~sparc"
MAKEOPTS="-j3"
ALSA_CARDS="snd-cs4231"
USE="alsa"
GENTOO_MIRRORS="http://128.213.5.34/gentoo/ http://mirror.datapipe.net/gentoo"
Here is the emerge info results
Gentoo Base System version 1.4.9
Portage 2.0.50-r8 (default-sparc64-2004.0, gcc-3.3.3, glibc-2.3.2-r9, 2.4.26-sparc-r1)
=================================================================
System uname: 2.4.26-sparc-r1 sparc64 sun4u
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="sparc ~sparc"
AUTOCLEAN="yes"
CFLAGS="-mcpu=ultrasparc -O2 -pipe"
CHOST="sparc-unknown-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=ultrasparc -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache sandbox"
GENTOO_MIRRORS="http://128.213.5.34/gentoo/ http://mirror.datapipe.net/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X arts avi berkdb crypt cups encode esd fbcon foomaticdb gdbm gif gnome gtk imlib jpeg kde libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt readline sdl slang sparc spell ssl tcpd truetype xml2 xmms xv zlib" |
|
Back to top |
|
|
agent_jdh Veteran
Joined: 08 Aug 2002 Posts: 1783 Location: Scotland
|
Posted: Sat Jun 19, 2004 1:24 pm Post subject: |
|
|
I don't see any obvious problems there - maybe it's a sparc thing?
If no one else steps in here to help, or you can't work out what's happening yourself, your next step is to report it on bugs.gentoo.org _________________ Jingle Jangle Jewellery |
|
Back to top |
|
|
GenTimJS Guru
Joined: 03 May 2003 Posts: 406 Location: NH, USA
|
Posted: Sun Jun 20, 2004 1:49 am Post subject: |
|
|
If my memory serves, which it may not, alsa is kindof tricky on sparc.
What kernel are you running?
Again, IIRC, you want to use OSS on 2.4 kernels.
with 2.6 sound uses alsa, and is currently busticated (send patches )
I'm not an expert with the inner workings of portage, but it may be smart and know that alsa isnt for sparc/~sparc and leaving it out intentionally. _________________ -Tim Smith |
|
Back to top |
|
|
agent_jdh Veteran
Joined: 08 Aug 2002 Posts: 1783 Location: Scotland
|
Posted: Sun Jun 20, 2004 12:17 pm Post subject: |
|
|
Right, the above post gave me a hint so I checked out
/usr/portage/profiles/default-sparc64-2004.0/use.mask
Which according to your emerge info is the profile you're using.
That file contains a list of use flags and arch flags that don't work with that particular profile/architecture
And alsa is one of the use flags that sparc(64) does not allow.
So it does look like you have to use the OSS drivers. _________________ Jingle Jangle Jewellery |
|
Back to top |
|
|
crimsonkepi n00b
Joined: 10 Jun 2004 Posts: 10
|
Posted: Sun Jun 20, 2004 6:04 pm Post subject: |
|
|
Thanks. I appreciate you digging into the use.mask file to find the answer.
I've tried several distros on a x86 box over the last couple of years but I'm quickly learning to love Gentoo. The Gentoo community is outstanding plus you really learn how the OS works. |
|
Back to top |
|
|
ciaranm Retired Dev
Joined: 19 Jul 2003 Posts: 1719 Location: In Hiding
|
Posted: Mon Jun 21, 2004 2:26 am Post subject: |
|
|
What OSS drivers? |
|
Back to top |
|
|
agent_jdh Veteran
Joined: 08 Aug 2002 Posts: 1783 Location: Scotland
|
Posted: Mon Jun 21, 2004 4:27 pm Post subject: |
|
|
ciaranm wrote: | What OSS drivers? |
Don't any of the Crystal Sound OSS drivers work with Sparcs? I thought they used the cs4231a audio codec (well, the ultra models at least).
Although given I've not used a sparc since I was at uni, have never used a crystal audio driver and not used oss in years I'm prepared to be massively wrong here. _________________ Jingle Jangle Jewellery |
|
Back to top |
|
|
ciaranm Retired Dev
Joined: 19 Jul 2003 Posts: 1719 Location: In Hiding
|
Posted: Mon Jun 21, 2004 4:49 pm Post subject: |
|
|
No OSS. ALSA (which doesn't quiiiiiite work yet, but is almost there in 2.6.7) or the native driver (which is in 2.4.x only). |
|
Back to top |
|
|
agent_jdh Veteran
Joined: 08 Aug 2002 Posts: 1783 Location: Scotland
|
Posted: Mon Jun 21, 2004 4:59 pm Post subject: |
|
|
ciaranm wrote: | No OSS. ALSA (which doesn't quiiiiiite work yet, but is almost there in 2.6.7) or the native driver (which is in 2.4.x only). |
Doesn't the cs4281 driver work though?
Code: | #
# Sound
#
CONFIG_SOUND=m
#
# Advanced Linux Sound Architecture
#
# CONFIG_SND is not set
#
# Open Sound System
#
CONFIG_SOUND_PRIME=m
# CONFIG_SOUND_BT878 is not set
# CONFIG_SOUND_CMPCI is not set
# CONFIG_SOUND_EMU10K1 is not set
# CONFIG_SOUND_FUSION is not set
CONFIG_SOUND_CS4281=m
# CONFIG_SOUND_ES1370 is not set
# CONFIG_SOUND_ES1371 is not set
# CONFIG_SOUND_ESSSOLO1 is not set
# CONFIG_SOUND_MAESTRO is not set
# CONFIG_SOUND_MAESTRO3 is not set
# CONFIG_SOUND_ICH is not set
# CONFIG_SOUND_SONICVIBES is not set
# CONFIG_SOUND_TRIDENT is not set
# CONFIG_SOUND_MSNDCLAS is not set
# CONFIG_SOUND_MSNDPIN is not set
# CONFIG_SOUND_VIA82CXXX is not set
# CONFIG_SOUND_OSS is not set
# CONFIG_SOUND_ALI5455 is not set
# CONFIG_SOUND_FORTE is not set
# CONFIG_SOUND_RME96XX is not set
# CONFIG_SOUND_AD1980 is not set |
From the kernel config found here
http://dev.gentoo.org/~ciaranm/configs/kernel/2.6.x/kernel-2.6.3-ultra5.config.gz _________________ Jingle Jangle Jewellery |
|
Back to top |
|
|
|