You are not logged in.

#1 2011-08-19 06:05:18

Geidrow
Member
Registered: 2011-08-19
Posts: 2

Resampling tips&tricks

Hello dear all!
There are 2 sound cards  on my PC: hda_intel (ALC888 from Realtek) and SBLive 5.1

1. I could that ALSA make software resampling (44.1 to 48 kHz) when sound playing through SBLive and do not resampling if using hda_intel. How asoundrc must be configured in this case?

2. In my OS (Kubuntu 10.04) installed not latest version of ALSA libs. How I can know exactly which version of ALSA using. I mean are there any incompatibilities between for instance 1.0.23 ver of ALSA  and 1.0.24 of alsa-lib, alsa-plugins (I have choose right version of alsa-lib, alsa-plugins and install them).

3. Is it possible to use OSS and ALSA both? I could that hda_intel uses ALSA, SBLive -­ OSS. How exactly?

Thank you in advance

Offline

#2 2011-08-19 10:50:32

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Resampling tips&tricks

1. Here's my ~/.asoundrc as an example.
Is your SBLive a hardware-mixing model (most of them are)? This is an important feature.

2. Mixing 1.0.23 and 1.0.24 is a bizarre choice - why are you even asking this question? Dunno about specific incompatibilities. Use your package manager to see the alsa-* versions, plus this command:

cat /proc/asound/version

3. There are *two* "OSS" - there's ALSA's emulation of OSS (which bypasses dmix), and there's OpenSound. The kernel modules for ALSA and OpenSound are incompatible, and cannot both be loaded at the same time.

It would help if you explained what you are trying to *do*.

Offline

#3 2011-08-19 12:26:36

Geidrow
Member
Registered: 2011-08-19
Posts: 2

Re: Resampling tips&tricks

Thank you for your reply and detailed config.
1. I need separate settings for each sound card.

2. "Is your SBLive a hardware-mixing model".
SBLive 5.1 supports hardware mixing streams but with current ALSA settings it does not - I don't know why.

3. "Whereas surround51 doesn't use dmix". I have 4 satellites, subwoofer.
I try these
blop and cmt was installed by Synaptic.
4./etc/asound.conf was created and then I paste to it follow text:
pcm.upmix_20to51 {
    type plug
    slave.pcm lowpass_21to21
    slave.channels 3
    ttable {
        0.0     1       # left channel
        1.1     1       # right channel
        0.2     0.5     # mix left and right ...
        1.2     0.5     # ... channel for subwoofer
    }
}

pcm.lowpass_21to21 {
    type ladspa
    slave.pcm upmix_21to51
    path "/usr/lib/ladspa"
    channels 3
    plugins {
        0 {
            id 1098 # Identity (Audio) (1098/identity_audio)
            policy duplicate
            input.bindings.0 "Input";
            output.bindings.0 "Output";
        }
        1 {
            id 1672 # 4 Pole Low-Pass Filter with Resonance (FCRCIA) (1672/lp4pole_fcrcia_oa)
            policy none
            input.bindings.2 "Input";
            output.bindings.2 "Output";
            input {
                controls [ 300 2 ]
            }
        }
    }
}

pcm.upmix_21to51 {
    type plug
    slave.pcm surround51
    slave.channels 5
    ttable {
        0.0     1       # front left
        1.1     1       # front right
        0.2     1       # rear left
        1.3     1       # rear right
        2.5     1       # subwoofer
    }
    hint {
            show on
            description "Upmix channel"
        }
}

A problem is: when I try to check sound in SystemSettings/Multimedia a message displayed : "The device Upmix channel does not work", and sounds played by snd_hda_intel. So this settings does not applyed to snd_emu10k1.

Where is my mistake? I should use Creative SBLive (snd_emu10k1).

Thank you in advance

Offline

#4 2011-08-19 12:56:38

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Resampling tips&tricks

Geidrow wrote:

SBLive 5.1 supports hardware mixing streams but with current ALSA settings it does not - I don't know why.

You need to provide more detail. Show your command, and the error message.

I have 4 satellites, subwoofer.

That's surround50 rather than surround51 (i.e. no Center speaker).

check sound in SystemSettings/Multimedia a message displayed : "The device Upmix channel does not work"

"Does not work" is useless for debugging. Use the various speaker-test commands that are in my config, so you can get ALSA's error message.

Offline

#5 2011-08-19 13:14:08

scjet
Banned
Registered: 2011-07-23
Posts: 172

Re: Resampling tips&tricks

Geidrow wrote:

Hello dear all!
There are 2 sound cards  on my PC: hda_intel (ALC888 from Realtek) and SBLive 5.1

...

->  Disable the onboard ALC888, trust me, it is a piece of "caca" -then again, so are ALL the newer onboard Audio controllers.


The "BSD" things in life are "Free", and "Open", and so is "Arch"

Offline

#6 2011-08-19 22:33:58

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Resampling tips&tricks

Geidrow wrote:

2. In my OS (Kubuntu 10.04) installed not latest version of ALSA libs. How I can know exactly which version of ALSA using. I mean are there any incompatibilities between for instance 1.0.23 ver of ALSA  and 1.0.24 of alsa-lib, alsa-plugins (I have choose right version of alsa-lib, alsa-plugins and install them).

Please read: https://wiki.archlinux.org/index.php/Fo … ow_to_Post
If you have any questions about Arch Linux, feel free to ask but we do not provide support for other distros.
Closing.

P.s., Fire and ice, Lucid is old.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

Board footer

Powered by FluxBB