LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 07-18-2009, 01:20 AM   #1
damien_d
LQ Newbie
 
Registered: Dec 2008
Posts: 17

Rep: Reputation: 0
Amarok doesn't play out of SPDIF (but Totem/MythTV does)


Dear all,

Firstly, I apologise for the cross-posting: I originally asked this at ubuntuforums.org, but it's been a while without a reply - see http://ubuntuforums.org/showthread.php?t=1212472.

I have recently upgraded my motherboard and chip, but I have been having problems trying to get SPDIF (optical audio) fully work.

I am using Ubuntu (Gnome) 9.04 Jaunty. My motherboard is an Asus M4N78 Pro.

I have gotten most of the problems sorted out - see http://ubuntuforums.org/showthread.php?t=1201139 for the details. In short, I had to upgrade to the latest asla snapshot to get sound at all.

However, one persistent problem I have is getting Amarok 2 to play music out of SPDIF. It can play out of ordinary speakers plugged into the light green jack, but will not play anything out of Optical Audio.

I can play audio on SPDIF out of Totem, MythTV and Rhythmbox without problems. To do so, I needed to explicitly go to System -> Preference -> Sound and change from "Autodetect" to "VT1708S Digital"

So far I have been trying to get my head around the following file that, from searching around a little, might help:

Code:
.kde/share/config/phonondevicesrc
Deleting it makes no difference - it regenerates itself. My guess that Phonon (as opposed to whatever gnome uses) is not pushing sound out the correct port. How can I set this up to make it work?

My current setup is:
Code:
damien@mediabox:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: VT1708S Analog [VT1708S Analog]
  Subdevices: 2/2
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
card 0: NVidia [HDA NVidia], device 1: VT1708S Digital [VT1708S Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
And:
Code:
damien@mediabox:~$ sudo lspci -vv

<snip>

00:07.0 Audio device: nVidia Corporation MCP78S [GeForce 8200] High Definition Audio (rev a1)
	Subsystem: ASUSTeK Computer Inc. Device 836c
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0 (500ns min, 1250ns max)
	Interrupt: pin A routed to IRQ 21
	Region 0: Memory at f6f78000 (32-bit, non-prefetchable) [size=16K]
	Capabilities: [44] Power Management version 2
		Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot+,D3cold+)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-
	Kernel driver in use: HDA Intel
	Kernel modules: snd-hda-intel

<snip>
And the phonon configuration file:
Code:
damien@mediabox:~$ cat .kde/share/config/phonondevicesrc
[AudioDevice_HDA NVidia, NVIDIA HDMI\nHDMI Audio Output_playback]
cardName=HDA NVidia, NVIDIA HDMI (HDMI Audio Output)
deleted=false
deviceNumber=-1
hotpluggable=false
iconName=audio-card
index=-5
initialPreference=30
isAdvanced=false

[AudioDevice_HDA NVidia, VT1708S Digital\nIEC958 (S/PDIF) Digital Audio Output_playback]
cardName=HDA NVidia, VT1708S Digital (IEC958 (S/PDIF) Digital Audio Output)
deleted=false
deviceNumber=-1
hotpluggable=false
iconName=audio-card
index=-4
initialPreference=1
isAdvanced=true

[AudioDevice_pci:10de:0774:1043:836c:0:capture]
cardName=HDA NVidia (VT1708S Analog)
deleted=false
deviceNumber=0
hotpluggable=false
iconName=audio-card
index=-7
initialPreference=36
isAdvanced=false

[AudioDevice_pci:10de:0774:1043:836c:0:playback]
cardName=HDA NVidia (VT1708S Analog)
deleted=false
deviceNumber=0
hotpluggable=false
iconName=audio-card
index=-1
initialPreference=36
isAdvanced=false

[AudioDevice_pci:10de:0774:1043:836c:1:playback]
cardName=HDA NVidia (VT1708S Digital)
deleted=false
deviceNumber=1
hotpluggable=false
iconName=audio-card
index=-2
initialPreference=35
isAdvanced=false

[AudioDevice_pci:10de:0774:1043:836c:3:playback]
cardName=HDA NVidia (NVIDIA HDMI)
deleted=false
deviceNumber=3
hotpluggable=false
iconName=audio-card
index=-3
initialPreference=33
isAdvanced=true

[AudioDevice_unix:/home/damien/.pulse/1ed2189ee9a6e722a9ff0d0047b82b8a:runtime/native\nalsa_output.pci_10de_774_sound_card_0_alsa_playback_0playback]
cardName=
deleted=false
deviceNumber=-3
hotpluggable=true
iconName=audio-backend-pulseaudio
index=-6
initialPreference=0
isAdvanced=true

[AudioDevice_unix:/home/damien/.pulse/1ed2189ee9a6e722a9ff0d0047b82b8a:runtime/native:alsa_output.pci_10de_774_sound_card_0_alsa_playback_0.monitorcapture]
cardName=Monitor of HDA NVidia - VT1708S Analog
deleted=false
deviceNumber=-4
hotpluggable=true
iconName=audio-backend-pulseaudio
index=-8
initialPreference=0
isAdvanced=true

[Globals]
nextIndex=9

If there's further information that will help, I will gladly supply it.


-- Damien

Last edited by damien_d; 07-18-2009 at 01:26 AM. Reason: Added Phonon file
 
Old 07-18-2009, 07:38 AM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Amarok has the same kind of device selection section as do those other applications.

Settings > Configure Amarok > Engine

On the other hand the recent problems that Ubuntu has had with audio coupled with trying to run a KDE application under Gnome might doom your quest.
 
Old 07-18-2009, 09:52 PM   #3
damien_d
LQ Newbie
 
Registered: Dec 2008
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by stress_junkie View Post
Settings > Configure Amarok > Engine
Unfortunately not. Amarok 2 only offers the following under "Settings -> Configure Amarok"
* General
* Collection
* Internet Services
* Playback
* On Screen Display

None of these offer the facility to alter the playback engine. I remember the tab you were thinking of in Amarok 1, but it seems to no longer exist.

"Help -> About" yields:

Code:
Amarok
Version 2.0.2
Using KDE 4.2.2 (KDE 4.2.2)

-- Damien
 
  


Reply

Tags
alsa, amarok, phonon, spdif


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
maybe permissions problem? sound works from mythtv (spdif) but can't get cdplay... stardotstar Linux - Software 2 04-14-2008 12:09 AM
HowTo play .avi 5.1 Dolby sound encode AC3 pass through spdif Frank64 Linux - Software 6 02-17-2008 08:58 PM
Totem usefull at all? Amarok MP3 on OpenSuse 10.3 Gnome based? milasch Suse/Novell 16 11-30-2007 05:10 PM
xine,amarok ,totem and helix player plugins?? GEJOE DANIEL Linux - Software 1 01-23-2006 01:21 PM
SuSE 10 amarok xine kaffeine totem help GhostBox Suse/Novell 2 11-06-2005 07:07 PM


All times are GMT -5. The time now is 10:38 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