Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USB Creative Sound Blaster X-Fi Surround 5.1 Pro
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
dr-peppa
n00b
n00b


Joined: 28 Apr 2011
Posts: 25

PostPosted: Thu Apr 28, 2011 12:25 pm    Post subject: USB Creative Sound Blaster X-Fi Surround 5.1 Pro Reply with quote

Hello,

I've been trying to get my external USB-Soundcard which is a Creative Labs Sound Blaster X-Fi Surround 5.1 Pro (Model-No: SB1095) to work properly for days now.

When I enter:
Code:
speaker-test -c 6 -D surround51 -t wav

it works out of the boxl and I can hear 6 chanel sound on my 5.1 speakers. The basses are produced by the subwoofer, as it should be.

However, when I want to play music, I only get this normal Stereo sound and the basses comes from the small boxes.
The subwoofer doesn't do anything.

I suggest, alsa is working good because of the working speaker-test. Has anybody an idea, how it could be done to listen to 5.1 sound with mplayer,cmus,vlc, etc...

I know, that you might need some additional information about my system configuration or so, but as I don't know what exactly is necessary, I would like you to tell me what you need.
For now, here's the:

Code:
$ uname -r
2.6.38.2-zen


Code:
$ equery list alsa-utils
[ Searching for package 'alsa-utils' in all categories among: ]
 * installed packages
[I--] [  ] media-sound/alsa-utils-1.0.23-r1 (0.9)


Sorry for my poor english, I haven't been practicing the last few years and thanks in advance. ;-)

dr-p


edit: my alsa-info:
Code:

upload=true&script=true&cardinfo=
!!################################
!!ALSA Information Script v 0.4.60
!!################################

!!Script ran on: Thu Apr 28 13:05:43 UTC 2011


!!Linux Distribution
!!------------------

Gentoo Base System release 1.12.14


!!DMI Information
!!---------------

Manufacturer:      TOSHIBA
Product Name:      QOSMIO X500
Product Version:   PQX33E-04Q009GR


!!Kernel Information
!!------------------

Kernel release:    2.6.38.2-zen
Operating System:  GNU/Linux
Architecture:      x86_64
Processor:         Intel(R) Core(TM) i7 CPU Q 740 @ 1.73GHz
SMP Enabled:       Yes


!!ALSA Version
!!------------

Driver version:     1.0.23
Library version:    1.0.23
Utilities version:  1.0.23


!!Loaded ALSA modules
!!-------------------

snd_usb_audio
snd_hda_intel
snd_hda_intel


!!Sound Servers on this system
!!----------------------------

Jack:
      Installed - Yes (/usr/bin/jackd)
      Running - No


!!Soundcards recognised by ALSA
!!-----------------------------

 0 [Pro            ]: USB-Audio - SB X-Fi Surround 5.1 Pro
                      Creative Technology Ltd SB X-Fi Surround 5.1 Pro at usb-0000:00:1a.0-1.6, full
 1 [Intel          ]: HDA-Intel - HDA Intel
                      HDA Intel at 0xf0900000 irq 48
 2 [NVidia         ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xcdefc000 irq 17


!!PCI Soundcards installed in the system
!!--------------------------------------

00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 05)
01:00.1 Audio device: nVidia Corporation High Definition Audio Controller (rev a1)


!!Advanced information - PCI Vendor/Device/Subsystem ID's
!!--------------------------------------------------------

00:1b.0 0403: 8086:3b56 (rev 05)
        Subsystem: 1179:ff50
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Thu Apr 28, 2011 8:32 pm    Post subject: Reply with quote

I wonder if whatever program you're using to play music has to recognise surround sound in order for surround sound to work...
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
dr-peppa
n00b
n00b


Joined: 28 Apr 2011
Posts: 25

PostPosted: Thu Apr 28, 2011 8:59 pm    Post subject: Reply with quote

Quote:
I wonder if whatever program you're using to play music has to recognise surround sound in order for surround sound to work...


I think so.



