Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xine problems [SOLVED]
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Itazuki
n00b
n00b


Joined: 01 Feb 2005
Posts: 55
Location: Ottawa

PostPosted: Wed May 11, 2005 6:04 am    Post subject: xine problems [SOLVED] Reply with quote

hi. i recently moved to GCC 3.4 and did emerge -e world. now, when i try and play a dvd in xine it'll work in the menus and stuff (which are in 2.0) but once i select a scene (which is in 5.1) i get error:

"The audio device is unavailable. Please verify if another program already use it."

Which makes no sense because I have my system set up so that it can play multiple sounds simultaneously. For example, i can be playing music in Amarok, and hear sound from an avi I'm playing in mplayer. I've tried deleting my config files, reemerging, reemerging with old compiler, all to no avail. Any input on this problem would be greatly appreciated.


Last edited by Itazuki on Mon Apr 24, 2006 9:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
mbjr
Guru
Guru


Joined: 17 Jan 2004
Posts: 528
Location: Budapest/Hungary

PostPosted: Wed May 11, 2005 8:32 am    Post subject: Reply with quote

can you check what audio daemon xine is looking for? I assume xine is seeking for arts by default, however, this might depend on your actual system settings.

Try to use mplayer's -ao option to test that your audio is working fine on oss/alsa/esound/arts/etc, so you can probably locate what's missing :-)

HTH,
_________________
MBJr.
buy me a beer
Back to top
View user's profile Send private message
Itazuki
n00b
n00b


Joined: 01 Feb 2005
Posts: 55
Location: Ottawa

PostPosted: Wed May 11, 2005 4:41 pm    Post subject: Reply with quote

i did mplayer -ao and everything but oss and esound work. when i select arts as the output on xine i won't get an error message but sound output will only be 2.0 and there is no field to select speaker output. when i select ALSA i can select 5.1 speaker configuration but i get the error when i select a scene.
Back to top
View user's profile Send private message
Itazuki
n00b
n00b


Joined: 01 Feb 2005
Posts: 55
Location: Ottawa

PostPosted: Wed May 11, 2005 5:29 pm    Post subject: Reply with quote

i removed ~/.asoundrc to disable dmix, and i disabled the sound system in control panel and i got 3.1 sound, i messed around with it some more and now if i try disabling arts the sound gets really messed up, almost like it's in slow motion or something.
Back to top
View user's profile Send private message
mbjr
Guru
Guru


Joined: 17 Jan 2004
Posts: 528
Location: Budapest/Hungary

PostPosted: Thu May 12, 2005 10:11 am    Post subject: Reply with quote

So you sad you had alsa working, but oss and esound didn't really work?

esounds default thing I think is oss, however I used to monky around for a while and could set that to use alsa, however you need to get your oss working (if you want so) anyway.

Oss requires couple of things to work:

