Hi

My laptop has a Sis Azalia sound chipset. And default the sound volume
is pretty low. As a workarround i use pulseaudio on top of alsa with
ladspa amp.so plugin to increase volume.

I found out that one can use ladspa plugins directly in alsa and i am
trying to do so. But for some reason things are not working when i try
to use ladspa in alsa.

[parant...@labda: /usr/share/sounds/purple]$ aplay -D azalia_plug login.wav
Playing WAVE 'login.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Stereo
ALSA lib pcm_params.c:2135:(snd1_pcm_hw_refine_slave) Slave PCM not usable
aplay: set_params:939: Broken configuration for this PCM: no
configurations available

[parant...@labda: /usr/share/sounds/purple]$ alsaplayer -d azalia_plug
login.wav
ALSA lib pcm_params.c:2135:(snd1_pcm_hw_refine_slave) Slave PCM not usable
error on snd_pcm_hw_par/ams_any
Unavailable hw params:
ACCESS:  ALL
FORMAT:  ALL
SUBFORMAT:  ALL
SAMPLE_BITS: ALL
FRAME_BITS: ALL
CHANNELS: [0 10000]
RATE: [4000 4294967295]
PERIOD_TIME: ALL
PERIOD_SIZE: ALL
PERIOD_BYTES: ALL
PERIODS: ALL
BUFFER_TIME: ALL
BUFFER_SIZE: ALL
BUFFER_BYTES: ALL
TICK_TIME: ALL
ALSA lib pcm_params.c:2135:(snd1_pcm_hw_refine_slave) Slave PCM not usable
error on snd_pcm_hw_par/ams_any
Unavailable hw params:
ACCESS:  ALL
FORMAT:  ALL
SUBFORMAT:  ALL
SAMPLE_BITS: ALL
FRAME_BITS: ALL
CHANNELS: [0 10000]
RATE: [4000 4294967295]
PERIOD_TIME: ALL
PERIOD_SIZE: ALL
PERIOD_BYTES: ALL
PERIODS: ALL
BUFFER_TIME: ALL
BUFFER_SIZE: ALL
BUFFER_BYTES: ALL
TICK_TIME: ALL
failed to configure output device...trying OSS
ALSA lib pcm_params.c:2135:(snd1_pcm_hw_refine_slave) Slave PCM not usable
error on snd_pcm_hw_par/ams_any
Unavailable hw params:
ACCESS:  ALL
FORMAT:  ALL
SUBFORMAT:  ALL
SAMPLE_BITS: ALL
FRAME_BITS: ALL
CHANNELS: [0 10000]
RATE: [4000 4294967295]
PERIOD_TIME: ALL
PERIOD_SIZE: ALL
PERIOD_BYTES: ALL
PERIODS: ALL
BUFFER_TIME: ALL
BUFFER_SIZE: ALL
BUFFER_BYTES: ALL
TICK_TIME: ALL
ALSA lib pcm_params.c:2135:(snd1_pcm_hw_refine_slave) Slave PCM not usable
error on snd_pcm_hw_par/ams_any
Unavailable hw params:
ACCESS:  ALL
FORMAT:  ALL
SUBFORMAT:  ALL
SAMPLE_BITS: ALL
FRAME_BITS: ALL
CHANNELS: [0 10000]
RATE: [4000 4294967295]
PERIOD_TIME: ALL
PERIOD_SIZE: ALL
PERIOD_BYTES: ALL
PERIODS: ALL
BUFFER_TIME: ALL
BUFFER_SIZE: ALL
BUFFER_BYTES: ALL
TICK_TIME: ALL
failed to configure output device...trying OSS


However if I use plug:azalia_dmix instead of azalia_plug sound works.
So i feel its some problem with using ladspa. I have tried other
ladspa plugins too but they also have the same error.

Here are my specs: -

[parant...@labda: ~]$ cat /etc/debian_version
squeeze/sid

[parant...@labda: ~]$ uname -r
2.6.26-1-amd64

alsa-base Version: 1.0.19.dfsg-3
alsa-modules-2.6.26-1-amd64 Version: 1.0.17.dfsg-4+2.6.26-12

[parant...@labda: ~]$ lspci
00:00.0 Host bridge: Silicon Integrated Systems [SiS] 671MX
00:01.0 PCI bridge: Silicon Integrated Systems [SiS] SiS AGP Port
(virtual PCI-to-PCI bridge)
00:02.0 ISA bridge: Silicon Integrated Systems [SiS] SiS968 [MuTIOL
Media IO] (rev 01)
00:02.5 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE] (rev 01)
00:03.0 USB Controller: Silicon Integrated Systems [SiS] USB 1.1
Controller (rev 0f)
00:03.1 USB Controller: Silicon Integrated Systems [SiS] USB 1.1
Controller (rev 0f)
00:03.3 USB Controller: Silicon Integrated Systems [SiS] USB 2.0 Controller
00:04.0 Ethernet controller: Silicon Integrated Systems [SiS] 191
Gigabit Ethernet Adapter (rev 02)
00:05.0 IDE interface: Silicon Integrated Systems [SiS] SATA
Controller / IDE mode (rev 03)
00:06.0 PCI bridge: Silicon Integrated Systems [SiS] PCI-to-PCI bridge
00:07.0 PCI bridge: Silicon Integrated Systems [SiS] PCI-to-PCI bridge
00:0d.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev b4)
00:0d.1 FireWire (IEEE 1394): Ricoh Co Ltd R5C552 IEEE 1394 Controller (rev 09)
00:0d.2 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro
Host Adapter (rev 18)
00:0d.3 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 09)
00:0d.4 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host
Adapter (rev ff)
00:0f.0 Audio device: Silicon Integrated Systems [SiS] Azalia Audio Controller
01:00.0 VGA compatible controller: Silicon Integrated Systems [SiS]
771/671 PCIE VGA Display Adapter (rev 10)
02:00.0 Ethernet controller: Atheros Communications Inc. AR242x
802.11abg Wireless PCI Express Adapter (rev 01)

[parant...@labda: ~]$ cat ~/.asoundrc
pcm.azalia_hw {
        type hw
        card 0
        device 0
}

pcm.azalia_dmix {
        type dmix
        ipc_key 1024
        slave.pcm azalia_hw
}

pcm.azalia_amp {
        type ladspa
        slave.pcm azalia_dmix
        path "/usr/lib/ladspa"
        playback_plugins.0 {
                id 1049
                label amp_stereo
                filename "/usr/lib/ladspa/amp.so"
                input.controls [ 1.0 ]
        }
}

pcm.azalia_plug {
        type plug
        slave.pcm azalia_amp
}

ctl.azalia_hw {
        type hw
        card 0
        device 0
}

Thanks in advance

-- 
Parantapa Bhattcharya


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to