(I'm a total noob if it is about sound-things. midi,stereo,pcm,surround,channel,samplerate, etc. I have no clue at all.)
I wonder, why there is no Howto for the USB X-Fi Surround 5.1 Pro on the internet, as it is for graphic-cards.
Do I really have to read over the whole alsa-project for just making this soundcard to give me some music?

As mentioned above, the
Code:
speaker-test -c 6 -D surround51 -t wav
-Command shows me, that it is already working.
The subwoofer and all the other speakers get the signal correctly.(front-left,front-center....says the woman) but when I play a Song with mplayer, I only get this Stereo-Sound.
Bass is produced by the small speakers (subwoofer doesn't work at all). Volume-Knob isn't working. In "alsamixer" there is no Volume-Setting for the soundcard.

Can somebode give me at least one or two links to gather up the info I need? I have no idea where to start.

...or perhaps a little howto? ;-)

thx
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Thu Apr 28, 2011 9:24 pm    Post subject: Reply with quote

It wouldn't hurt to read the ALSA docs, boring as it might be.

What other software have you tried? speaker-test is probably surround-capable, so if individual programs have to be surround-capable, all speaker-test would do is tell you that IF your program is surround-capable, it should work.

The first thing I would do is try various music players, especially ones known to be surround-capable. I only work in stereo, so I don't have any links in mind.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
keenblade
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1087

PostPosted: Thu Apr 28, 2011 10:48 pm    Post subject: Re: USB Creative Sound Blaster X-Fi Surround 5.1 Pro Reply with quote

dr-peppa wrote:
Hello,

I've been trying to get my external USB-Soundcard which is a Creative Labs Sound Blaster X-Fi Surround 5.1 Pro (Model-No: SB1095) to work properly for days now.

When I enter:
Code:
speaker-test -c 6 -D surround51 -t wav

it works out of the boxl and I can hear 6 chanel sound on my 5.1 speakers. The basses are produced by the subwoofer, as it should be.

However, when I want to play music, I only get this normal Stereo sound and the basses comes from the small boxes.
The subwoofer doesn't do anything.


You need to create and tweak ~/.asoundrc file. I have the same x-fi card with you. Look at my signature, you will see and find my .asoundrc file at the second post of the link. Anyway it is not complete, but works fine and sounds great. Frequencies are adjusted well and speakers routed right. Hope that works for you, too. I use mpd + gmpc for music. So I need to use this config for ~/.mpdconf:
Code:

audio_output {
          type    "alsa" # maybe alsa
          device  "plug:ch51dup"
          name    "ch51dup" # maybe equal
        }
audio_output {
          type    "alsa" # maybe alsa"
          device  "plug:lowpass_21to21"
          name    "lowpass_21to21" # maybe equal
        }

If I choose "ch51dup" stereo music is converted to 5.1 sound. If I choose " lowpass_21to21" also frequencies are adjusted which makes sound great on my logitech sound system.
_________________
Anyway it's all the same at the end...
Need help to get it working: "x-fi surround 5.1"
Back to top
View user's profile Send private message
dr-peppa
n00b
n00b


Joined: 28 Apr 2011
Posts: 25

PostPosted: Fri Apr 29, 2011 8:30 am    Post subject: Reply with quote

Thank you for your help, but at the moment it doesn't work.

I have copied your ".asoundrc" and have configured the "mpd.conf" but when I want to play music, it says:
Code:
ERROR: problems opening audio device


What could that be? I'm missing the "surround51" plugin in the ".asoundrc", which made my speaker-test work.
Back to top
View user's profile Send private message
keenblade
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1087

PostPosted: Fri Apr 29, 2011 9:23 am    Post subject: Reply with quote

dr-peppa wrote:
... have copied your ".asoundrc" and have configured the "mpd.conf" but when I want to play music, it says:
Code:
ERROR: problems opening audio device


What gives the above ERROR? mpd from console as a user?
How do you play music? with gmpc like me?
Did you select "ch51dup" or "lowpass_21to21" within gmpc in servers menu?
_________________
Anyway it's all the same at the end...
Need help to get it working: "x-fi surround 5.1"
Back to top
View user's profile Send private message
dr-peppa
n00b
n00b


Joined: 28 Apr 2011
Posts: 25

PostPosted: Fri Apr 29, 2011 9:35 am    Post subject: Reply with quote

Quote:
with gmpc like me?


I've both installed gmpc and mpc, they are both issuing this error.




Quote:
Did you select "ch51dup" or "lowpass_21to21" within gmpc in servers menu?


Yes, they where both selected in that menu.
Back to top
View user's profile Send private message
keenblade
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1087

PostPosted: Fri Apr 29, 2011 9:38 am    Post subject: Reply with quote

dr-peppa, anyway I suggest you to start with simple ".asoundrc" and when you have it working you can tweak the file more. Mine is complicated even I don't understand fully.
Use instructions on Creative_USB_X-Fi_Surround_5.1. Use the .asoundrc provided there. It must work. Then we can tweak more. (like freq filtering which is like creative's crystallizer in their win driver.)
_________________
Anyway it's all the same at the end...
Need help to get it working: "x-fi surround 5.1"


Last edited by keenblade on Fri Apr 29, 2011 10:39 am; edited 1 time in total
Back to top
View user's profile Send private message
dr-peppa
n00b
n00b


Joined: 28 Apr 2011
Posts: 25

PostPosted: Fri Apr 29, 2011 10:31 am    Post subject: Reply with quote

Yes, it works. You are right. But there is still only Stereo Sound...
Back to top
View user's profile Send private message
dr-peppa
n00b
n00b


Joined: 28 Apr 2011
Posts: 25

PostPosted: Fri Apr 29, 2011 10:47 am    Post subject: Reply with quote

I did it that way. Now there is still stereo sound, but i have a "master"-volume bar in "alsamixer" which wasn't there before.
Unfortunately it's not possible to change the volume with this. there is no reaction in alsamixer when i press the arrow-down/up key.
volume knob is still not working.
Back to top
View user's profile Send private message
keenblade
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1087

PostPosted: Fri Apr 29, 2011 11:29 am    Post subject: Reply with quote

Use the .asoundrc belove and check with mplayer if it makes 5.1 sound like this:
Code:

mplayer -ao alsa:device=ch51dup somemp3file.mp3

.asoundrc
Code:

pcm.!default {
    type            plug
    slave.pcm       "softvol"
}

ctl.!default {
    type hw
    card S51
}

ctl.softvol
{
type hw
card S51
}

pcm.softvol {
type softvol
slave {
pcm "dmixed" #redirect the output to dmix (instead of "hw:0,0")
}
control {
name "Master" #override the PCM slider to set the softvol volume level globally
card S51
}
}

pcm.dmixed {
    type   asym
    playback.pcm {
           type   dmix
           ipc_key 5678293
       ipc_perm 0660
       ipc_gid audio
       slave {
                      channels 6
                pcm {
               format S16_LE
          rate 48000
          type hw
              card 1
              device 0
              subdevice 0
              }
          }
 
      }
   }

pcm.!surround20 {
   type plug
   slave.pcm "dmixed"
}

pcm.!surround40 {
   type plug
   slave.pcm "dmixed"
}

pcm.!surround51 {
   type plug
   slave.pcm "dmixed"
}

pcm.ch51dup {
        slave.pcm "dmixed"
        slave.channels 6
        type route
 
        # Front
        ttable.0.0 0.5
        ttable.1.1 0.5

        # Rear
        ttable.2.4 2
        ttable.3.5 2
        # Front left/right to rear
        ttable.0.4 1
        ttable.1.5 1

        # Center
        ttable.4.2 0.5
        # Front left/right to center
        ttable.0.2 0.5
        ttable.1.2 0.5
 
        # LFE
        ttable.5.3 1
        # Front to LFE
        ttable.0.3 0.5
        ttable.1.3 0.5
}

pcm.lowpass_21to21 {
   type ladspa
   slave.pcm upmix_21to51
   # Set the path to ladspa, to fix this error:
   # Playback open error: -2,No such file or directory
   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 1052  # High-pass filter front left
         policy none
         input.bindings.0 "Input";
         output.bindings.0 "Output";
         input {
            controls [ 200 ]
         }
      }

      2 {
         id 1052  # High-pass filter front right
         policy none
         input.bindings.1 "Input";
         output.bindings.1 "Output";
         input {
            controls [ 200 ]
         }
      }

      3 {
         id 1672  # Low-pass filter.
         policy none
         input.bindings.2 "Input";
         output.bindings.2 "Output";
         input {
            controls [ 300 2 ]
         }
      }

   }
}


