LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 01-15-2011, 01:15 PM   #1
Vookimedlo
Member
 
Registered: Jul 2004
Location: Czech Republic - Roudnice nad Labem
Distribution: Debian
Posts: 253

Rep: Reputation: 32
Kde 4.4.5: Use custom Alsa device in Phonon


Hi,

I'd like to ask you how to configure Phonon in Kde 4.4.5 to use custom Alsa device specified in my ~/.asoundrc.


Code:
pcm.duplicate {
type route
slave.pcm surround51
slave.channels 6
ttable.0.0 1
ttable.1.1 1
ttable.0.2 1
ttable.1.3 1
ttable.0.4 0.5
ttable.1.4 0.5
ttable.0.5 0.5
ttable.1.5 0.5

  hint {
    show on
    description "Duplicate"
  }

}
Device is working correctly for mplayer, XMMS, .... However, I'd like to use this device in Amarok 2.x which unlike Amarok 1.4 uses only Phonon.


Thanks a lot.
 
Old 01-27-2011, 04:59 PM   #2
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 871
Blog Entries: 9

Rep: Reputation: 103Reputation: 103
Hi, which phonon backend are you using? Did you enable "show advanced devices"?
Under 4.4 I had very good experience with ALSA "hints" and the xine backend.

Serafean
 
Old 01-29-2011, 01:28 PM   #3
Vookimedlo
Member
 
Registered: Jul 2004
Location: Czech Republic - Roudnice nad Labem
Distribution: Debian
Posts: 253

Original Poster
Rep: Reputation: 32
My backend is xine, and I have enabled "show advanced devices".
However, I can only choose "SB Live! EMU10k1 Analog stereo" device.

Could you show me your asoundrc file? Maybe I have wrong "hint" section.

Thanks.
 
Old 01-29-2011, 03:21 PM   #4
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 871
Blog Entries: 9

Rep: Reputation: 103Reputation: 103
Actually, what I do is create the device systemwide in /etc/asound.conf
Code:
pcm.dmixer{
        type dmix
        ipc_key 1024
        slave{  
                pcm "optical"
                period_size 2048
                buffer_size 8192
                rate 44100
        }
        ipc_key_add_uid false
        ipc_perm 0666
        bindings{
                0 0
                1 1
        }
}
and then put the hint into my ~/.asoundrc
Code:
pcm.opticaldmix{
        type plug
        slave.pcm "dmixer"
        hint{   show on
                description "Dmix plugin for optical"
        }
}
I think that you need to have the hint in the config of a plug device, just my $0.02 (btw, just checked and it alsoo works with the VLC backend)

Last edited by serafean; 01-29-2011 at 03:24 PM.
 
Old 01-30-2011, 04:14 PM   #5
Vookimedlo
Member
 
Registered: Jul 2004
Location: Czech Republic - Roudnice nad Labem
Distribution: Debian
Posts: 253

Original Poster
Rep: Reputation: 32
Still no luck even I use hinting in PCM having "plug" type.

BTW: My original content of .asoundrc works flawlessly with mplayer and audacious. But KDE is a devil.

What's you version of KDE, Phonon and Alsa?
 
Old 01-30-2011, 04:25 PM   #6
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 871
Blog Entries: 9

Rep: Reputation: 103Reputation: 103
Right now, I'm using KDE-4.6, phonon 4.4.4 with the VLC backend. But up to a month ago, I was using KDE-4.4, phonon 4.4.3 with the xine backend, and it was also working. Yes, I've been there, with CLI apps getting the device correctly, and kde not. At the beginning I worked around it by making the device I wanted phonon to use the pcm.!default
Dumb question : you do log out an back in after every change to .asoundrc? I know that made me loose some hair.

Serafean

Edit : attaching my working asound.rc and my system asound.conf
Attached Files
File Type: txt asoundrc.txt (593 Bytes, 30 views)
File Type: txt asound.txt (309 Bytes, 16 views)

Last edited by serafean; 01-30-2011 at 04:30 PM.
 
Old 01-30-2011, 04:39 PM   #7
Vookimedlo
Member
 
Registered: Jul 2004
Location: Czech Republic - Roudnice nad Labem
Distribution: Debian
Posts: 253

Original Poster
Rep: Reputation: 32
Got it. Now it works.

It was pulseaudio which suppressed my devices even no pulseaudio daemon was running. I removed whole 'pa' and now I see all SB Live HW Devices including my self defined PCMs.


Thank you for your help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Phonon includes not found while building KDE 4.4 2handband Linux - Software 5 02-28-2010 11:10 PM
KDE, Phonon, and CMake ryerke Slackware 11 11-18-2009 08:42 PM
LXer: Phonon: Where QT and KDE meet LXer Syndicated Linux News 0 12-28-2007 10:20 AM
LXer: Phonon and the future of KDE multimedia LXer Syndicated Linux News 0 05-09-2006 02:54 PM
LXer: Phonon: Multimedia in KDE 4 LXer Syndicated Linux News 0 04-28-2006 08:33 AM


All times are GMT -5. The time now is 10:51 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration