[ltp] T40 and ALSA, but no multi channel mixing

Roman Joost linux-thinkpad@linux-thinkpad.org
Fri, 20 Aug 2004 10:53:31 +0200


--mP3DRpeJDSE+ciuQ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I think, this story is really old, but I didn't get managed to it. I'm
running Debian unstable on my T40 and can use only one sound output a
time (eg. playing mp3s in XMMS but no sound for mozilla).

So, I was browsing the net and found the solution: asoundrc. I created
one, which looks like this:

*****************
pcm.amix {
    type dmix
    ipc_key 50557
    slave {
        pcm "hw:0,0"
        period_time 0
        period_size 1024
        buffer_size 8192
    }
    bindings {
        0 0
        1 1
    }
}
pcm.!default { # route ALSA software through pcm.amix
    type plug
    slave.pcm "amix"
}
pcm.dsp0 {  # oss software as well
    type plug
    slave.pcm "amix"
}

ctl.mixer0 {
    type hw
    card 0
}
*****************

Unfortunately, same problem; no multi channel mixing (or however you
want to call it). Another curiosity is, that if I try to play two mp3's
with mplayer and alsa output, it only works for the first one. The
second mplayer waits for the device to become free. I thought, that this
should work for ALSA?

Maybe someone of you guys can point me to the right direction. I'll also
post my loaded modules here:

*****************
Module                  Size  Used by
af_packet              22600  2=20
ipv6                  256736  15=20
pcmcia_core            57868  0=20
parport_pc             34880  1=20
lp                     10856  0=20
parport                41928  2 parport_pc,lp
binfmt_misc            10504  1=20
thermal                12752  0=20
fan                     4044  0=20
button                  6360  0=20
ac                      4876  0=20
battery                 9484  0=20
aes                    32704  1=20
airo                   73560  0=20
slamr                 375844  2=20
8250_pci               18112  0=20
8250                   22112  1 8250_pci
serial_core            23744  1 8250
usbhid                 33728  0=20
uhci_hcd               32976  0=20
shpchp                102572  0=20
intel_agp              19932  1=20
joydev                  9728  0=20
ehci_hcd               31876  0=20
usbmouse                5824  0=20
pciehp                 99756  0=20
ppp_deflate             6400  0=20
ppp_async              12416  0=20
ppp_synctty             9344  0=20
ppp_generic            29908  3 ppp_deflate,ppp_async,ppp_synctty
slhc                    7552  1 ppp_generic
snd_rtctimer            3280  0=20
snd_seq_oss            34752  0=20
snd_seq_midi_event      7744  1 snd_seq_oss
snd_seq                54288  4 snd_seq_oss,snd_seq_midi_event
non_fatal               2116  0 [permanent]
cpufreq_powersave       1792  1=20
cpufreq_userspace       7384  0=20
firmware_class         10304  0=20
pci_hotplug            12292  2 shpchp,pciehp
ide_cd                 43104  0=20
cdrom                  40412  1 ide_cd
ntfs                  125676  0=20
rtc                    12856  1 snd_rtctimer
nvram                   9352  0=20
irda                  197632  0=20
wacom                  12928  0=20
usbcore               114336  7 usbhid,uhci_hcd,ehci_hcd,usbmouse,wacom
evdev                   9536  2=20
speedstep_centrino      7956  0=20
freq_table              4356  1 speedstep_centrino
processor              18544  2 thermal,speedstep_centrino
snd_intel8x0           35528  0=20
snd_pcm_oss            55144  0=20
snd_pcm                98888  2 snd_intel8x0,snd_pcm_oss
snd_timer              25860  3 snd_rtctimer,snd_seq,snd_pcm
snd_page_alloc         11848  2 snd_intel8x0,snd_pcm
snd_mpu401_uart         8064  1 snd_intel8x0
snd_rawmidi            25252  1 snd_mpu401_uart
snd_seq_device          8264  3 snd_seq_oss,snd_seq,snd_rawmidi
snd_ac97_codec         70212  1 snd_intel8x0
snd_mixer_oss          20224  1 snd_pcm_oss
snd                    55076  12 snd_seq_oss,snd_seq_midi_event,snd_seq,snd=
_intel8x0,snd_pcm_oss,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq=
_device,snd_ac97_codec,snd_mixer_oss
soundcore              10080  1 snd
e1000                  85892  0=20
msr                     2880  0=20
cpuid                   2560  0=20
unix                   28916  202=20
************************

Thanks!
--=20
Roman Joost
www: http://www.romanofski.de
email: roman@bromeco.com

--mP3DRpeJDSE+ciuQ
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFBJbwL8CscaEkpx0IRApyaAJ9IeMh/X4OS8QsKllAGMAiJed0dFwCfTSJc
E2iqxPYXWx1zkO8vdh8cJVE=
=KCIZ
-----END PGP SIGNATURE-----

--mP3DRpeJDSE+ciuQ--