# speaker-test -D upmix_20to51 -c 2 -t wav
pcm.upmix_20to51 {
   type plug
   slave.pcm "lowpass_21to21"
   slave.channels 3
   ttable {
      0.0     0.5       # left channel
      1.1     0.5       # right channel
      0.3     2     # mix left and right ...
      1.3     2     # ... channel for subwoofer
   }
}

# Debugging:  speaker-test -D upmix_21to51 -c 3 -t wav
pcm.upmix_21to51 {
   type plug
   slave.pcm "dmixed"
#   slave.pcm "softvol"
   slave.channels 6
   ttable {
      0.0     1       # front left
      1.1     1       # front right
      0.4     2       # rear left
      1.5     2       # rear right

      # Front left/right to center.
      # Imbalanced because is to the left of the monitor!
      # Would normally be 0.5 each.
      0.2     0.5
      1.2     0.5

      # Subwoofer, more powerful to compensate for bass-removal from other speakers.
      2.3     2
    }
}


_________________
Anyway it's all the same at the end...
Need help to get it working: "x-fi surround 5.1"
Back to top
View user's profile Send private message
dr-peppa
n00b
n00b


Joined: 28 Apr 2011
Posts: 25

PostPosted: Fri Apr 29, 2011 11:38 am    Post subject: Reply with quote

