View previous topic :: View next topic |
Author |
Message |
Alrua n00b

Joined: 01 Feb 2004 Posts: 45
|
Posted: Sat Dec 17, 2005 4:47 pm Post subject: Shuttle SN25P / ice1724 dmix problems |
|
|
Hi,
I followed the directions at http://gentoo-wiki.com/HOWTO_ALSA_sound_mixer_aka_dmix but when I get to the testing of dmix-part (i.e. where it says "this should always work"), i get an error. Specifically, this is what I get:
Code: | $ aplay -D plug:dmix some.wav
ALSA lib pcm_direct.c:812:(snd_pcm_direct_initialize_slave) requested or auto-format is not available
ALSA lib pcm_dmix.c:831:(snd_pcm_dmix_open) unable to initialize slave
aplay: main:544: audio open error: Invalid argument |
lsmod output:
Code: | Module Size Used by
snd_pcm_oss 50592 0
snd_mixer_oss 16448 1 snd_pcm_oss
snd_seq_dummy 3204 0
snd_seq_oss 32704 0
snd_seq_midi_event 7232 1 snd_seq_oss
snd_seq 54144 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
hidp 13568 0
rfcomm 35952 0
l2cap 23624 4 hidp,rfcomm
hci_usb 12432 0
bluetooth 46148 4 hidp,rfcomm,l2cap,hci_usb
nvidia 4848848 12
forcedeth 21760 0
snd_ice1724 73088 2
snd_ice17xx_ak4xxx 3712 1 snd_ice1724
snd_ac97_codec 103000 1 snd_ice1724
snd_ac97_bus 2432 1 snd_ac97_codec
snd_ak4114 8832 1 snd_ice1724
snd_pcm 88844 4 snd_pcm_oss,snd_ice1724,snd_ac97_codec,snd_ak4114
snd_timer 22536 2 snd_seq,snd_pcm
snd_page_alloc 9296 1 snd_pcm
snd_ak4xxx_adda 6336 2 snd_ice1724,snd_ice17xx_ak4xxx
snd_mpu401_uart 6976 1 snd_ice1724
snd_rawmidi 23712 1 snd_mpu401_uart
snd_seq_device 7760 4 snd_seq_dummy,snd_seq_oss,snd_seq,snd_rawmidi
snd 51944 17 snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq,snd_ice1724,snd_ac97_codec,snd_ak4114,snd_pcm,snd_timer,snd_ak4xxx_adda,snd_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore 9056 1 snd |
When sound is playing (without using dmix) i can get some format info:
Code: | $ cat /proc/asound/SN25P/pcm0p/sub0/hw_params
access: MMAP_INTERLEAVED
format: S32_LE
subformat: STD
channels: 2
rate: 44100 (44100/1)
period_size: 4096
buffer_size: 32768
tick_time: 4000 |
but specifying the format to aplay doesn't help:
Code: | $ aplay -D plug:dmix -f s32_le some.wav
ALSA lib pcm_direct.c:812:(snd_pcm_direct_initialize_slave) requested or auto-format is not available
ALSA lib pcm_dmix.c:831:(snd_pcm_dmix_open) unable to initialize slave
aplay: main:544: audio open error: Invalid argument |
Any ideas on how to fix this?
-Alrua |
|
Back to top |
|
 |
fangorn Veteran


Joined: 31 Jul 2004 Posts: 1886
|
|
Back to top |
|
 |
Alrua n00b

Joined: 01 Feb 2004 Posts: 45
|
Posted: Fri Dec 23, 2005 7:07 pm Post subject: |
|
|
that did it. thanks alot!  |
|
Back to top |
|
 |
01mf02 Veteran


Joined: 21 Nov 2004 Posts: 1070 Location: Innsbruck, Austria
|
Posted: Fri Dec 23, 2005 9:53 pm Post subject: |
|
|
I have completely the same problem. aplay gives the same error message - even after using the .asoundrc:
Code: |
pcm.!default {
type plug
slave.pcm "dmixer"
}
pcm.dmixer {
type dmix
ipc_key 1024
slave {
pcm "hw:0,1"
format S32_LE
period_time 0
period_size 1024
# increased buffer_size because in my system 1024 cause bad
# audio performance (for totem media player and mplayer)
buffer_size 8192
rate 44100
}
bindings {
0 0
1 1
}
}
ctl.dmixer {
type hw
card 0
device 1
}
|
But now, there isn't any sound in ALSA apps anymore at all - you said something about that SPDIF, I have my speakers attached where you could also attach usual headphones - is this SPDIF or do I need special speakers for this purpose? If so, couldn't I use dmix for the speaker output I currently use? |
|
Back to top |
|
 |
