Siduction Forum > Hardware - Support

How to force a sound output

(1/1)

kokurya:
Hi there!
I recently changed my sound setup on my siduction multimedia pc.
Until now it was sending sound and video via hdmi to the TV which worked like a charm.
As I have now a audio set-up which supports S/PDIF i hooked up my Tv via HDMI and my speaker via S/PDIF, which also works.
But with one amazing annoying problem:
* Everytime I start my TV the sound is set back to hdmi-output
* Everytime I stop a video the sound is set back to hdmi-output alsoSo how can i force the audiosystem to always stick to the S/PDIF output?

--- Code: ---lspci |grep -i audio
00:1b.0 Audio device: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series High Definition Audio Controller (rev 21)

--- End code ---

--- Code: ---aplay -l
**** Liste der Hardware-Geräte (PLAYBACK) ****
Karte 0: PCH [HDA Intel PCH], Gerät 0: ALC892 Analog [ALC892 Analog]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 0: PCH [HDA Intel PCH], Gerät 1: ALC892 Digital [ALC892 Digital]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 0: PCH [HDA Intel PCH], Gerät 3: HDMI 0 [HDMI 0]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 0: PCH [HDA Intel PCH], Gerät 7: HDMI 1 [HDMI 1]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 0: PCH [HDA Intel PCH], Gerät 8: HDMI 2 [HDMI 2]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0

--- End code ---

correct setup:

--- Code: ---pactl list short sinks
8       alsa_output.pci-0000_00_1b.0.iec958-stereo      module-alsa-card.c      s16le 2ch 44100Hz       SUSPENDED
--- End code ---


automatic fallback when TV is turned on again or after a video was stopped:

--- Code: ---pactl list short sinks                                             
6       alsa_output.pci-0000_00_1b.0.hdmi-stereo-extra2 module-alsa-card.c      s16le 2ch 44100Hz       RUNNING
--- End code ---

piper:
Sorry I can't help on this matter, maybe another member will chime in, in the mean time you can maybe search these forums, they may/may not help

Sorry, it's all I got :(

https://www.avsforum.com/forum/index.php
https://www.avforums.com/forums/

They are fantastic sites for htpc and more

kokurya:
Thx & no problem.

I'm pretty sure that i oversee something really simple and stupid...

*edit*
As I don't know which setting did it exactly... Here my "workaround" for now:
I uncommented following lines in  "/etc/pulse/default.pa"

--- Code: ---### Should be after module-*-restore but before module-*-detect
load-module module-switch-on-port-available
--- End code ---

As far as i underestood this is some kind of autoconnect thingy.


--- Code: ---### Automatically restore the default sink/source when changed by the user
### during runtime
### NOTE: This should be loaded as early as possible so that subsequent modules
### that look up the default sink/source get the right value
load-module module-default-device-restore
--- End code ---

Overrides Users wishes...

And I did set a default sink:


--- Code: ---### Make some devices default
set-default-sink output 4
#set-default-source input
--- End code ---


So far it seems to work and maybe this helps some others if they run into the same problem.

Navigation

[0] Message Index

Go to full version