This is the response:
Code:

[AO_ALSA] Kann Startparameter nicht ermitteln: Invalid argument
Konnte Audiotreiber 'alsa:device=ch51dup' nicht initialisieren
Kann Audiotreiber/Soundkarte nicht öffnen/initialisieren -> kein Ton
Audio: kein Ton!
Video: kein Video



i've just seen, that i cannot even open alsamixer as a normal user anymore.
Code:

 ~ $ alsamixer
cannot open mixer: No such device
Back to top
View user's profile Send private message
keenblade
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1087

PostPosted: Fri Apr 29, 2011 11:54 am    Post subject: Reply with quote

what does this gives?
Code:

aplay -L

I think you have to change "card 1" to "card 0" in pcm.dmixed part of .soundrc, as your alsa-info indicates it is recognized as first card.
And probably "card S51" maybe is not recognized with your alsa driver in kernel. So maybe we have to change that to "card 0", too.
Anyway try "card 0" everywhere and let's see what will happen.
_________________
Anyway it's all the same at the end...
Need help to get it working: "x-fi surround 5.1"
Back to top
View user's profile Send private message
dr-peppa
n00b
n00b


Joined: 28 Apr 2011
Posts: 25

PostPosted: Fri Apr 29, 2011 12:15 pm    Post subject: Reply with quote

[quote="keenblade"]what does this gives?
Code:

aplay -L

Code:

 ~ # aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
front:CARD=Pro,DEV=0
    SB X-Fi Surround 5.1 Pro, USB Audio
    Front speakers
surround40:CARD=Pro,DEV=0
    SB X-Fi Surround 5.1 Pro, USB Audio
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Pro,DEV=0
    SB X-Fi Surround 5.1 Pro, USB Audio
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Pro,DEV=0
    SB X-Fi Surround 5.1 Pro, USB Audio
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Pro,DEV=0
    SB X-Fi Surround 5.1 Pro, USB Audio
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Pro,DEV=0
    SB X-Fi Surround 5.1 Pro, USB Audio
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Pro,DEV=0
    SB X-Fi Surround 5.1 Pro, USB Audio
    IEC958 (S/PDIF) Digital Audio Output
front:CARD=Intel,DEV=0
    HDA Intel, CONEXANT Analog
    Front speakers
surround40:CARD=Intel,DEV=0
    HDA Intel, CONEXANT Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
    HDA Intel, CONEXANT Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
    HDA Intel, CONEXANT Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
    HDA Intel, CONEXANT Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
    HDA Intel, CONEXANT Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers

Back to top
View user's profile Send private message
dr-peppa
n00b
n00b


Joined: 28 Apr 2011
Posts: 25

PostPosted: Fri Apr 29, 2011 12:32 pm    Post subject: Reply with quote