Alrua n00b

Joined: 01 Feb 2004 Posts: 45
|
Posted: Sat Dec 24, 2005 8:25 am Post subject: |
|
|
the headphones jack is the analog output.
To use this instead of the spdif output, you have to change the hardware channel to channel 0.
i.e. change
to
and
to
that did it for me.
For reference, my .asoundrc looks like this:
Code: | pcm.!default {
type plug
slave.pcm "dmixer"
}
pcm.dmixer {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0"
format S32_LE
period_time 0
period_size 1024
# increased buffer_size because in my system 1024 cause bad
# audio performance (for totem media player and mplayer)
buffer_size 8192
rate 44100
}
bindings {
0 0
1 1
}
}
ctl.dmixer {
type hw
card 0
device 0
} |
|
|
Back to top |
|
 |
01mf02 Veteran


Joined: 21 Nov 2004 Posts: 1070 Location: Innsbruck, Austria
|
Posted: Sat Dec 24, 2005 9:43 am Post subject: |
|
|
Yippeee! It works now! Thanks a lot!  |
|
Back to top |
|
 |
megalomax n00b


Joined: 06 Feb 2003 Posts: 52 Location: germany
|
Posted: Fri Dec 30, 2005 6:52 pm Post subject: |
|
|
Hi.
Do you guys get hefty stuttering, too? I have a SN25P with plenty of RAM and a Venice 3200.
I use the provided asound file but the sound is crap. Sound output without dmix is perfect.
Do you have any specific BIOS settings or something else tweaked?!? Which kernel do you guys run on? ALSA inkernel or outside...
Thanks for your help.
PS: I need analog output. |
|
Back to top |
|
 |
roguetoad Tux's lil' helper

Joined: 24 Oct 2005 Posts: 124 Location: Office chair
|
Posted: Fri Feb 24, 2006 3:47 am Post subject: |
|
|
I am getting hefty stuttering from my onboard ice1724 Shuttle SN25P. I had this earlier and downgraded to an older version of alsa and it went away. Well, with a recent emerge world, I got a newer version of alsa and the stuttering is back. I haven't tried redowngrading.
Not even sure how to file a bug report against this. It's not like it throws any error messages in any logs or anything.
<sigh> I was getting used to sound finally working on my rig </sigh> |
|
Back to top |
|
 |
longship Apprentice

Joined: 04 Jun 2005 Posts: 294 Location: Ontario, CA USA
|
Posted: Fri Feb 24, 2006 4:30 am Post subject: |
|
|
roguetoad wrote: | I am getting hefty stuttering from my onboard ice1724 Shuttle SN25P. I had this earlier and downgraded to an older version of alsa and it went away. Well, with a recent emerge world, I got a newer version of alsa and the stuttering is back. I haven't tried redowngrading.
Not even sure how to file a bug report against this. It's not like it throws any error messages in any logs or anything.
<sigh> I was getting used to sound finally working on my rig </sigh> |
Do you have the Sound RTC option turned on or not?
Have you moved your card to a different PCI slot or added another PCI card? _________________ AMD 64 X2 4400+, ASUS A8N-Sli Premium + Lian Li PC-V1000A Plus
AMD Duron 800, ABit KT7E, junk case
VIA C3-Nehemiah, VIA EPIA MII12000 + Scythe e-Otonashi fanless case |
|
Back to top |
|
 |
roguetoad Tux's lil' helper

Joined: 24 Oct 2005 Posts: 124 Location: Office chair
|
Posted: Fri Feb 24, 2006 3:16 pm Post subject: |
|
|
Yes, I have the sound RTC option on. It is onboard sound, so I can't move it to another slot.
I noticed gstreamer upped a rev version. I will try that next and report back |
|
Back to top |
|
 |
|