impossible configuration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bonjour,

I try to permanently configure the sound on my computer but it always
fails.

By default, when I log-in the config is set to iec958-stereo-output
which does not work and I have to manually change to
output:analog-stereo+input:analog-stereo

I firstly list my cards using pacmd list-cards: (I quote only the card I
want to configure)
--------------------------------------------------------------------------->
    index: 1
	name: <alsa_card.pci-0000_00_1b.0>
	driver: <module-alsa-card.c>
	owner module: 7
	properties:
		alsa.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xf7430000 irq 35"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1b.0"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "1e20"
		device.product.name = "7 Series/C216 Chipset Family High Definition
Audio Controller"
		device.form_factor = "internal"
		device.string = "0"
		device.description = "Audio interne"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	profiles:
		input:analog-stereo: Entrée Stéréo analogique (priority 65, available: no)
		output:analog-stereo: Sortie Stéréo analogique (priority 6500,
available: no)
		*output:analog-stereo+input:analog-stereo: Duplex stéréo analogique
(priority 6565, available: no)*
		output:analog-surround-21: Sortie Surround analogique 2.1 (priority
1300, available: no)
		output:analog-surround-21+input:analog-stereo: Sortie Surround
analogique 2.1 + Entrée Stéréo analogique (priority 1365, available: no)
		output:analog-surround-40: Sortie Surround analogique 4.0 (priority
1200, available: no)
		output:analog-surround-40+input:analog-stereo: Sortie Surround
analogique 4.0 + Entrée Stéréo analogique (priority 1265, available: no)
		output:analog-surround-41: Sortie Surround analogique 4.1 (priority
1300, available: no)
		output:analog-surround-41+input:analog-stereo: Sortie Surround
analogique 4.1 + Entrée Stéréo analogique (priority 1365, available: no)
		output:analog-surround-50: Sortie Surround analogique 5.0 (priority
1200, available: no)
		output:analog-surround-50+input:analog-stereo: Sortie Surround
analogique 5.0 + Entrée Stéréo analogique (priority 1265, available: no)
		output:analog-surround-51: Sortie Surround analogique 5.1 (priority
1300, available: no)
		output:analog-surround-51+input:analog-stereo: Sortie Surround
analogique 5.1 + Entrée Stéréo analogique (priority 1365, available: no)
		output:analog-surround-71: Sortie Analog Surround 7.1 (priority 1200,
available: no)
		output:analog-surround-71+input:analog-stereo: Sortie Analog Surround
7.1 + Entrée Stéréo analogique (priority 1265, available: no)
		output:iec958-stereo: Sortie Stéréo numérique (IEC958) (priority 5500,
available: unknown)
		output:iec958-stereo+input:analog-stereo: Sortie Stéréo numérique
(IEC958) + Entrée Stéréo analogique (priority 5565, available: unknown)
		off: Ã?teint (priority 0, available: unknown)
	active profile: <output:iec958-stereo+input:analog-stereo>
	sinks:
		alsa_output.pci-0000_00_1b.0.iec958-stereo/#0: Audio interne Stéréo
numérique (IEC958)
	sources:
		alsa_output.pci-0000_00_1b.0.iec958-stereo.monitor/#0: Monitor of
Audio interne Stéréo numérique (IEC958)
		alsa_input.pci-0000_00_1b.0.analog-stereo/#1: Audio interne Stéréo
analogique
	ports:
		analog-input-front-mic: Microphone avant (priority 8500, latency
offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-input-rear-mic: Microphone arrière (priority 8200, latency
offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-input-linein: Entrée ligne (priority 8100, latency offset 0
usec, available: no)
			properties:
				
		analog-output-lineout: Entrée ligne (priority 9900, latency offset 0
usec, available: no)
			properties:
				
		analog-output-headphones: Casque audio (priority 9000, latency offset
0 usec, available: no)
			properties:
				device.icon_name = "audio-headphones"
		iec958-stereo-output: Sortie numérique (S/PDIF) (priority 0, latency
offset 0 usec, available: unknown)
			properties:
<------------------------------------------------------------------------------------------

The profile I am interested in is: output:analog-stereo+input:analog-stereo

So I type:

pacmd set-card-profile 1 output:analog-stereo+input:analog-stereo

And I get what I want, sound is working.

Then I put this command in my ~/.confg/pulse/default.pa:

echo 'set-card-profile 2 output:analog-stereo+input:analog-stereo' >
.config/pulse/default.pa

And this does not work: in the log I get this strange answer:

mars 21 18:15:11 dipankar pulseaudio[8071]: No card found by this name
or index.
mars 21 18:15:11 dipankar pulseaudio[8071]: Ã?chec lors de
l'initialisation du démon

*No card found by this name or index* but pacmd found this card with
that index!!!!!!

How to correct this system misconfigation? The best would be that at
boot time the right card would be detected: ie card 0 device 0 as listed
by aplay -l:

**** Liste des Périphériques Matériels PLAYBACK ****
carte 0: PCH [HDA Intel PCH], périphérique 0: ALC892 Analog [ALC892 Analog]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
carte 0: PCH [HDA Intel PCH], périphérique 1: ALC892 Digital [ALC892
Digital]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
carte 1: NVidia [HDA NVidia], périphérique 3: HDMI 0 [HDMI 0]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
carte 1: NVidia [HDA NVidia], périphérique 7: HDMI 1 [HDMI 1]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
carte 1: NVidia [HDA NVidia], périphérique 8: HDMI 2 [HDMI 2]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0


Thank you.

-- 
François Patte
UFR de mathématiques et informatique
Laboratoire CNRS MAP5, UMR 8145
Université Paris Descartes
45, rue des Saints Pères
F-75270 Paris Cedex 06
Tél. +33 (0)6 7892 5822
http://www.math-info.univ-paris5.fr/~patte


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 244 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20180321/c4ce755d/attachment.sig>


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux