View previous topic :: View next topic |
Author |
Message |
pholthau Guru
Joined: 27 Nov 2005 Posts: 361 Location: Bielefeld, Germany
|
Posted: Tue Dec 05, 2006 11:17 am Post subject: xine/alsa/two soundcards |
|
|
As my onboard sound is very bad (no digital out, only headphones)
i bought myself a terratec aureon 5.1 usb. i changed /etc/modules.d/alsa to:
Code: |
alias snd-card-0 snd-usb-audio
alias snd-card-1 snd-hda-intel
alias sound-slot-0 snd-usb-audio
alias sound-slot-1 snd-hda-intel
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
alias sound-service-1-0 snd-mixer-oss
alias sound-service-1-3 snd-pcm-oss
alias sound-service-1-12 snd-pcm-oss
alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss
options snd-usb-audio index=0
options snd-hda-intel position_fix=1 model=ref index=1
alias /dev/dsp1 snd-pcm-oss
options snd cards_limit=2
|
and restarted alsa (rebooted, too).
the soundcard works in audacious and kde (arts). but if i try to use
xine (with amarok) it tells me it is unable to initialize any audio drivers.
do i need to remerge anything? another hint?
Code: |
[ebuild R ] media-sound/alsa-driver-1.0.14_pre20061130 USE="oss -debug -doc" 0 kB
[ebuild R ] media-libs/xine-lib-1.1.3 USE="X aac aalib alsa arts dvd gnome gtk ipv6 mad nls opengl oss samba sdl truetype v4l vorbis win32codecs xv -a52 (-altivec) -debug -directfb -dts -dxr3 -esd -fbcon -flac -imagemagick -libcaca -mmap -mng -modplug -pulseaudio -speex -theora -vcd -vidix -xinerama -xvmc" 0 kB
[ebuild R ] media-sound/amarok-1.4.4-r2 USE="aac arts kde musicbrainz mysql opengl real -debug -ifp -ipod -mtp -njb -noamazon -postgres -visualization -xinerama" LINGUAS="de -af -ar -az -bg -br -ca -cs -cy -da -el -en_GB -es -et -fi -fr -ga -gl -he -hi -hu -is -it -ja -ka -km -ko -lt -ms -nb -nl -nn -pa -pl -pt -pt_BR -ro -ru -rw -sk -sl -sq -sr -sr@Latn -sv -ta -tg -th -tr -uk -uz -zh_CN -zh_TW" 0 kB
|
EDIT: I think arts only works because it uses oss to play sounds. when i tell arts to use alsa, it wont work. _________________ The message is Feierei, alder! The message is Gude Laune, alder! [Sven] |
|
Back to top |
|
|
terminal9 Apprentice
Joined: 12 Oct 2006 Posts: 157
|
Posted: Tue Dec 05, 2006 1:57 pm Post subject: |
|
|
Have you fiddled with Engine parameters in Amarok configuration, especially the output plugin?
You probably need to select Oss as output, rather than Autodetect (or Alsa). |
|
Back to top |
|
|
pholthau Guru
Joined: 27 Nov 2005 Posts: 361 Location: Bielefeld, Germany
|
Posted: Tue Dec 05, 2006 4:41 pm Post subject: |
|
|
it seems that i have to select oss. but why? _________________ The message is Feierei, alder! The message is Gude Laune, alder! [Sven] |
|
Back to top |
|
|
pholthau Guru
Joined: 27 Nov 2005 Posts: 361 Location: Bielefeld, Germany
|
Posted: Wed Dec 06, 2006 6:22 pm Post subject: |
|
|
finally i managed to use alsa, but i dont know which setting it was
anyone knows which device i can use to get ac3 pass through working?
my current settings are:
Code: |
pholthau@thrall ~/download/wc3 $ cat /etc/modules.d/alsa
alias snd-card-0 snd-hda-intel
alias snd-card-1 snd-usb-audio
alias sound-slot-0 snd-hda-intel
alias sound-slot-1 snd-usb-audio
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
alias sound-service-1-0 snd-mixer-oss
alias sound-service-1-1 snd-seq-oss #test
alias sound-service-1-3 snd-pcm-oss
alias sound-service-1-8 snd-seq-oss #test
alias sound-service-1-12 snd-pcm-oss
alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss
options snd-hda-intel position_fix=1 model=ref index=0
options snd-usb-audio index=1
alias /dev/dsp1 snd-pcm-oss
options snd cards_limit=2
|
Code: |
pholthau@thrall ~/download/wc3 $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: STAC92xx Digital [STAC92xx Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Audio [USB Audio], device 0: USB Audio [USB Audio]
Subdevices: 0/1
Subdevice #0: subdevice #0
|
Code: |
pholthau@thrall ~/download/wc3 $ aplay -L
PCM list:
hw {
@args.0 CARD
@args.1 DEV
@args.2 SUBDEV
@args.CARD {
type string
default {
@func getenv
vars {
0 ALSA_PCM_CARD
1 ALSA_CARD
}
default {
@func refer
name 'defaults.pcm.card'
}
}
}
@args.DEV {
type integer
default {
@func igetenv
vars {
0 ALSA_PCM_DEVICE
}
default {
@func refer
name 'defaults.pcm.device'
}
}
}
@args.SUBDEV {
type integer
default {
@func refer
name 'defaults.pcm.subdevice'
}
}
type hw
card $CARD
device $DEV
subdevice $SUBDEV
}
plughw {
@args.0 CARD
@args.1 DEV
@args.2 SUBDEV
@args.CARD {
type string
default {
@func getenv
vars {
0 ALSA_PCM_CARD
1 ALSA_CARD
}
default {
@func refer
name 'defaults.pcm.card'
}
}
}
@args.DEV {
type integer
default {
@func igetenv
vars {
0 ALSA_PCM_DEVICE
}
default {
@func refer
name 'defaults.pcm.device'
}
}
}
@args.SUBDEV {
type integer
default {
@func refer
name 'defaults.pcm.subdevice'
}
}
type plug
slave.pcm {
type hw
card $CARD
device $DEV
subdevice $SUBDEV
}
}
plug {
@args.0 SLAVE
@args.SLAVE {
type string
}
type plug
slave.pcm $SLAVE
}
shm {
@args.0 SOCKET
@args.1 PCM
@args.SOCKET {
type string
}
@args.PCM {
type string
}
type shm
server $SOCKET
pcm $PCM
}
tee {
@args.0 SLAVE
@args.1 FILE
@args.2 FORMAT
@args.SLAVE {
type string
}
@args.FILE {
type string
}
@args.FORMAT {
type string
default raw
}
type file
slave.pcm $SLAVE
file $FILE
format $FORMAT
}
file {
@args.0 FILE
@args.1 FORMAT
@args.FILE {
type string
}
@args.FORMAT {
type string
default raw
}
type file
slave.pcm null
file $FILE
format $FORMAT
}
null {
type null
}
cards 'cards.pcm'
front 'cards.pcm.front'
rear 'cards.pcm.rear'
center_lfe 'cards.pcm.center_lfe'
side 'cards.pcm.side'
surround40 'cards.pcm.surround40'
surround41 'cards.pcm.surround41'
surround50 'cards.pcm.surround50'
surround51 'cards.pcm.surround51'
surround71 'cards.pcm.surround71'
iec958 'cards.pcm.iec958'
spdif 'cards.pcm.iec958'
modem 'cards.pcm.modem'
phoneline 'cards.pcm.phoneline'
default 'cards.pcm.default'
dmix 'cards.pcm.dmix'
dsnoop 'cards.pcm.dsnoop'
|
_________________ The message is Feierei, alder! The message is Gude Laune, alder! [Sven] |
|
Back to top |
|
|
pholthau Guru
Joined: 27 Nov 2005 Posts: 361 Location: Bielefeld, Germany
|
Posted: Mon Dec 18, 2006 5:50 pm Post subject: |
|
|
any ideas? alsamixer only shows me the "master" channel on the usb sound card, and this even doesn't control anything? most important is spdif though. _________________ The message is Feierei, alder! The message is Gude Laune, alder! [Sven] |
|
Back to top |
|
|
|