I have just changed everything to "card 0". -> no difference.
i wonder, why the sound comes from the on board soundcard when i run mplayer as normal user and
when i run it as root, the sound comes from the external usb x-fi card.
Back to top
View user's profile Send private message
keenblade
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1087

PostPosted: Fri Apr 29, 2011 12:42 pm    Post subject: Reply with quote

dr-peppa wrote:
I have just changed everything to "card 0". -> no difference.
i wonder, why the sound comes from the on board soundcard when i run mplayer as normal user and
when i run it as root, the sound comes from the external usb x-fi card.

You use zen-kernel, I am not sure if they have the latest alsa-driver. I needed to replace driver files from 2.6.39 kernel for my kernel-2.6.37-zen0. So aplay list my card as "S51" but yours is listed as "Pro".
Anyway when using with your root there is no .asoundrc in your /root dir, so mplayer chooses your x-fi. But you define .asoundrc for your normal user, and mplayer uses it and chooses onboard card. Maybe card 0 is your onboard card and card 1 is your x-fi card.
_________________
Anyway it's all the same at the end...
Need help to get it working: "x-fi surround 5.1"
Back to top
View user's profile Send private message
dr-peppa
n00b
n00b


Joined: 28 Apr 2011
Posts: 25

PostPosted: Fri Apr 29, 2011 12:46 pm    Post subject: Reply with quote

Quote:

You use zen-kernel, I am not sure if they have the latest alsa-driver. I needed to replace driver files from 2.6.39 kernel for my kernel-2.6.37-zen0. So aplay list my card as "S51" but yours is listed as "Pro".
Anyway when using with your root there is no .asoundrc in your /root dir, so mplayer chooses your x-fi. But you define .asoundrc for your normal user, and mplayer uses it and chooses onboard card. Maybe card 0 is your onboard card and card 1 is your x-fi card.


I think the difference is that you are using the "X-Fi Surround 5.1" and I am using the " X-Fi Surround 5.1 Pro" My Model-Nr is: SB 1095 and yours could be SB 1090, isn't it?

Yes, I'll try that card 1
Back to top
View user's profile Send private message
keenblade
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1087

PostPosted: Fri Apr 29, 2011 12:53 pm    Post subject: Reply with quote

dr-peppa wrote:

I think the difference is that you are using the "X-Fi Surround 5.1" and I am using the " X-Fi Surround 5.1 Pro" My Model-Nr is: SB 1095 and yours could be SB 1090, isn't it?

Yes, you are right, I checked and mine is "SB 1090"
I wonder what is the difference?
_________________
Anyway it's all the same at the end...
Need help to get it working: "x-fi surround 5.1"
Back to top
View user's profile Send private message
dr-peppa
n00b
n00b


Joined: 28 Apr 2011
Posts: 25

PostPosted: Fri Apr 29, 2011 12:56 pm    Post subject: Reply with quote

It works now!!!! with
Code:

mplayer -ao alsa:device=ch51dup test.mp3

...or, at least, the subwoofer does his work and the other speakers are ok, too.

But now, the Master-Volume-Bar in alsamixer, has no effect on the volume of the soundcard
and the Volume-Knob on the device is still not working.

Anyway, thank you very much by now. You did an amazing job!!!
I've got to go to work now. I'll be back this evening so don't mind if I don't reply.

THX

edit: before, it didn't work, because I forgot to change one "card 1" to "card 0". your first guess was correct, the x-fi is "card 0"

edit2: is there a way to use the "christallizer" or other synthesizer-settings, as it's possible in windows?
Back to top
View user's profile Send private message
keenblade
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1087

PostPosted: Fri Apr 29, 2011 1:21 pm    Post subject: Reply with quote

dr-peppa wrote:
It works now!!!! with
Code:

mplayer -ao alsa:device=ch51dup test.mp3

...or, at least, the subwoofer does his work and the other speakers are ok, too.

But now, the Master-Volume-Bar in alsamixer, has no effect on the volume of the soundcard
and the Volume-Knob on the device is still not working.