1) kernel support
2) alsa-oss
3) /dev/adsp0 (this can be a symlink to /dev/sound/adsp)
4) ability to register the sound device (this usually gets screwed up when you have any other sound devices (can be usb or bluetooth audio as well) already using /dev/sound/adsp, which will disable you to use your oss thing with alsa.

also you can play with jack, arts and the other, it is possible to get all of them working like a charm, however, you'll need to monkey around for a while :-/

I hope this helps, this is how it works on my end:

kernel wrote:
mbjr ~ # cat /usr/src/linux/.config |grep -i snd | grep -v ^#
CONFIG_SND=m
CONFIG_SND_TIMER=m
CONFIG_SND_PCM=m
CONFIG_SND_HWDEP=m
CONFIG_SND_RAWMIDI=m
CONFIG_SND_SEQUENCER=m
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_RTCTIMER=m
CONFIG_SND_MPU401_UART=m
CONFIG_SND_OPL3_LIB=m
CONFIG_SND_MPU401=m
CONFIG_SND_AC97_CODEC=m
CONFIG_SND_CMIPCI=m
CONFIG_SND_INTEL8X0=m

loaded modules wrote:
mbjr ~ # lsmod |grep snd
snd_pcm_oss 50208 0
snd_mixer_oss 19072 1 snd_pcm_oss
snd_seq_oss 34048 0
snd_seq_midi_event 7168 1 snd_seq_oss
snd_seq 52624 5 snd_seq_oss,snd_seq_midi_event
snd_cmipci 30496 0
snd_opl3_lib 10240 1 snd_cmipci
snd_hwdep 8608 1 snd_opl3_lib
snd_mpu401_uart 7552 1 snd_cmipci
snd_rawmidi 21536 1 snd_mpu401_uart
snd_seq_device 7948 4 snd_seq_oss,snd_seq,snd_opl3_lib,snd_rawmidi
snd_intel8x0 30144 1
snd_ac97_codec 76536 1 snd_intel8x0
snd_pcm 85124 4 snd_pcm_oss,snd_cmipci,snd_intel8x0,snd_ac97_codec
snd_timer 22788 3 snd_seq,snd_opl3_lib,snd_pcm
snd 48100 17 snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq,snd_cmipci,snd_opl3_lib,snd_hwdep,snd_mpu401_uart,snd_rawmidi,snd_seq_device,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
snd_page_alloc 8708 2 snd_intel8x0,snd_pcm

devices wrote:
mbjr ~ # ls -la /dev/*dsp* /dev/sound/*
lrwxrwxrwx 1 root root 10 May 12 11:56 /dev/adsp -> sound/adsp
lrwxrwxrwx 1 root root 15 May 12 11:56 /dev/adsp0 -> /dev/sound/adsp
lrwxrwxrwx 1 root root 11 May 12 11:56 /dev/adsp1 -> sound/adsp1
lrwxrwxrwx 1 root root 9 May 12 11:56 /dev/dsp -> sound/dsp
lrwxrwxrwx 1 root root 10 May 12 11:56 /dev/dsp1 -> sound/dsp1
crw-rw---- 1 root audio 14, 35 May 5 23:13 /dev/dsp2
crw-rw---- 1 root audio 14, 51 May 5 23:13 /dev/dsp3
crw------- 1 root audio 14, 5 Apr 27 03:40 /dev/dspW
crw-rw---- 1 root audio 14, 3 May 5 23:13 /dev/dsp_0
crw-rw---- 1 root audio 14, 12 May 12 11:56 /dev/sound/adsp
crw-rw---- 1 root audio 14, 28 May 12 11:56 /dev/sound/adsp1
crw-rw---- 1 root audio 14, 4 May 12 11:56 /dev/sound/audio
crw-rw---- 1 root audio 14, 20 May 12 11:56 /dev/sound/audio1
crw-rw---- 1 root audio 14, 3 May 12 11:56 /dev/sound/dsp
crw-rw---- 1 root audio 14, 19 May 12 11:56 /dev/sound/dsp1
crw-rw---- 1 root audio 14, 35 Apr 27 03:40 /dev/sound/dsp2
crw-rw---- 1 root audio 14, 0 May 12 11:56 /dev/sound/mixer
crw-rw---- 1 root audio 14, 16 May 12 11:56 /dev/sound/mixer1
crw-rw---- 1 root audio 14, 32 Apr 27 03:40 /dev/sound/mixer2
crw-rw---- 1 root audio 14, 1 May 12 11:56 /dev/sound/sequencer
crw-rw---- 1 root audio 14, 8 May 12 11:56 /dev/sound/sequencer2

alsaconfig wrote:
mbjr ~ # cat /etc/conf.d/alsasound | grep -v ^#
ENABLE_OSS_EMUL="yes"
RESTORE_ON_START="yes"
SAVE_ON_STOP="yes"
mbjr ~ # cat /etc/asound.conf | grep -v ^#
pcm.dsp1 { type plug slave.pcm "hw:0,0" }


don't get scared, I've 2 sound cards, that's why I have the tons of modules loaded :D :D :D

HTH,
_________________
MBJr.
buy me a beer
Back to top
View user's profile Send private message
Itazuki
n00b
n00b


Joined: 01 Feb 2005
Posts: 55
Location: Ottawa

PostPosted: Fri May 13, 2005 4:49 am    Post subject: Reply with quote

i emerged alsa-oss but that didn't help either, i unmerged arts, and put -arts in my make.conf, reemerged everything affected by that, basically instead of being 5.1 like i specified in the options, the output is 3.1, the front speakers and sub work, the rear speakers aren't giving any output
Back to top
View user's profile Send private message
Itazuki
n00b
n00b


Joined: 01 Feb 2005
Posts: 55
Location: Ottawa

PostPosted: Sat May 14, 2005 7:33 pm    Post subject: Reply with quote

tried emerging older, non-masked version of xine and xine gui but problem remains, in mplayer i'm only getting 3.1 instead of 5.1 as well so it is most likely some kind of ALSA problem, i'll try messing around with it and report the results later
Back to top
View user's profile Send private message
Itazuki
n00b
n00b


Joined: 01 Feb 2005
Posts: 55
Location: Ottawa

PostPosted: Sat May 14, 2005 8:14 pm    Post subject: Reply with quote

i unmerged all alsa packages and re-emerged but problem remains, i also unmerged and re-emerged kmix but problem still remains
Back to top
View user's profile Send private message
Itazuki
n00b
n00b


Joined: 01 Feb 2005
Posts: 55
Location: Ottawa

PostPosted: Thu May 19, 2005 6:56 pm    Post subject: Reply with quote

i also tried emerging the newest kernel 2.6.12-mm but that didn't help. i removed all alsa support from that kernel and emerged alsa drivers, that didn't help either.
Back to top
View user's profile Send private message
Itazuki
n00b
n00b


Joined: 01 Feb 2005
Posts: 55
Location: Ottawa

PostPosted: Tue May 24, 2005 1:15 am    Post subject: Reply with quote

here's the end of output of xine --verbose2

udio_alsa_out: snd_pcm_open() of plug:surround51:0 failed: Device or resource busy
audio_alsa_out: >>> check if another program already uses PCM <<<
audio_out: open failed!
audio_alsa_out: snd_pcm_open() of plug:surround51:0 failed: Device or resource busy
audio_alsa_out: >>> check if another program already uses PCM <<<
audio_out: open failed!
ao_flush (loop running: 1)
osd: can't find out current locale character set
gui_xine_open_and_play():
mrl: 'file:/usr/share/xine/skins/xine-ui_logo.mpv',
sub 'NONE',
start_pos 0, start_time 0, av_offset 0, spu_offset 0.
input_cache: read calls: 51, main input read calls: 51
input_cache: seek_calls: 0, main input seek calls: 0
xine: found input plugin : file input plugin
load_plugins: probing demux 'anx'
load_plugins: probing demux 'asf'
load_plugins: probing demux 'aud'
load_plugins: probing demux 'aiff'
load_plugins: probing demux 'cdda'
load_plugins: probing demux 'flac'
load_plugins: probing demux 'nsf'
load_plugins: probing demux 'realaudio'
load_plugins: probing demux 'snd'
load_plugins: probing demux 'voc'
load_plugins: probing demux 'vox'
load_plugins: probing demux 'wav'
load_plugins: probing demux 'avi'
load_plugins: probing demux 'fli'
load_plugins: probing demux 'flashvideo'
load_plugins: probing demux 'wve'
load_plugins: probing demux 'idcin'
load_plugins: probing demux 'ipmovie'
load_plugins: probing demux 'vqa'
load_plugins: probing demux 'wc3movie'
load_plugins: probing demux 'roq'
load_plugins: probing demux 'str'
load_plugins: probing demux 'film'
load_plugins: probing demux 'smjpeg'
load_plugins: probing demux 'fourxm'
load_plugins: probing demux 'vmd'
load_plugins: probing demux 'iff'
load_plugins: probing demux 'image'
load_plugins: probing demux 'mng'
load_plugins: probing demux 'mpeg-ts'
load_plugins: probing demux 'nsv'
load_plugins: probing demux 'ogg'
load_plugins: probing demux 'pva'
load_plugins: probing demux 'quicktime'
load_plugins: probing demux 'real'
load_plugins: probing demux 'slave'
load_plugins: probing demux 'matroska'
ebml: invalid EBML ID size (0x0) at position 1
ebml: invalid master element
load_plugins: probing demux 'mpeg_pes'
load_plugins: probing demux 'mpeg_block'
load_plugins: probing demux 'yuv4mpeg2'
load_plugins: probing demux 'mpeg'
load_plugins: probing demux 'rawdv'
load_plugins: probing demux 'aac'
load_plugins: probing demux 'ac3'
load_plugins: probing demux 'mp3'
load_plugins: probing demux 'mpc'
load_plugins: probing demux 'sputext'
load_plugins: probing demux 'flac'
load_plugins: probing demux 'elem'
xine: found demuxer plugin: Elementary MPEG stream demux plugin
video discontinuity #4, type is 0, disc_off 0
waiting for audio discontinuity #4
audio discontinuity #4, type is 0, disc_off 0
waiting for in_discontinuity update #4
vpts adjusted with prebuffer to 457562
load_plugins: plugin mpeg2 will be used for video streamtype 00.
av_offset=0 pts
spu_offset=0 pts
xine_play
play_internal ...done

---------------------- (ERROR) ----------------------
The audio device is unavailable. Please verify if another program already use it.

['Audio device unavailable' '']
------------------ (END OF ERROR) -------------------


---------------------- (ERROR) ----------------------
The audio device is unavailable. Please verify if another program already use it.

['Audio device unavailable' '']
------------------ (END OF ERROR) -------------------
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3205

PostPosted: Tue May 24, 2005 2:55 am    Post subject: A possible solution Reply with quote

I too had this problem, and I think this problem is present in only the most recent versions of xine. FYI, I faced this same problem even when I had used the binary Nvidia drivers, which provide hardware mixing by default (I have nforce2 Soundstorm chip). So, this is definitely a bug in xine.

Now, for a workaround. I have the following device defined in my ~/.asoundrc:
Code:
pcm.nforce-hw {
type hw
card 0
}

pcm.!default {
type plug
slave.pcm "nforce"
}

pcm.nforce {
type dmix
ipc_key 1234
slave {
pcm "hw:0,0"
period_time 0
period_size 1024

#buffer_size 8192
buffer_size 32768
#buffer_size 21844
#buffer_size 4096
rate 48000
#rate 44100
}
}
ctl.nforce-hw {
type hw
card 0
}
Here "nforce" is the device I have defined.

In the configuration for xine, Settings -> Setup -> Audio, I changed the following two values from "default" to "nforce", so now they look like:
Code:
# device used for mono output
# string, default: default
audio.device.alsa_default_device:nforce

# device used for stereo output
# string, default: plug:front:default
audio.device.alsa_front_device:nforce
Strangely, this fixed my problem.

However, I have noticed that xine sometimes does not give 5.1 output even though I have set my output to Surround 5.1 A workaround for that is to use your dvd menu and choose 5.1 output from that menu (if it is present).

My other info: Alsa 1.0.8, xine-lib: 1.0.1-r1

Hope that helps.
Back to top
View user's profile Send private message
Itazuki
n00b
n00b


Joined: 01 Feb 2005
Posts: 55
Location: Ottawa

PostPosted: Fri May 27, 2005 1:31 am    Post subject: Reply with quote

thanks for the input ppurka. i tried what you outlined but unfortunately the problem persists. i am also having problems with mplayer not playing 5.1 dvds. it can play stereo .avi's and mpegs and stuff just fine but when i try to play a dvd with "mplayer -channels 6 <dvdname>" i get sound in front 3 speakers but the sound doesn't seem to be mapped properly, ie. i can't hear anyone speak in the film, speech usually comes out of the center speaker but instead i'm hearing what appears to be output that should've been destined for the rear speakers coming out of the center speaker...here's the output the console gives:



--{[0]itazuki@Itazuki:pts/1}----{~}--
21:47:%mplayer -channels 6 /mnt/dvd/VIDEO_TS/VTS_01_2.VOB 05/26/05
MPlayer 1.0pre6-3.3.5-20050130 (C) 2000-2004 MPlayer Team
CPU: Intel Pentium 4/Xeon/Celeron Foster (Family: 8, Stepping: 9)
Detected cache-line size is 64 bytes
MMX2 supported but disabled
SSE2 supported but disabled
CPUflags: MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX SSE


Warning unknown option cache_min at line 144
Warning unknown option cache_prefill at line 147

77 audio & 189 video codecs
Opening joystick device /dev/input/js0
Playing /mnt/dvd/VIDEO_TS/VTS_01_2.VOB.
Cache fill: 17.87% (1499136 bytes) MPEG-PS file format detected.
VIDEO: MPEG2 720x480 (aspect 2) 29.970 fps 7500.0 kbps (937.5 kbyte/s)
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
AC3: 5.1 (3f+2r+lfe) 48000 Hz 448.0 kbit/s
Using MMX optimized resampler
AUDIO: 48000 Hz, 6 ch, 16 bit (0x10), ratio: 56000->576000 (448.0 kbit)
Selected audio codec: [a52] afm:liba52 (AC3-liba52)
==========================================================================
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 480 (preferred csp: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
Checking audio filter chain for 48000Hz/6ch/16bit -> 48000Hz/6ch/16bit...
AF_pre: af format: 2 bps, 6 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 6ch Signed 16-bit (Little-Endian)
alsa-init: soundcard set to surround51
alsa: 48000 Hz/6 channels/12 bpf/61440 bytes buffer/Signed 16 bit Little Endian
AO: [alsa] 48000Hz 6ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 48000Hz/6ch/16bit -> 48000Hz/6ch/16bit...
Starting playback...
VDec: vo config request - 720 x 480 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xv] 720x480 => 720x540 Planar YV12
alsa-space: xrun of at least 6.210 msecs. resetting stream??,?% 0 0 0%
A:2034.8 V:2035.2 A-V: -0.408 ct: -0.023 15/ 12 ??% ??% ??,?% 0 0 0%
demux_mpg: 24fps progressive NTSC content detected, switching framerate.
A:2045.3 V:2045.3 A-V: -0.010 ct: -0.415 258/255 9% 0% 1.5% 0 0 26%

MPlayer interrupted by signal 15 in module: sleep_timer
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3205

PostPosted: Fri May 27, 2005 5:13 pm    Post subject: Reply with quote

Well, you can always test your speaker configuration with
Code:
speaker-test -channels 6 -Dsurround51
. Do a man speaker-test for more options. This might be just a misconfiguration of your input jacks. I didn't ask before, but I assume you are using the analog 5.1 outputs?
Back to top
View user's profile Send private message
Itazuki
n00b
n00b


Joined: 01 Feb 2005
Posts: 55
Location: Ottawa

PostPosted: Fri May 27, 2005 10:04 pm    Post subject: Reply with quote

thanks for the reply ppurka. i tried doing "speaker-test -channels 6 -Dsurround51" like you said and received this error:

--{[0]itazuki@Itazuki:pts/1}----{~}--
18:09:%speaker-test -channels 6 -Dsurround51 05/27/05

speaker-test 1.0.8

Playback device is surround51
Stream parameters are 48000Hz, S16_LE, 1 channels
Sine wave rate is 440.0000Hz
Channels count (1) not available for playbacks: Invalid argument
Setting of hwparams failed: Invalid argument

it must be some kind of config problem in alsa, does anyone know what files i'll need to alter to resolve this problem?
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3205

PostPosted: Sat May 28, 2005 3:16 am    Post subject: Reply with quote

Itazuki wrote:
thanks for the reply ppurka. i tried doing "speaker-test -channels 6 -Dsurround51" like you said and received this error:

--{[0]itazuki@Itazuki:pts/1}----{~}--
18:09:%speaker-test -channels 6 -Dsurround51 05/27/05

speaker-test 1.0.8

Playback device is surround51
Stream parameters are 48000Hz, S16_LE, 1 channels
Sine wave rate is 440.0000Hz
Channels count (1) not available for playbacks: Invalid argument
Setting of hwparams failed: Invalid argument

it must be some kind of config problem in alsa, does anyone know what files i'll need to alter to resolve this problem?
Are you sure your sound card supports 5.1 sound?

Try setting up your alsa configuration with
Code:
alsaconf
. Also, try the speaker-test without ~/.asoundrc and /etc/asoundrc
Back to top
View user's profile Send private message
Itazuki
n00b
n00b


Joined: 01 Feb 2005
Posts: 55
Location: Ottawa

PostPosted: Sat May 28, 2005 6:36 am    Post subject: Reply with quote

yes, my soundcard does support 5.1, it works fine in windows and it did work in gentoo up until i upgraded a few things, i changed to gcc 3.4, updated all my apps and updated kernel and now the 5.1 no longer work...~/.asoundrc and /etc/asoundrc do not exist...i took a look at alsa.conf and i have no idea what anything in there means...
Back to top
View user's profile Send private message
Itazuki
n00b
n00b


Joined: 01 Feb 2005
Posts: 55
Location: Ottawa

PostPosted: Sat May 28, 2005 7:01 am    Post subject: Reply with quote

btw here's the contents of my /etc/modules.d/alsa:

# Alsa 0.9.X kernel modules' configuration file.
# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v 1.4 2004/11/16 01:31:22 eradicator Exp $

# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore

##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
## ALSA portion
## alias snd-card-0 snd-interwave
## alias snd-card-1 snd-ens1371
## OSS/Free portion
## alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
##

# OSS/Free portion - card #1
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
## OSS/Free portion - card #2
## 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

# Set this to the correct number of cards.
options snd cards_limit=1

i have tried commenting out the last line and i also tried adding a section that went:

alias snd-card-0 snd-intel8x0
alias sound-slot-0 snd-intel8x0

both those did not solve my problem...any ideas?
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3205

PostPosted: Sat May 28, 2005 4:39 pm    Post subject: Reply with quote

The following is my /etc/modules.d/alsa which was generated by alsaconf:
Code:
# The following is only needed when you want OSS compatibility
#alias /dev/mixer snd-mixer-oss
#alias /dev/dsp snd-pcm-oss
#alias /dev/midi snd-seq-oss

# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF verion 1.0.7 ---
alias snd-card-0 snd-intel8x0
alias sound-slot-0 snd-intel8x0
# --- END: Generated by ALSACONF, do not edit. ---
I have alsa 1.0.8
Back to top
View user's profile Send private message
Itazuki
n00b
n00b


Joined: 01 Feb 2005
Posts: 55
Location: Ottawa

PostPosted: Sat May 28, 2005 6:32 pm    Post subject: Reply with quote

interesting stuff..just the fact that it says GENERATED BY ALSA.CONF in your file right before it declares your soundcard is proof that my alsa.conf is configured improperly...again though, i have no idea how to fix that file...it's contents were greek to me...damn etc-update lol, that's most likely what caused all of this heh

here's my alsa.conf:

#
# ALSA library configuration file
#

# pre-load the configuration files

@hooks [
{
func load
files [
"/etc/asound.conf"
"~/.asoundrc"
]
errors false
}
]

# load card-specific configuration files (on request)

cards.@hooks [
{
func load
files [
{
@func concat
strings [
{ @func datadir }
"/cards/aliases.conf"
]
}
]
}
{
func load_for_all_cards
files [
{
@func concat
strings [
{ @func datadir }
"/cards/"
{ @func private_string }
".conf"
]
}
]
errors false
}
]

# defaults

defaults.ctl.card 0
defaults.pcm.card 0
defaults.pcm.device 0
defaults.pcm.subdevice -1
defaults.pcm.front.card defaults.pcm.card
defaults.pcm.front.device defaults.pcm.device
defaults.pcm.rear.card defaults.pcm.card
defaults.pcm.rear.device defaults.pcm.device
defaults.pcm.center_lfe.card defaults.pcm.card
defaults.pcm.center_lfe.device defaults.pcm.device
defaults.pcm.side.card defaults.pcm.card
defaults.pcm.side.device defaults.pcm.device
defaults.pcm.surround40.card defaults.pcm.card
defaults.pcm.surround40.device defaults.pcm.device
defaults.pcm.surround41.card defaults.pcm.card
defaults.pcm.surround41.device defaults.pcm.device
defaults.pcm.surround50.card defaults.pcm.card
defaults.pcm.surround50.device defaults.pcm.device
defaults.pcm.surround51.card defaults.pcm.card
defaults.pcm.surround51.device defaults.pcm.device
defaults.pcm.surround71.card defaults.pcm.card
defaults.pcm.surround71.device defaults.pcm.device
defaults.pcm.iec958.card defaults.pcm.card
defaults.pcm.iec958.device defaults.pcm.device
defaults.pcm.modem.card defaults.pcm.card
defaults.pcm.modem.device defaults.pcm.device
defaults.rawmidi.card 0
defaults.rawmidi.device 0
defaults.rawmidi.subdevice -1
defaults.hwdep.card 0
defaults.hwdep.device 0
defaults.timer.class 2
defaults.timer.sclass 0
defaults.timer.card 0
defaults.timer.device 0
defaults.timer.subdevice 0

#
# PCM interface
#

pcm.hw {
@args [ CARD DEV SUBDEV ]
@args.CARD {
type string
default {
@func getenv
vars [
ALSA_PCM_CARD
ALSA_CARD
]
default {
@func refer
name defaults.pcm.card
}
}
}
@args.DEV {
type integer
default {
@func igetenv
vars [
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
}

pcm.plughw {
@args [ CARD DEV SUBDEV ]
@args.CARD {
type string
default {
@func getenv
vars [
ALSA_PCM_CARD
ALSA_CARD
]
default {
@func refer
name defaults.pcm.card
}
}
}
@args.DEV {
type integer
default {
@func igetenv
vars [
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
}
}

pcm.plug {
@args [ SLAVE ]
@args.SLAVE {
type string
}
type plug
slave.pcm $SLAVE
}

pcm.shm {
@args [ SOCKET PCM ]
@args.SOCKET {
type string
}
@args.PCM {
type string
}
type shm
server $SOCKET
pcm $PCM
}

pcm.tee {
@args [ SLAVE FILE FORMAT ]
@args.SLAVE {
type string
}
@args.FILE {
type string
}
@args.FORMAT {
type string
default raw
}
type file
slave.pcm $SLAVE
file $FILE
format $FORMAT
}

pcm.file {
@args [ FILE FORMAT ]
@args.FILE {
type string
}
@args.FORMAT {
type string
default raw
}
type file
slave.pcm null
file $FILE
format $FORMAT
}

pcm.null {
type null
}

# redirect to load-on-demand extended pcm definitions
pcm.cards cards.pcm
# some links for easy use
pcm.front cards.pcm.front
pcm.rear cards.pcm.rear
pcm.center_lfe cards.pcm.center_lfe
pcm.side cards.pcm.side
pcm.surround40 cards.pcm.surround40
pcm.surround41 cards.pcm.surround41
pcm.surround50 cards.pcm.surround50
pcm.surround51 cards.pcm.surround51
pcm.surround71 cards.pcm.surround71
pcm.iec958 cards.pcm.iec958
pcm.spdif cards.pcm.iec958
pcm.modem cards.pcm.modem

pcm.default cards.pcm.default
pcm.dmix cards.pcm.dmix
pcm.dsnoop cards.pcm.dsnoop

#
# Control interface
#

ctl.hw {
@args[ CARD ]
@args.CARD {
type string
default {
@func getenv
vars [
ALSA_CTL_CARD
ALSA_CARD
]
default {
@func refer
name defaults.ctl.card
}
}
}
type hw
card $CARD
}

ctl.shm {
@args [ SOCKET CTL ]
@args.SOCKET {
type string
}
@args.CTL {
type string
}
type shm
server $SOCKET
ctl $CTL
}

ctl.default {
type hw
card {
@func getenv
vars [
ALSA_CTL_CARD
ALSA_CARD
]
default {
@func refer
name defaults.ctl.card
}
}
}

#
# RawMidi interface
#

rawmidi.hw {
@args [ CARD DEV SUBDEV ]
@args.CARD {
type string
default {
@func getenv
vars [
ALSA_RAWMIDI_CARD
ALSA_CARD
]
default {
@func refer
name defaults.rawmidi.card
}
}
}
@args.DEV {
type integer
default {
@func igetenv
vars [
ALSA_RAWMIDI_DEVICE
]
default {
@func refer
name defaults.rawmidi.device
}
}
}
@args.SUBDEV {
type integer
default -1
}
type hw
card $CARD
device $DEV
subdevice $SUBDEV
}

rawmidi.default {
type hw
card {
@func getenv
vars [
ALSA_RAWMIDI_CARD
ALSA_CARD
]
default {
@func refer
name defaults.rawmidi.card
}
}
device {
@func igetenv
vars [
ALSA_RAWMIDI_DEVICE
]
default {
@func refer
name defaults.rawmidi.device
}
}
}

rawmidi.virtual {
@args [ MERGE ]
@args.MERGE {
type string
default 1
}
type virtual
merge $MERGE
}

#
# Sequencer interface
#

seq.default {
type hw
}

seq.hw {
type hw
}

#
# HwDep interface
#

hwdep.hw {
@args [ CARD DEV ]
@args.CARD {
type string
default {
@func getenv
vars [
ALSA_HWDEP_CARD
ALSA_CARD
]
default {
@func refer
name defaults.hwdep.card
}
}
}
@args.DEV {
type integer
default {
@func igetenv
vars [
ALSA_HWDEP_DEVICE
]
default {
@func refer
name defaults.hwdep.device
}
}
}
type hw
card $CARD
device $DEV
}

hwdep.default {
type hw
card {
@func getenv
vars [
ALSA_HWDEP_CARD
ALSA_CARD
]
default {
@func refer
name defaults.hwdep.card
}
}
device {
@func igetenv
vars [
ALSA_HWDEP_DEVICE
]
default {
@func refer
name defaults.hwdep.device
}
}
}

#
# Timer interface
#

timer_query.hw {
type hw
}

timer_query.default {
type hw
}

timer.hw {
@args [ CLASS SCLASS CARD DEV SUBDEV ]
@args.CLASS {
type integer
default {
@func refer
name defaults.timer.class
}
}
@args.SCLASS {
type integer
default {
@func refer
name defaults.timer.sclass
}
}
@args.CARD {
type string
default {
@func refer
name defaults.timer.card
}
}
@args.DEV {
type integer
default {
@func refer
name defaults.timer.device
}
}
@args.SUBDEV {
type integer
default {
@func refer
name defaults.timer.subdevice
}
}
type hw
class $CLASS
sclass $SCLASS
card $CARD
device $DEV
subdevice $SUBDEV
}

timer.default {
type hw
class {
@func refer
name defaults.timer.class
}
sclass {
@func refer
name defaults.timer.sclass
}
card {
@func refer
name defaults.timer.card
}
device {
@func refer
name defaults.timer.device
}
subdevice {
@func refer
name defaults.timer.subdevice
}
}
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3205

PostPosted: Sun May 29, 2005 6:51 am    Post subject: Reply with quote

I think there has been a misunderstanding. Just login as root, and type
Code:
alsaconf
. This program will then guide you through the rest of the configuration. It will ask you several questions, and finally generate a /etc/modules.d/alsa file.

It would be a good idea to you backup the current /etc/modules.d/alsa file somewhere. (At least you have got some speakers working right now ;) )
Back to top
View user's profile Send private message
Itazuki
n00b
n00b


Joined: 01 Feb 2005
Posts: 55
Location: Ottawa

PostPosted: Mon May 30, 2005 1:30 am    Post subject: Reply with quote

oh i see...i tried doing alsaconf as root, it said "No supported Pnp or PCI card found. Would you like to probe legacy ISA sound cards/chips?

If i choose no here then config quits. If i choose yes it says "No legacy drivers are available" and then terminates...no i really have no idea what's wrong...
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3205

PostPosted: Mon May 30, 2005 5:41 am    Post subject: Reply with quote

Itazuki wrote:
thanks for the reply ppurka. i tried doing "speaker-test -channels 6 -Dsurround51" like you said and received this error:

--{[0]itazuki@Itazuki:pts/1}----{~}--
18:09:%speaker-test -channels 6 -Dsurround51 05/27/05

Sorry I didn't notice this before, but the command should have been speaker test --channels 6 -Dsurround51 (sorry, it seems I myself mistyped while posting in an earlier message :().

Itazuki wrote:
If i choose no here then config quits. If i choose yes it says "No legacy drivers are available" and then terminates...no i really have no idea what's wrong...
Surely something is wrong with your driver configuration. Since your sound card requires the module snd_intel8x0, you can try and compare your kernel configuration with mine:
Code:

#
# Sound
#
CONFIG_SOUND=yCONFIG_SND=m
CONFIG_SND_TIMER=m
CONFIG_SND_PCM=m
CONFIG_SND_SEQUENCER=m

CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_SEQUENCER_OSS=y

#
# PCI devices
#
CONFIG_SND_AC97_CODEC=m

CONFIG_SND_INTEL8X0=m
Other than a misconfiguration, I don't see what could have gone wrong.

Perhaps the following links might also help:
http://www.gentoo.org/doc/en/alsa-guide.xml
http://gentoo-wiki.com/HOWTO_ALSA_sound_mixer_aka_dmix

HTH
Back to top
View user's profile Send private message
Itazuki
n00b
n00b


Joined: 01 Feb 2005
Posts: 55
Location: Ottawa

PostPosted: Mon May 30, 2005 5:46 pm    Post subject: Reply with quote

here's my kernel config, same as yours, except mines not modular:

# Sound
#
CONFIG_SOUND=y

#
# Advanced Linux Sound Architecture
#
CONFIG_SND=y
CONFIG_SND_TIMER=y
CONFIG_SND_PCM=y
CONFIG_SND_SEQUENCER=y
# CONFIG_SND_SEQ_DUMMY is not set
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=y
CONFIG_SND_PCM_OSS=y
CONFIG_SND_SEQUENCER_OSS=y

# PCI devices
#
CONFIG_SND_AC97_CODEC=y
# PCI devices
CONFIG_SND_INTEL8X0=y

...thanks for the correction...when i did the speaker test:

both front left and right speakers worked properly
center speaker did not work
rear left speaker did not work
rear right speaker came out of center

i still think this problem was caused by some file in etc being overwritten in an etc-update that i shouldn't have overwritten
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3205

PostPosted: Tue May 31, 2005 4:54 am    Post subject: Reply with quote

Quote:
here's my kernel config, same as yours, except mines not modular:
Oh wow! Perhaps that explains why alsaconf doesn't work! How do you expect to *load* modules when all your modules are built into your kernel ?!!

What happens if you remove /etc/modules.d/alsa (move it to your home directory) and then do a modules_update , and then restart alsasound:
Code:
mv /etc/modules.d/alsa ~/
/etc/init.d/alsasound restart

Since all your modules are built in, IMHO you don't need to have alsa in your modules.conf

HTH
Back to top
View user's profile Send private message
Itazuki
n00b
n00b


Joined: 01 Feb 2005
Posts: 55
Location: Ottawa

PostPosted: Sun Jun 05, 2005 5:09 am    Post subject: Reply with quote

heh, whoops! hehehe...i've also tried making everything modular but unfortunately that did nothing to solve the problem
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum