Skip to contentSkip to conversation

: (snd_pcm_route_load_ttable) Invalid type for X - when using REAL numbers

ALSA - lib 0000892 [email protected] 1 participant 1 message Feb 9, 2005

lore
Share & tools
lore
#0 lore raw

A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=892>
======================================================================
Reported By: slammer
Assigned To:
======================================================================

Project:                    ALSA - lib
Issue ID:                   892
Category:                   general
Reproducibility:            have not tried
Severity:                   major
Priority:                   normal
Status:                     new
======================================================================
Date Submitted:             02-08-2005 15:06 CET
Last Modified:              02-09-2005 11:47 CET

======================================================================
Summary: (snd_pcm_route_load_ttable) Invalid type for X -
when using REAL numbers
Description:
According to the route plugin description at
http://www.alsa-project.org/alsa-doc/alsa-lib/pcm_plugins.html

ttable { schannels numbers)

                CCHANNEL {
                        SCHANNEL REAL   # route value (0.0 - 1.0)
                }

the ttable values can be REAL.
Although when defining such a simple pcm as:

pcm.ch51dup {
    type route
    ttable {
        0 {
            0 1
            4 1
            2 0.5
            3 0.5
        }
        1 {
            1 1
            5 1
            2 0.5
            3 0.5
        }
    }
    slave.pcm {
        type hw
        card 0
        device 0
    }
    slave.channels 6
}

and trying to use the pcm, I get an error:
(snd_pcm_route_load_ttable) Invalid type for 2.
(snd_pcm_route_load_ttable) Invalid type for 3.

This i tried to define the table values in different manners e.g. ttable.0.3 0.5 (even used the exact sample from
http://alsa.opensrc.org/index.php?page=FAQ028) but the result is the same.

======================================================================

----------------------------------------------------------------------
tiwai - 02-09-05 11:29
----------------------------------------------------------------------
I can't reproduce.

Which locale are you using? Try once export LANG=C.

----------------------------------------------------------------------
slammer - 02-09-05 11:47
----------------------------------------------------------------------
As a matter of fact i'm using some different locale which uses , i.e. LANG=en_US
LC_CTYPE=pl_PL
LC_NUMERIC=pl_PL
LC_TIME=pl_PL
LC_COLLATE=C
LC_MONETARY="en_US"
LC_MESSAGES=en_US
LC_PAPER="en_US"
LC_NAME="en_US"
LC_ADDRESS="en_US"
LC_TELEPHONE="en_US"
LC_MEASUREMENT="en_US"
LC_IDENTIFICATION="en_US"
LC_ALL=

I'll experiment with different locale then, but don't you think that config files shouldn't be locale dependent?? They're read by each user after all so in case people use a global /etc/asound.conf (e.g. me :) the settings have to rely on users not messing around with their locale.

Issue History
Date Modified Username Field Change
======================================================================

02-08-05 15:06 slammer        New Issue                                    
02-08-05 15:06 slammer        Issue Monitored: slammer                     
02-08-05 15:09 slammer        Note Added: 0003533                          
02-09-05 11:29 tiwai          Note Added: 0003537                          
02-09-05 11:47 slammer        Note Added: 0003542                          

======================================================================

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click