alsamixer part is easy, but volum knob not. First change the
pcm "dmixed" with pcm "ch51dup" in your pcm.softvol part of .asoundrc.
Then you'll see that alsamixer is able to change volume.
When it comes the volume knob and remote control, (although mine support remote control, I don't have one. So it seems that is the difference between sb1090 and sb10959) you have to use lirc. Take a look at the link I gave before: Creative_USB_X-Fi_Surround_5.1.
Quote:

edit2: is there a way to use the "christallizer" or other synthesizer-settings, as it's possible in windows?

christallizer unfortunately is not a hardware but a software part in creative's windows driver. So there is no plus for win users. We can get the similar thing with frequency filtering. It is also enabled in your .asoundrc. But you are not using right now. Since your config now works, restart mpd from your normal user from console:
Code:

mpd --kill
mpd

Now gmpc must be able to play with freq filtered sound if you select only "lowpass_21to21". If you select both "ch51dup" and "lowpass_21to21" you will hear unfiltered sounds, too and it won't work good. Just select one, preferable "lowpass_21to21" for "christallizer" like clean sound. You will notice "ch51dup" is sounds muddy.
Anyway I haven't find a way to use "lowpass_21to21" globally, only gmpc uses it now. That's work of another try.
_________________
Anyway it's all the same at the end...
Need help to get it working: "x-fi surround 5.1"
Back to top
View user's profile Send private message
dr-peppa
n00b
n00b


Joined: 28 Apr 2011
Posts: 25

PostPosted: Fri Apr 29, 2011 2:50 pm    Post subject: Reply with quote

I've just tried to use only "lowpass_21to21" in gmpc but it doesn't work.
When I turn "ch51dup" off, the sound stops. With only "lowpass_21to21" I hear nothing at all and
I get a notification:
Code:

MPD Reported the following error: 'problems opening audio device'


The .mpd/log:
Code:

Apr 29 16:52 : output: Failed to open "lowpass_21to21" [alsa]: Failed to open ALSA device "plug:lowpass_21to21": No such file or directory

[/code]
Back to top
View user's profile Send private message
dr-peppa
n00b
n00b


Joined: 28 Apr 2011
Posts: 25

PostPosted: Sun Oct 02, 2011 7:42 pm    Post subject: Reply with quote

Hey there,

does anyone know, how to switch on "ch51dup" or "lowpass_21to21" on in gmpc?

It's working quite well in smplayer, but not at all in mpd + gmpc...

My .asoundrc:
Code:


pcm.!defau
    type            plug
    slave.pcm       "softvol"
}

ctl.!default {
    type hw
    card 0
}

ctl.softvol
{
type hw
card 0
}

pcm.softvol {
type softvol
slave {
pcm "ch51dup" #redirect the output to dmix (instead of "hw:0,0")
}
control {
name "Master" #override the PCM slider to set the softvol volume level globally
card 0
}
}

pcm.dmixed {
    type   asym
    playback.pcm {
           type   dmix
           ipc_key 5678293
       ipc_perm 0660
       ipc_gid audio
       slave {
                      channels 6
                pcm {
               format S16_LE
          rate 48000
          type hw
              card 0
              device 0
              subdevice 0
              }
          }
 
      }
   }

pcm.!surround20 {
   type plug
   slave.pcm "dmixed"
}

pcm.!surround40 {
   type plug
   slave.pcm "dmixed"
}

pcm.!surround51 {
   type plug
   slave.pcm "dmixed"
}

pcm.ch51dup {

        sla
        slave.channels 6
        type route
 
        # Front
        ttable.0.0 0.5
        ttable.1.1 0.5

        # Rear
        ttable.2.4 2
        ttable.3.5 2
        # Front left/right to rear
        ttable.0.4 1
        ttable.1.5 1

        # Center
        ttable.4.2 0.5
        # Front left/right to center
        ttable.0.2 0.5
        ttable.1.2 0.5
 
        # LFE
        ttable.5.3 1
        # Front to LFE
        ttable.0.3 0.5
        ttable.1.3 0.5
}

pcm.lowpass_21to21 {
   type ladspa
   slave.pcm upmix_21to51
   # Set the path to ladspa, to fix this error:
   # Playback open error: -2,No such file or directory
   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 1052  # High-pass filter front left
         policy none
         input.bindings.0 "Input";
         output.bindings.0 "Output";
         input {
            controls [ 200 ]
         }
      }
      2 {
         id 1052  # High-pass filter front right
         policy none
         input.bindings.1 "Input";
         output.bindings.1 "Output";
         input {
            controls [ 200 ]
         }
      }

      3 {
         id 1672  # Low-pass filter.
         policy none
         input.bindings.2 "Input";
         output.bindings.2 "Output";
         input {
            controls [ 300 2 ]
         }
      }

   }
}


# speaker-test -D upmix_20to51 -c 2 -t wav
pcm.upmix_20to51 {
   type plug
   slave.pcm "lowpass_21to21"
   slave.channels 3
   ttable {
      0.0     0.5       # left channel
      1.1     0.5       # right channel
      0.3     2     # mix left and right ...
      1.3     2     # ... channel for subwoofer
   }
}

# Debugging:  speaker-test -D upmix_21to51 -c 3 -t wav
pcm.upmix_21to51 {
   type plug
   slave.pcm "dmixed"
#   slave.pcm "softvol"
   slave.channels 6
   ttable {
      0.0     1       # front left
      1.1     1       # front right
      0.4     2       # rear left
      1.5     2       # rear right

      # Front left/right to center.
      # Imbalanced because is to the left of the monitor!
      # Would normally be 0.5 each.
      0.2     0.5
      1.2     0.5

      # Subwoofer, more powerful to compensate for bass-removal from other speakers.
      2.3     2
    }
}


My output-part of mpd.conf
Code:

audio_output {
        type    "alsa" # maybe alsa
        device  "plug:ch51dup"
        name    "ch51dup" # maybe equal
       }
audio_output {
        type    "alsa" # maybe alsa"
        device  "plug:lowpass_21to21"
        name    "lowpass_21to21" # maybe equal
       }


Output of aplay -L
Code:


null
    Discard all samples (playback) or generate zero samples (capture)
front:CARD=Pro,DEV=0
    SB X-Fi Surround 5.1 Pro, USB Audio
    Front speakers
surround41:CARD=Pro,DEV=0
    SB X-Fi Surround 5.1 Pro, USB Audio
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Pro,DEV=0
    SB X-Fi Surround 5.1 Pro, USB Audio
    5.0 Surround output to Front, Center and Rear speakers
surround71:CARD=Pro,DEV=0
    SB X-Fi Surround 5.1 Pro, USB Audio
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Pro,DEV=0
    SB X-Fi Surround 5.1 Pro, USB Audio
    IEC958 (S/PDIF) Digital Audio Output
front:CARD=Intel,DEV=0
    HDA Intel, CONEXANT Analog
    Front speakers
surround41:CARD=Intel,DEV=0
    HDA Intel, CONEXANT Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
    HDA Intel, CONEXANT Analog
    5.0 Surround output to Front, Center and Rear speakers
surround71:CARD=Intel,DEV=0
    HDA Intel, CONEXANT Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    HDMI Audio Output


Thanks in advance!

dp
Back to top
View user's profile Send private message
dr-peppa
n00b
n00b


Joined: 28 Apr 2011
Posts: 25

PostPosted: Sun Oct 02, 2011 8:13 pm    Post subject: Reply with quote

AHHH, sorry. My Error from /var/lib/mpd/log:

Code:


Oct 02 22:12 : mixer: Failed to read mixer for 'ch51dup': no such mixer control: PCM
Oct 02 22:12 : mixer: Failed to read mixer for 'lowpass_21to21': no such mixer control: PCM
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM ch51dup
Oct 02 22:12 : output: Failed to open "ch51dup" [alsa]: Failed to open ALSA device "plug:ch51dup": No such file or directory
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM lowpass_21to21
Oct 02 22:12 : output: Failed to open "lowpass_21to21" [alsa]: Failed to open ALSA device "plug:lowpass_21to21": No such file or directory



Last edited by dr-peppa on Mon Oct 03, 2011 1:12 pm; edited 1 time in total
Back to top
View user's profile Send private message
dr-peppa
n00b
n00b


Joined: 28 Apr 2011
Posts: 25

PostPosted: Mon Oct 03, 2011 1:06 pm    Post subject: Reply with quote

nobody?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum