You are not logged in.

#1 2015-03-29 15:15:01

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 624

Vid and pid are ingored by the kernel, pulseaudio and alsa config

Hello.

I've found something strange in my journalctl and that's why i posted it here, i would like to ask for help. I checked vid and pid for my Creative XFI pci sound card and the same thing for my nvidia hdmi sound chip from nvidia GTX 660 graphic cards. I put those vid and pid in /etc/modprobe.d/alsa-base.config but when i checked logs from journalctl i see that these pid and vid are being ingnored.

This is my /etc/modprobe.d/alsa-base.config:

#/etc/modprobe.d/alsa-base.conf

#options snd_ctxfi index=0 model=auto vid=1102 pid=0005
options snd_ctxfi index=0 model=SB073x vid=1102 pid=0031

options snd_hda_intel index=1 model=auto vid=10de pid:0e0b

options snd_usb_audio index=2 model=auto vid=046d pid=0825

options snd_hda_codec_hdmi=-2

[firekage@arch_desktop ~]$ 

1. There are two lines for xfi. As you can see...there are two pids. One is from lspci, the one is being reported by kernel and journalctl. Don't know why. Both of them are ignored when system starts (what i found out with log by journalctl -b -1). What is more strange, either model=auto and model=SB073x (what is being found by kernel) is unknown when kernel see it and show it.

mar 29 14:07:46 arch_desktop kernel: snd_ctxfi: unknown parameter 'model' ignored
mar 29 14:07:46 arch_desktop kernel: snd_ctxfi: unknown parameter 'vid' ignored
mar 29 14:07:46 arch_desktop kernel: snd_ctxfi: unknown parameter 'pid' ignored
mar 29 14:07:46 arch_desktop kernel: snd_ctxfi 0000:05:00.0: chip 20K1 model SB073x (1102:0031) is found

Why kernel shows that these parameters are ignored? What's wrong with my set up?


2. There is line for my hdmi sound from graphic card from GTX660. I don't have anything particular in journalctl (unknown vid and pid, or i can't find it) but there is also something strange. In KMIX i can see nvidia hdmi outputs, they works, i can enable it or disable but the same sound card from GTX660 is not being visible in K > system settings > multimedia. On left, from rightclick in kmix there is nvidia and 4 outputs, on right are sound system settings from K > system settgs > multimedia and here there is only XFI listed. Why?

http://imgur.com/RgVBlQ6

There is also one thing related to kernel and driver. I found out that GTX660 that can play sound from it ouptus trough hdmi uses intel hda driver (snd_hda_intel). I found it with lspci. Why this is being reported:

mar 29 14:07:46 arch_desktop kernel: snd_hda_intel: unknown parameter 'vid' ignored
mar 29 14:07:46 arch_desktop kernel: snd_hda_intel: unknown parameter 'pid:0e0b' ignored

I checkesd lcpsi for this and vid with pid are matched.



3. There is line for usb audio. I have Logitech 270 Webcam, which is being reported by kernel but journalctl shows that pid and vid are unknown.

mar 29 14:07:46 arch_desktop kernel: snd_usb_audio: unknown parameter 'model' ignored
mar 29 14:07:46 arch_desktop kernel: snd_usb_audio: `046d' invalid for parameter `vid'

Why? lsusb show that i put correct values in /etc/modprobe.d/alsa-base.conf either for XFI, nvidia hdmi and usb webcam.

Can somebody help?

One thing more - after wake up from suspend to disk i don't have sound from hdmi graphic nvidia card. I have to log off, log in again. Why hdmi sound is not being resumed? Sound with snd_ctxfi is being resumed ok, i put it with snd_hda_intel in /etc/pm/config.d/unload_modules but after wake up i can play sound only from xfi, not hdmi nvidia.

Thanks for help.

Last edited by firekage (2015-03-31 19:02:55)

Offline

#2 2015-03-29 16:39:48

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,659

Re: Vid and pid are ingored by the kernel, pulseaudio and alsa config

I think you need to specify hex data in 'C' format.   Prepend a 0x to the four hex digits.

options snd_hda_intel index=1 model=auto vid=10de pid:0e0b

should be

options snd_hda_intel index=1 model=auto vid=0x10de pid=0x0e0b

Also note the ':' in pid changed to '='

I've not tried any of this.  I just did a Google search.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2015-03-29 17:46:54

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 624

Re: Vid and pid are ingored by the kernel, pulseaudio and alsa config

Why i need to use "hex" in here?

Thanks for ":", i did not notice that it is, when there should be "=". Will do a reboot and check what kernel says.


Edit: i rebooted. Still has problem with vid and pid for XFI and snd_hda_intel, still it is being ignored and unknown (i corrected ";" for "="). Don't know why.

Last edited by firekage (2015-03-29 18:04:19)

Offline

#4 2015-03-29 18:23:51

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: Vid and pid are ingored by the kernel, pulseaudio and alsa config

The snd_hda_intel module does not take vid and pid parameters. And it seems snd_ctxfi doesn't either. They shouldn't be required anyway. I would go for this:

options snd_ctxfi index=0 model=SB073x

options snd_hda_intel index=1,3

options snd_usb_audio index=2

If the snd_hda_intel outputs (analog and HDMI) aren't in the order you want, just swap the numbers - 3,1 instead of 1,3

Offline

#5 2015-03-29 19:20:57

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,659

Re: Vid and pid are ingored by the kernel, pulseaudio and alsa config

firekage wrote:

Why i need to use "hex" in here?

What Gustar said, notwithstanding, the VID and PID for USB are 16 bit numbers; generally expressed as four hex digits.   As hex valid hex digits are [0-9][a-f] and valid decimal digits are [0-9], if you were to say PID=1000, does that mean 0x1000, or does that mean 4096 in decimal?   All of the numbers in the file you provided are two byte values expressed by four hex digits.  Each hex digit represents 4 bits. 

As to Gustar's assertion.  I cannot argue the point intelligently, I don't have this hardware and have not tried any of the stuff we are discussing so I'll yield to you -- but, this article seems to indicate that PID and VID can be used.


Edit, by the way:  I can tell that vid=10de pid:0e0b is something made by Authenex, Inc.   This seems a bit odd, as they seem to specialize in security devices, not audio systems.   I can tell this by looking at this page published by linux-usb.org

Edit2:  Perhaps if you could share the output of lsusb

Last edited by ewaller (2015-03-29 19:33:23)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#6 2015-03-29 20:15:30

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: Vid and pid are ingored by the kernel, pulseaudio and alsa config

The snd_usb_audio module does take vid and pid. But other modules don't. This can be easily checked with modinfo.

Offline

#7 2015-03-29 20:30:35

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,659

Re: Vid and pid are ingored by the kernel, pulseaudio and alsa config

Damn.  I missed that there alsa_hda_intel and alsa_usb_intel modules both at play here.    You are no doubt correct.   I am still a bit confused --  the USB device is vid=046d pid=0825  which is a Logitech  Web Cam.  Does it have an audio source?

Back to the  0x10de VID.  If that is a PCI VID and not a USB HID, then we are talking about NVIDIA.  Your video system might support HDMI audio, but I somehow doubt it implements the Intel sound system.  It might provide a codec back end that works with Intel HDA. 

I don't use NVIDIA by design, so I really don't have a working knowledge of how their audio works.  I am just attacking this beast by doing sanity checks on the configuration file.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#8 2015-03-29 21:15:20

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 624

Re: Vid and pid are ingored by the kernel, pulseaudio and alsa config

Gusar wrote:

The snd_hda_intel module does not take vid and pid parameters. And it seems snd_ctxfi doesn't either. They shouldn't be required anyway. I would go for this:

options snd_ctxfi index=0 model=SB073x

options snd_hda_intel index=1,3

options snd_usb_audio index=2

If the snd_hda_intel outputs (analog and HDMI) aren't in the order you want, just swap the numbers - 3,1 instead of 1,3

Thanks.

I don't understand why those modules does not take vid and pid, in fact, some people, like me, can have two, or more, sound cards so in order to do a specific setup it should be possible. Is there a explanation for it, some manual saying that those snd modules does not take vid and pid? How did you know it?


As for snd_hda_intel and index. You wrote 1,3 and 3,1 for an exmample but there is one problem. This module is not for sound card from motherboard or intel processor but for nvidia graphic card that use the same driver according to lspci

01:00.1 Audio device: NVIDIA Corporation GK106 HDMI Audio Controller (rev a1)
        Subsystem: Gigabyte Technology Co., Ltd Device 354e
        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, Cache Line Size: 64 bytes
        Interrupt: pin B routed to IRQ 17
        Region 0: Memory at f6080000 (32-bit, non-prefetchable) [size=16K]
        Capabilities: [60] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
                Address: 0000000000000000  Data: 0000
        Capabilities: [78] Express (v2) Endpoint, MSI 00
                DevCap: MaxPayload 256 bytes, PhantFunc 0, Latency L0s unlimited, L1 <64us
                        ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
                DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
                        RlxdOrd- ExtTag+ PhantFunc- AuxPwr- NoSnoop+
                        MaxPayload 256 bytes, MaxReadReq 512 bytes
                DevSta: CorrErr+ UncorrErr- FatalErr- UnsuppReq- AuxPwr- TransPend-
                LnkCap: Port #0, Speed 8GT/s, Width x16, ASPM L0s L1, Exit Latency L0s <512ns, L1 <4us
                        ClockPM+ Surprise- LLActRep- BwNot- ASPMOptComp+
                LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- CommClk+
                        ExtSynch- ClockPM+ AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 2.5GT/s, Width x16, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
                DevCap2: Completion Timeout: Range AB, TimeoutDis+, LTR-, OBFF Not Supported
                DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR-, OBFF Disabled
                LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete-, EqualizationPhase1-
                         EqualizationPhase2-, EqualizationPhase3-, LinkEqualizationRequest-
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel

as you can see, it uses snd_hda_intel. It has 4 outputs (picture above) named something like IEC958, IEC958 2, IEC958 3, IEC958 4. So it should be index=1,3 or what? If i understand, for what you said in example, 1 will be for analog and 3 for hdmi, but this nvidia card has 4 digital hdmi outputs.

Last edited by firekage (2015-03-29 21:20:31)

Offline

#9 2015-03-29 21:20:02

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 624

Re: Vid and pid are ingored by the kernel, pulseaudio and alsa config

ewaller wrote:
firekage wrote:

Why i need to use "hex" in here?

What Gustar said, notwithstanding, the VID and PID for USB are 16 bit numbers; generally expressed as four hex digits.   As hex valid hex digits are [0-9][a-f] and valid decimal digits are [0-9], if you were to say PID=1000, does that mean 0x1000, or does that mean 4096 in decimal?   All of the numbers in the file you provided are two byte values expressed by four hex digits.  Each hex digit represents 4 bits. 

As to Gustar's assertion.  I cannot argue the point intelligently, I don't have this hardware and have not tried any of the stuff we are discussing so I'll yield to you -- but, this article seems to indicate that PID and VID can be used.


Edit, by the way:  I can tell that vid=10de pid:0e0b is something made by Authenex, Inc.   This seems a bit odd, as they seem to specialize in security devices, not audio systems.   I can tell this by looking at this page published by linux-usb.org

Edit2:  Perhaps if you could share the output of lsusb

As for the "hex" - it is something strange because vid and pid are being returned by terminal so if the system see it as normal pid and vid, what's the point in use hex? Strange, don't understand it.


root@arch_desktop firekage]# lsusb
Bus 002 Device 005: ID 046d:0825 Logitech, Inc. Webcam C270
Bus 002 Device 004: ID 24ae:2000  
Bus 002 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 002 Device 002: ID 8087:8001 Intel Corp. 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 046d:c21f Logitech, Inc. F710 Wireless Gamepad [XInput Mode]
Bus 001 Device 003: ID 046d:c050 Logitech, Inc. RX 250 Optical Mouse
Bus 001 Device 002: ID 8087:8009 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[root@arch_desktop firekage]# 

but vid vid=10de pid:0e0b is for snd_hda_intel sound driver from my graphic card:

01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK106 [GeForce GTX 660] [10de:11c0] (rev a1)
01:00.1 Audio device [0403]: NVIDIA Corporation GK106 HDMI Audio Controller [10de:0e0b] (rev a1)

and here:

01:00.1 Audio device: NVIDIA Corporation GK106 HDMI Audio Controller (rev a1)
        Subsystem: Gigabyte Technology Co., Ltd Device 354e
        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, Cache Line Size: 64 bytes
        Interrupt: pin B routed to IRQ 17
        Region 0: Memory at f6080000 (32-bit, non-prefetchable) [size=16K]
        Capabilities: [60] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
                Address: 0000000000000000  Data: 0000
        Capabilities: [78] Express (v2) Endpoint, MSI 00
                DevCap: MaxPayload 256 bytes, PhantFunc 0, Latency L0s unlimited, L1 <64us
                        ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
                DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
                        RlxdOrd- ExtTag+ PhantFunc- AuxPwr- NoSnoop+
                        MaxPayload 256 bytes, MaxReadReq 512 bytes
                DevSta: CorrErr+ UncorrErr- FatalErr- UnsuppReq- AuxPwr- TransPend-
                LnkCap: Port #0, Speed 8GT/s, Width x16, ASPM L0s L1, Exit Latency L0s <512ns, L1 <4us
                        ClockPM+ Surprise- LLActRep- BwNot- ASPMOptComp+
                LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- CommClk+
                        ExtSynch- ClockPM+ AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 2.5GT/s, Width x16, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
                DevCap2: Completion Timeout: Range AB, TimeoutDis+, LTR-, OBFF Not Supported
                DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR-, OBFF Disabled
                LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete-, EqualizationPhase1-
                         EqualizationPhase2-, EqualizationPhase3-, LinkEqualizationRequest-
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel

you can see that it uses snd_hda_intel driver.

Offline

#10 2015-03-29 21:25:57

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 624

Re: Vid and pid are ingored by the kernel, pulseaudio and alsa config

ewaller wrote:

Damn.  I missed that there alsa_hda_intel and alsa_usb_intel modules both at play here.    You are no doubt correct.   I am still a bit confused --  the USB device is vid=046d pid=0825  which is a Logitech  Web Cam.  Does it have an audio source?

Back to the  0x10de VID.  If that is a PCI VID and not a USB HID, then we are talking about NVIDIA.  Your video system might support HDMI audio, but I somehow doubt it implements the Intel sound system.  It might provide a codec back end that works with Intel HDA. 

I don't use NVIDIA by design, so I really don't have a working knowledge of how their audio works.  I am just attacking this beast by doing sanity checks on the configuration file.

About codec, maybe you right because:

[root@arch_desktop firekage]# lsmod | grep snd_
snd_hda_codec_hdmi     49263  1 
snd_usbmidi_lib        27571  0 
snd_rawmidi            26806  1 snd_usbmidi_lib
snd_hda_intel          26387  2 
snd_hda_controller     26857  1 snd_hda_intel
snd_ctxfi             104184  2 
snd_seq_device         13307  1 snd_rawmidi
snd_hda_codec         112621  3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_controller
snd_hwdep              17244  1 snd_hda_codec
snd_pcm                88779  5 snd_ctxfi,snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller
snd_timer              26614  1 snd_pcm
snd                    73436  18 snd_ctxfi,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_rawmidi,snd_usbmidi_lib,snd_hda_codec,snd_hda_intel,snd_seq_device
soundcore              13031  2 snd,snd_hda_codec
usbcore               199382  6 uvcvideo,snd_usbmidi_lib,ehci_hcd,ehci_pci,usbhid
[root@arch_desktop firekage]# 

and if it is right than i should load or unload this "codec" in order to have sound after wake up from suspend (no i don't, have to log off and log in) and also put this coced to alsa-base.conf with correct order and options, but again, i won't be able to check vid and pid for this codec also with the model name.

Offline

#11 2015-03-29 21:26:00

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,659

Re: Vid and pid are ingored by the kernel, pulseaudio and alsa config

firekage wrote:

I don't understand why those modules does not take vid and pid, in fact, some people, like me, can have two, or more, sound cards so in order to do a specific setup it should be possible. Is there a explanation for it, some manual saying that those snd modules does not take vid and pid? How did you know it?

The VID and PID only apply to USB devices.  Not all of your sound devices use USB for the physical layer.  In fact, USB sound devices are (in my experience) somewhat rare.  They are more often found on a PCI bus or, in older machines, in ISA address space accessed via an LPC bus.    I presume there are better ways (or at least different) ways to identify a device on the PCI bus than VID:PID

What are the output of lsusb and lspci -nn  ?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#12 2015-03-29 21:41:09

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 624

Re: Vid and pid are ingored by the kernel, pulseaudio and alsa config

Thanks, learned again something new (about vid and pid only for usb) and here are the commands:

[root@arch_desktop firekage]# lsusb
Bus 002 Device 005: ID 046d:0825 Logitech, Inc. Webcam C270
Bus 002 Device 004: ID 24ae:2000  
Bus 002 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 002 Device 002: ID 8087:8001 Intel Corp. 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 046d:c21f Logitech, Inc. F710 Wireless Gamepad [XInput Mode]
Bus 001 Device 003: ID 046d:c050 Logitech, Inc. RX 250 Optical Mouse
Bus 001 Device 002: ID 8087:8009 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[root@arch_desktop firekage]# lspci -nn
00:00.0 Host bridge [0600]: Intel Corporation 4th Gen Core Processor DRAM Controller [8086:0c00] (rev 06)
00:01.0 PCI bridge [0604]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller [8086:0c01] (rev 06)
00:16.0 Communication controller [0780]: Intel Corporation 9 Series Chipset Family ME Interface #1 [8086:8cba]
00:1a.0 USB controller [0c03]: Intel Corporation 9 Series Chipset Family USB EHCI Controller #2 [8086:8cad]
00:1c.0 PCI bridge [0604]: Intel Corporation 9 Series Chipset Family PCI Express Root Port 1 [8086:8c90] (rev d0)
00:1c.2 PCI bridge [0604]: Intel Corporation 9 Series Chipset Family PCI Express Root Port 3 [8086:8c94] (rev d0)
00:1c.3 PCI bridge [0604]: Intel Corporation 82801 PCI Bridge [8086:244e] (rev d0)
00:1c.6 PCI bridge [0604]: Intel Corporation 9 Series Chipset Family PCI Express Root Port 7 [8086:8c9c] (rev d0)
00:1c.7 PCI bridge [0604]: Intel Corporation 9 Series Chipset Family PCI Express Root Port 8 [8086:8c9e] (rev d0)
00:1d.0 USB controller [0c03]: Intel Corporation 9 Series Chipset Family USB EHCI Controller #1 [8086:8ca6]
00:1f.0 ISA bridge [0601]: Intel Corporation 9 Series Chipset Family Z97 LPC Controller [8086:8cc4]
00:1f.2 SATA controller [0106]: Intel Corporation 9 Series Chipset Family SATA Controller [AHCI Mode] [8086:8c82]
00:1f.3 SMBus [0c05]: Intel Corporation 9 Series Chipset Family SMBus Controller [8086:8ca2]
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK106 [GeForce GTX 660] [10de:11c0] (rev a1)
01:00.1 Audio device [0403]: NVIDIA Corporation GK106 HDMI Audio Controller [10de:0e0b] (rev a1)
03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 06)
04:00.0 PCI bridge [0604]: Intel Corporation 82801 PCI Bridge [8086:244e] (rev 41)
05:00.0 Multimedia audio controller [0401]: Creative Labs SB X-Fi [1102:0005]
06:00.0 RAID bus controller [0104]: Silicon Image, Inc. Device [1095:0242] (rev 01)
07:00.0 RAID bus controller [0104]: Silicon Image, Inc. SiI 3132 Serial ATA Raid II Controller [1095:3132] (rev 01)
[root@arch_desktop firekage]# 

Edit:

ewaller wrote:

I presume there are better ways (or at least different) ways to identify a device on the PCI bus than VID:PID

Well, check this:

mar 29 19:49:39 arch_desktop kernel: input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input10
mar 29 19:49:39 arch_desktop kernel: input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input11
mar 29 19:49:39 arch_desktop kernel: input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input12
mar 29 19:49:39 arch_desktop kernel: input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input13

I don't see that this is much simpler, in fact, don't even know how to put this to alsa-base.conf in /etc/modprobe.d

Last edited by firekage (2015-03-29 21:43:42)

Offline

#13 2015-03-29 21:55:53

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: Vid and pid are ingored by the kernel, pulseaudio and alsa config

Doesn't matter that HDMI is part of the Nvidia card, and it doesn't matter how many outputs it has. From the perspective of ALSA only one thing matters - that it's a snd_hda_intel device (HDMI is usually hda_intel, I haven't seen it otherwise, and yes it means that the Nvidia card has an actual sound chip on it).

You have at least three devices - internal hda_intel, Nvidia's hda_intel for HDMI, and snd_ctxfi. There's also a webcam, but it's not clear whether that one registers a sound device.

What exactly is your goal actually? Do you want your ctxfi card to be the default? That's what "options snd_ctxfi index=0 model=SB073x" does - the device with index 0 will be the default. Then you simply list other modules without their own indices. The snd_hda_intel line will have two indices, because you have two devices that use this module.

Edit: Hmm, interesting, now that you've posted the full lspci, there's no internal hda_intel there. Did you possibly disable it in the BIOS, or did it maybe happen automatically because you have a dedicated sound card? It seems you only have two devices - snd_ctxfi and Nvidia HDMI.

Post the output of "aplay -l"

Last edited by Gusar (2015-03-29 22:00:26)

Offline

#14 2015-03-29 22:36:52

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 624

Re: Vid and pid are ingored by the kernel, pulseaudio and alsa config

Gusar wrote:

Doesn't matter that HDMI is part of the Nvidia card, and it doesn't matter how many outputs it has. From the perspective of ALSA only one thing matters - that it's a snd_hda_intel device (HDMI is usually hda_intel, I haven't seen it otherwise, and yes it means that the Nvidia card has an actual sound chip on it).

Thanks.

What exactly is your goal actually? Do you want your ctxfi card to be the default? That's what "options snd_ctxfi index=0 model=SB073x" does - the device with index 0 will be the default.

Well, yes and no. I want my primary sound card to be snd_ctxfi, but when i would like to watch something trough hdmi on big tv screen from my computer i want to use hdmi output trough nvidia card (also, remember that in k > system settings > multimedia there is only listed xfi, not nvidia, and not even usb connected webcam that has built in mic - they should be visible, but there are not). When i do a suspend to disk and resume i can still use xfi because it wakes up and there is sound but there is no for hdmi and nvidia. I have to log off and log in to "reenable" sound for nvidia and hdmi. Also, want the correct order in case i would like to play (WarThunder), or use skype and use firefox and so on, with sound (don't want to allow other devices to take priority from my primary xfi).

Sometimes the sound is being lost. For an example, when i log in, open up pidgin, than firefox and skype for the last, i can do a call, have sound in skype and other devices (like vids from youtube with firefox or pidgin) but when i open it up in the "wrong" order than i can't hear anybody using skype, for an example: i open skype, than pidgin, and firefox for the last...skype lost sound and i have to shut id down and sometimes log in and log in and start it with correct order of start. I think it is related to order of sound devices, and their index. I had also something funny thing related to the first case scenario: i opened up firefox, pidgin, skype - have sound in skype, can do a call. Then i opened thunderbird, and was informed about new emails...instantly lost sound in skype. That's why i'm trying to check all of this with vid, pids, correct order.

Then you simply list other modules without their own indices. The snd_hda_intel line will have two indices, because you have two devices that use this module.

My english is not that good - don't understand. If i understand, do a sometging like

options snd_something order=
options snd_something 

without an order? Also, these two indices, what two devices? I use only one, from nvidia.

Edit: Hmm, interesting, now that you've posted the full lspci, there's no internal hda_intel there. Did you possibly disable it in the BIOS, or did it maybe happen automatically because you have a dedicated sound card? It seems you only have two devices - snd_ctxfi and Nvidia HDMI.

Post the output of "aplay -l"

I disabled it in bios.



Ok, aplay -;

[root@arch_desktop firekage]# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: XFi [Creative X-Fi], device 0: ctxfi [Front/WaveIn]
  Subdevices: 256/256
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
  Subdevice #8: subdevice #8
  Subdevice #9: subdevice #9
  Subdevice #10: subdevice #10
  Subdevice #11: subdevice #11
  Subdevice #12: subdevice #12
  Subdevice #13: subdevice #13
  Subdevice #14: subdevice #14
  Subdevice #15: subdevice #15
  Subdevice #16: subdevice #16
  Subdevice #17: subdevice #17
  Subdevice #18: subdevice #18
  Subdevice #19: subdevice #19
  Subdevice #20: subdevice #20
  Subdevice #21: subdevice #21
  Subdevice #22: subdevice #22
  Subdevice #23: subdevice #23
  Subdevice #24: subdevice #24
  Subdevice #25: subdevice #25
  Subdevice #26: subdevice #26
  Subdevice #27: subdevice #27
  Subdevice #28: subdevice #28
  Subdevice #29: subdevice #29
  Subdevice #30: subdevice #30
  Subdevice #31: subdevice #31
  Subdevice #32: subdevice #32
  Subdevice #33: subdevice #33
  Subdevice #34: subdevice #34
  Subdevice #35: subdevice #35
  Subdevice #36: subdevice #36
  Subdevice #37: subdevice #37
  Subdevice #38: subdevice #38
  Subdevice #39: subdevice #39
  Subdevice #40: subdevice #40
  Subdevice #41: subdevice #41
  Subdevice #42: subdevice #42
  Subdevice #43: subdevice #43
  Subdevice #44: subdevice #44
  Subdevice #45: subdevice #45
  Subdevice #46: subdevice #46
  Subdevice #47: subdevice #47
  Subdevice #48: subdevice #48
  Subdevice #49: subdevice #49
  Subdevice #50: subdevice #50
  Subdevice #51: subdevice #51
  Subdevice #52: subdevice #52
  Subdevice #53: subdevice #53
  Subdevice #54: subdevice #54
  Subdevice #55: subdevice #55
  Subdevice #56: subdevice #56
  Subdevice #57: subdevice #57
  Subdevice #58: subdevice #58
  Subdevice #59: subdevice #59
  Subdevice #60: subdevice #60
  Subdevice #61: subdevice #61
  Subdevice #62: subdevice #62
  Subdevice #63: subdevice #63
  Subdevice #64: subdevice #64
  Subdevice #65: subdevice #65
  Subdevice #66: subdevice #66
  Subdevice #67: subdevice #67
  Subdevice #68: subdevice #68
  Subdevice #69: subdevice #69
  Subdevice #70: subdevice #70
  Subdevice #71: subdevice #71
  Subdevice #72: subdevice #72
  Subdevice #73: subdevice #73
  Subdevice #74: subdevice #74
  Subdevice #75: subdevice #75
  Subdevice #76: subdevice #76
  Subdevice #77: subdevice #77
  Subdevice #78: subdevice #78
  Subdevice #79: subdevice #79
  Subdevice #80: subdevice #80
  Subdevice #81: subdevice #81
  Subdevice #82: subdevice #82
  Subdevice #83: subdevice #83
  Subdevice #84: subdevice #84
  Subdevice #85: subdevice #85
  Subdevice #86: subdevice #86
  Subdevice #87: subdevice #87
  Subdevice #88: subdevice #88
  Subdevice #89: subdevice #89
  Subdevice #90: subdevice #90
  Subdevice #91: subdevice #91
  Subdevice #92: subdevice #92
  Subdevice #93: subdevice #93
  Subdevice #94: subdevice #94
  Subdevice #95: subdevice #95
  Subdevice #96: subdevice #96
  Subdevice #97: subdevice #97
  Subdevice #98: subdevice #98
  Subdevice #99: subdevice #99
  Subdevice #100: subdevice #100
  Subdevice #101: subdevice #101
  Subdevice #102: subdevice #102
  Subdevice #103: subdevice #103
  Subdevice #104: subdevice #104
  Subdevice #105: subdevice #105
  Subdevice #106: subdevice #106
  Subdevice #107: subdevice #107
  Subdevice #108: subdevice #108
  Subdevice #109: subdevice #109
  Subdevice #110: subdevice #110
  Subdevice #111: subdevice #111
  Subdevice #112: subdevice #112
  Subdevice #113: subdevice #113
  Subdevice #114: subdevice #114
  Subdevice #115: subdevice #115
  Subdevice #116: subdevice #116
  Subdevice #117: subdevice #117
  Subdevice #118: subdevice #118
  Subdevice #119: subdevice #119
  Subdevice #120: subdevice #120
  Subdevice #121: subdevice #121
  Subdevice #122: subdevice #122
  Subdevice #123: subdevice #123
  Subdevice #124: subdevice #124
  Subdevice #125: subdevice #125
  Subdevice #126: subdevice #126
  Subdevice #127: subdevice #127
  Subdevice #128: subdevice #128
  Subdevice #129: subdevice #129
  Subdevice #130: subdevice #130
  Subdevice #131: subdevice #131
  Subdevice #132: subdevice #132
  Subdevice #133: subdevice #133
  Subdevice #134: subdevice #134
  Subdevice #135: subdevice #135
  Subdevice #136: subdevice #136
  Subdevice #137: subdevice #137
  Subdevice #138: subdevice #138
  Subdevice #139: subdevice #139
  Subdevice #140: subdevice #140
  Subdevice #141: subdevice #141
  Subdevice #142: subdevice #142
  Subdevice #143: subdevice #143
  Subdevice #144: subdevice #144
  Subdevice #145: subdevice #145
  Subdevice #146: subdevice #146
  Subdevice #147: subdevice #147
  Subdevice #148: subdevice #148
  Subdevice #149: subdevice #149
  Subdevice #150: subdevice #150
  Subdevice #151: subdevice #151
  Subdevice #152: subdevice #152
  Subdevice #153: subdevice #153
  Subdevice #154: subdevice #154
  Subdevice #155: subdevice #155
  Subdevice #156: subdevice #156
  Subdevice #157: subdevice #157
  Subdevice #158: subdevice #158
  Subdevice #159: subdevice #159
  Subdevice #160: subdevice #160
  Subdevice #161: subdevice #161
  Subdevice #162: subdevice #162
  Subdevice #163: subdevice #163
  Subdevice #164: subdevice #164
  Subdevice #165: subdevice #165
  Subdevice #166: subdevice #166
  Subdevice #167: subdevice #167
  Subdevice #168: subdevice #168
  Subdevice #169: subdevice #169
  Subdevice #170: subdevice #170
  Subdevice #171: subdevice #171
  Subdevice #172: subdevice #172
  Subdevice #173: subdevice #173
  Subdevice #174: subdevice #174
  Subdevice #175: subdevice #175
  Subdevice #176: subdevice #176
  Subdevice #177: subdevice #177
  Subdevice #178: subdevice #178
  Subdevice #179: subdevice #179
  Subdevice #180: subdevice #180
  Subdevice #181: subdevice #181
  Subdevice #182: subdevice #182
  Subdevice #183: subdevice #183
  Subdevice #184: subdevice #184
  Subdevice #185: subdevice #185
  Subdevice #186: subdevice #186
  Subdevice #187: subdevice #187
  Subdevice #188: subdevice #188
  Subdevice #189: subdevice #189
  Subdevice #190: subdevice #190
  Subdevice #191: subdevice #191
  Subdevice #192: subdevice #192
  Subdevice #193: subdevice #193
  Subdevice #194: subdevice #194
  Subdevice #195: subdevice #195
  Subdevice #196: subdevice #196
  Subdevice #197: subdevice #197
  Subdevice #198: subdevice #198
  Subdevice #199: subdevice #199
  Subdevice #200: subdevice #200
  Subdevice #201: subdevice #201
  Subdevice #202: subdevice #202
  Subdevice #203: subdevice #203
  Subdevice #204: subdevice #204
  Subdevice #205: subdevice #205
  Subdevice #206: subdevice #206
  Subdevice #207: subdevice #207
  Subdevice #208: subdevice #208
  Subdevice #209: subdevice #209
  Subdevice #210: subdevice #210
  Subdevice #211: subdevice #211
  Subdevice #212: subdevice #212
  Subdevice #213: subdevice #213
  Subdevice #214: subdevice #214
  Subdevice #215: subdevice #215
  Subdevice #216: subdevice #216
  Subdevice #217: subdevice #217
  Subdevice #218: subdevice #218
  Subdevice #219: subdevice #219
  Subdevice #220: subdevice #220
  Subdevice #221: subdevice #221
  Subdevice #222: subdevice #222
  Subdevice #223: subdevice #223
  Subdevice #224: subdevice #224
  Subdevice #225: subdevice #225
  Subdevice #226: subdevice #226
  Subdevice #227: subdevice #227
  Subdevice #228: subdevice #228
  Subdevice #229: subdevice #229
  Subdevice #230: subdevice #230
  Subdevice #231: subdevice #231
  Subdevice #232: subdevice #232
  Subdevice #233: subdevice #233
  Subdevice #234: subdevice #234
  Subdevice #235: subdevice #235
  Subdevice #236: subdevice #236
  Subdevice #237: subdevice #237
  Subdevice #238: subdevice #238
  Subdevice #239: subdevice #239
  Subdevice #240: subdevice #240
  Subdevice #241: subdevice #241
  Subdevice #242: subdevice #242
  Subdevice #243: subdevice #243
  Subdevice #244: subdevice #244
  Subdevice #245: subdevice #245
  Subdevice #246: subdevice #246
  Subdevice #247: subdevice #247
  Subdevice #248: subdevice #248
  Subdevice #249: subdevice #249
  Subdevice #250: subdevice #250
  Subdevice #251: subdevice #251
  Subdevice #252: subdevice #252
  Subdevice #253: subdevice #253
  Subdevice #254: subdevice #254
  Subdevice #255: subdevice #255
card 0: XFi [Creative X-Fi], device 1: ctxfi [Surround]
  Subdevices: 256/256
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
  Subdevice #8: subdevice #8
  Subdevice #9: subdevice #9
  Subdevice #10: subdevice #10
  Subdevice #11: subdevice #11
  Subdevice #12: subdevice #12
  Subdevice #13: subdevice #13
  Subdevice #14: subdevice #14
  Subdevice #15: subdevice #15
  Subdevice #16: subdevice #16
  Subdevice #17: subdevice #17
  Subdevice #18: subdevice #18
  Subdevice #19: subdevice #19
  Subdevice #20: subdevice #20
  Subdevice #21: subdevice #21
  Subdevice #22: subdevice #22
  Subdevice #23: subdevice #23
  Subdevice #24: subdevice #24
  Subdevice #25: subdevice #25
  Subdevice #26: subdevice #26
  Subdevice #27: subdevice #27
  Subdevice #28: subdevice #28
  Subdevice #29: subdevice #29
  Subdevice #30: subdevice #30
  Subdevice #31: subdevice #31
  Subdevice #32: subdevice #32
  Subdevice #33: subdevice #33
  Subdevice #34: subdevice #34
  Subdevice #35: subdevice #35
  Subdevice #36: subdevice #36
  Subdevice #37: subdevice #37
  Subdevice #38: subdevice #38
  Subdevice #39: subdevice #39
  Subdevice #40: subdevice #40
  Subdevice #41: subdevice #41
  Subdevice #42: subdevice #42
  Subdevice #43: subdevice #43
  Subdevice #44: subdevice #44
  Subdevice #45: subdevice #45
  Subdevice #46: subdevice #46
  Subdevice #47: subdevice #47
  Subdevice #48: subdevice #48
  Subdevice #49: subdevice #49
  Subdevice #50: subdevice #50
  Subdevice #51: subdevice #51
  Subdevice #52: subdevice #52
  Subdevice #53: subdevice #53
  Subdevice #54: subdevice #54
  Subdevice #55: subdevice #55
  Subdevice #56: subdevice #56
  Subdevice #57: subdevice #57
  Subdevice #58: subdevice #58
  Subdevice #59: subdevice #59
  Subdevice #60: subdevice #60
  Subdevice #61: subdevice #61
  Subdevice #62: subdevice #62
  Subdevice #63: subdevice #63
  Subdevice #64: subdevice #64
  Subdevice #65: subdevice #65
  Subdevice #66: subdevice #66
  Subdevice #67: subdevice #67
  Subdevice #68: subdevice #68
  Subdevice #69: subdevice #69
  Subdevice #70: subdevice #70
  Subdevice #71: subdevice #71
  Subdevice #72: subdevice #72
  Subdevice #73: subdevice #73
  Subdevice #74: subdevice #74
  Subdevice #75: subdevice #75
  Subdevice #76: subdevice #76
  Subdevice #77: subdevice #77
  Subdevice #78: subdevice #78
  Subdevice #79: subdevice #79
  Subdevice #80: subdevice #80
  Subdevice #81: subdevice #81
  Subdevice #82: subdevice #82
  Subdevice #83: subdevice #83
  Subdevice #84: subdevice #84
  Subdevice #85: subdevice #85
  Subdevice #86: subdevice #86
  Subdevice #87: subdevice #87
  Subdevice #88: subdevice #88
  Subdevice #89: subdevice #89
  Subdevice #90: subdevice #90
  Subdevice #91: subdevice #91
  Subdevice #92: subdevice #92
  Subdevice #93: subdevice #93
  Subdevice #94: subdevice #94
  Subdevice #95: subdevice #95
  Subdevice #96: subdevice #96
  Subdevice #97: subdevice #97
  Subdevice #98: subdevice #98
  Subdevice #99: subdevice #99
  Subdevice #100: subdevice #100
  Subdevice #101: subdevice #101
  Subdevice #102: subdevice #102
  Subdevice #103: subdevice #103
  Subdevice #104: subdevice #104
  Subdevice #105: subdevice #105
  Subdevice #106: subdevice #106
  Subdevice #107: subdevice #107
  Subdevice #108: subdevice #108
  Subdevice #109: subdevice #109
  Subdevice #110: subdevice #110
  Subdevice #111: subdevice #111
  Subdevice #112: subdevice #112
  Subdevice #113: subdevice #113
  Subdevice #114: subdevice #114
  Subdevice #115: subdevice #115
  Subdevice #116: subdevice #116
  Subdevice #117: subdevice #117
  Subdevice #118: subdevice #118
  Subdevice #119: subdevice #119
  Subdevice #120: subdevice #120
  Subdevice #121: subdevice #121
  Subdevice #122: subdevice #122
  Subdevice #123: subdevice #123
  Subdevice #124: subdevice #124
  Subdevice #125: subdevice #125
  Subdevice #126: subdevice #126
  Subdevice #127: subdevice #127
  Subdevice #128: subdevice #128
  Subdevice #129: subdevice #129
  Subdevice #130: subdevice #130
  Subdevice #131: subdevice #131
  Subdevice #132: subdevice #132
  Subdevice #133: subdevice #133
  Subdevice #134: subdevice #134
  Subdevice #135: subdevice #135
  Subdevice #136: subdevice #136
  Subdevice #137: subdevice #137
  Subdevice #138: subdevice #138
  Subdevice #139: subdevice #139
  Subdevice #140: subdevice #140
  Subdevice #141: subdevice #141
  Subdevice #142: subdevice #142
  Subdevice #143: subdevice #143
  Subdevice #144: subdevice #144
  Subdevice #145: subdevice #145
  Subdevice #146: subdevice #146
  Subdevice #147: subdevice #147
  Subdevice #148: subdevice #148
  Subdevice #149: subdevice #149
  Subdevice #150: subdevice #150
  Subdevice #151: subdevice #151
  Subdevice #152: subdevice #152
  Subdevice #153: subdevice #153
  Subdevice #154: subdevice #154
  Subdevice #155: subdevice #155
  Subdevice #156: subdevice #156
  Subdevice #157: subdevice #157
  Subdevice #158: subdevice #158
  Subdevice #159: subdevice #159
  Subdevice #160: subdevice #160
  Subdevice #161: subdevice #161
  Subdevice #162: subdevice #162
  Subdevice #163: subdevice #163
  Subdevice #164: subdevice #164
  Subdevice #165: subdevice #165
  Subdevice #166: subdevice #166
  Subdevice #167: subdevice #167
  Subdevice #168: subdevice #168
  Subdevice #169: subdevice #169
  Subdevice #170: subdevice #170
  Subdevice #171: subdevice #171
  Subdevice #172: subdevice #172
  Subdevice #173: subdevice #173
  Subdevice #174: subdevice #174
  Subdevice #175: subdevice #175
  Subdevice #176: subdevice #176
  Subdevice #177: subdevice #177
  Subdevice #178: subdevice #178
  Subdevice #179: subdevice #179
  Subdevice #180: subdevice #180
  Subdevice #181: subdevice #181
  Subdevice #182: subdevice #182
  Subdevice #183: subdevice #183
  Subdevice #184: subdevice #184
  Subdevice #185: subdevice #185
  Subdevice #186: subdevice #186
  Subdevice #187: subdevice #187
  Subdevice #188: subdevice #188
  Subdevice #189: subdevice #189
  Subdevice #190: subdevice #190
  Subdevice #191: subdevice #191
  Subdevice #192: subdevice #192
  Subdevice #193: subdevice #193
  Subdevice #194: subdevice #194
  Subdevice #195: subdevice #195
  Subdevice #196: subdevice #196
  Subdevice #197: subdevice #197
  Subdevice #198: subdevice #198
  Subdevice #199: subdevice #199
  Subdevice #200: subdevice #200
  Subdevice #201: subdevice #201
  Subdevice #202: subdevice #202
  Subdevice #203: subdevice #203
  Subdevice #204: subdevice #204
  Subdevice #205: subdevice #205
  Subdevice #206: subdevice #206
  Subdevice #207: subdevice #207
  Subdevice #208: subdevice #208
  Subdevice #209: subdevice #209
  Subdevice #210: subdevice #210
  Subdevice #211: subdevice #211
  Subdevice #212: subdevice #212
  Subdevice #213: subdevice #213
  Subdevice #214: subdevice #214
  Subdevice #215: subdevice #215
  Subdevice #216: subdevice #216
  Subdevice #217: subdevice #217
  Subdevice #218: subdevice #218
  Subdevice #219: subdevice #219
  Subdevice #220: subdevice #220
  Subdevice #221: subdevice #221
  Subdevice #222: subdevice #222
  Subdevice #223: subdevice #223
  Subdevice #224: subdevice #224
  Subdevice #225: subdevice #225
  Subdevice #226: subdevice #226
  Subdevice #227: subdevice #227
  Subdevice #228: subdevice #228
  Subdevice #229: subdevice #229
  Subdevice #230: subdevice #230
  Subdevice #231: subdevice #231
  Subdevice #232: subdevice #232
  Subdevice #233: subdevice #233
  Subdevice #234: subdevice #234
  Subdevice #235: subdevice #235
  Subdevice #236: subdevice #236
  Subdevice #237: subdevice #237
  Subdevice #238: subdevice #238
  Subdevice #239: subdevice #239
  Subdevice #240: subdevice #240
  Subdevice #241: subdevice #241
  Subdevice #242: subdevice #242
  Subdevice #243: subdevice #243
  Subdevice #244: subdevice #244
  Subdevice #245: subdevice #245
  Subdevice #246: subdevice #246
  Subdevice #247: subdevice #247
  Subdevice #248: subdevice #248
  Subdevice #249: subdevice #249
  Subdevice #250: subdevice #250
  Subdevice #251: subdevice #251
  Subdevice #252: subdevice #252
  Subdevice #253: subdevice #253
  Subdevice #254: subdevice #254
  Subdevice #255: subdevice #255
card 0: XFi [Creative X-Fi], device 2: ctxfi [Center/LFE]
  Subdevices: 256/256
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
  Subdevice #8: subdevice #8
  Subdevice #9: subdevice #9
  Subdevice #10: subdevice #10
  Subdevice #11: subdevice #11
  Subdevice #12: subdevice #12
  Subdevice #13: subdevice #13
  Subdevice #14: subdevice #14
  Subdevice #15: subdevice #15
  Subdevice #16: subdevice #16
  Subdevice #17: subdevice #17
  Subdevice #18: subdevice #18
  Subdevice #19: subdevice #19
  Subdevice #20: subdevice #20
  Subdevice #21: subdevice #21
  Subdevice #22: subdevice #22
  Subdevice #23: subdevice #23
  Subdevice #24: subdevice #24
  Subdevice #25: subdevice #25
  Subdevice #26: subdevice #26
  Subdevice #27: subdevice #27
  Subdevice #28: subdevice #28
  Subdevice #29: subdevice #29
  Subdevice #30: subdevice #30
  Subdevice #31: subdevice #31
  Subdevice #32: subdevice #32
  Subdevice #33: subdevice #33
  Subdevice #34: subdevice #34
  Subdevice #35: subdevice #35
  Subdevice #36: subdevice #36
  Subdevice #37: subdevice #37
  Subdevice #38: subdevice #38
  Subdevice #39: subdevice #39
  Subdevice #40: subdevice #40
  Subdevice #41: subdevice #41
  Subdevice #42: subdevice #42
  Subdevice #43: subdevice #43
  Subdevice #44: subdevice #44
  Subdevice #45: subdevice #45
  Subdevice #46: subdevice #46
  Subdevice #47: subdevice #47
  Subdevice #48: subdevice #48
  Subdevice #49: subdevice #49
  Subdevice #50: subdevice #50
  Subdevice #51: subdevice #51
  Subdevice #52: subdevice #52
  Subdevice #53: subdevice #53
  Subdevice #54: subdevice #54
  Subdevice #55: subdevice #55
  Subdevice #56: subdevice #56
  Subdevice #57: subdevice #57
  Subdevice #58: subdevice #58
  Subdevice #59: subdevice #59
  Subdevice #60: subdevice #60
  Subdevice #61: subdevice #61
  Subdevice #62: subdevice #62
  Subdevice #63: subdevice #63
  Subdevice #64: subdevice #64
  Subdevice #65: subdevice #65
  Subdevice #66: subdevice #66
  Subdevice #67: subdevice #67
  Subdevice #68: subdevice #68
  Subdevice #69: subdevice #69
  Subdevice #70: subdevice #70
  Subdevice #71: subdevice #71
  Subdevice #72: subdevice #72
  Subdevice #73: subdevice #73
  Subdevice #74: subdevice #74
  Subdevice #75: subdevice #75
  Subdevice #76: subdevice #76
  Subdevice #77: subdevice #77
  Subdevice #78: subdevice #78
  Subdevice #79: subdevice #79
  Subdevice #80: subdevice #80
  Subdevice #81: subdevice #81
  Subdevice #82: subdevice #82
  Subdevice #83: subdevice #83
  Subdevice #84: subdevice #84
  Subdevice #85: subdevice #85
  Subdevice #86: subdevice #86
  Subdevice #87: subdevice #87
  Subdevice #88: subdevice #88
  Subdevice #89: subdevice #89
  Subdevice #90: subdevice #90
  Subdevice #91: subdevice #91
  Subdevice #92: subdevice #92
  Subdevice #93: subdevice #93
  Subdevice #94: subdevice #94
  Subdevice #95: subdevice #95
  Subdevice #96: subdevice #96
  Subdevice #97: subdevice #97
  Subdevice #98: subdevice #98
  Subdevice #99: subdevice #99
  Subdevice #100: subdevice #100
  Subdevice #101: subdevice #101
  Subdevice #102: subdevice #102
  Subdevice #103: subdevice #103
  Subdevice #104: subdevice #104
  Subdevice #105: subdevice #105
  Subdevice #106: subdevice #106
  Subdevice #107: subdevice #107
  Subdevice #108: subdevice #108
  Subdevice #109: subdevice #109
  Subdevice #110: subdevice #110
  Subdevice #111: subdevice #111
  Subdevice #112: subdevice #112
  Subdevice #113: subdevice #113
  Subdevice #114: subdevice #114
  Subdevice #115: subdevice #115
  Subdevice #116: subdevice #116
  Subdevice #117: subdevice #117
  Subdevice #118: subdevice #118
  Subdevice #119: subdevice #119
  Subdevice #120: subdevice #120
  Subdevice #121: subdevice #121
  Subdevice #122: subdevice #122
  Subdevice #123: subdevice #123
  Subdevice #124: subdevice #124
  Subdevice #125: subdevice #125
  Subdevice #126: subdevice #126
  Subdevice #127: subdevice #127
  Subdevice #128: subdevice #128
  Subdevice #129: subdevice #129
  Subdevice #130: subdevice #130
  Subdevice #131: subdevice #131
  Subdevice #132: subdevice #132
  Subdevice #133: subdevice #133
  Subdevice #134: subdevice #134
  Subdevice #135: subdevice #135
  Subdevice #136: subdevice #136
  Subdevice #137: subdevice #137
  Subdevice #138: subdevice #138
  Subdevice #139: subdevice #139
  Subdevice #140: subdevice #140
  Subdevice #141: subdevice #141
  Subdevice #142: subdevice #142
  Subdevice #143: subdevice #143
  Subdevice #144: subdevice #144
  Subdevice #145: subdevice #145
  Subdevice #146: subdevice #146
  Subdevice #147: subdevice #147
  Subdevice #148: subdevice #148
  Subdevice #149: subdevice #149
  Subdevice #150: subdevice #150
  Subdevice #151: subdevice #151
  Subdevice #152: subdevice #152
  Subdevice #153: subdevice #153
  Subdevice #154: subdevice #154
  Subdevice #155: subdevice #155
  Subdevice #156: subdevice #156
  Subdevice #157: subdevice #157
  Subdevice #158: subdevice #158
  Subdevice #159: subdevice #159
  Subdevice #160: subdevice #160
  Subdevice #161: subdevice #161
  Subdevice #162: subdevice #162
  Subdevice #163: subdevice #163
  Subdevice #164: subdevice #164
  Subdevice #165: subdevice #165
  Subdevice #166: subdevice #166
  Subdevice #167: subdevice #167
  Subdevice #168: subdevice #168
  Subdevice #169: subdevice #169
  Subdevice #170: subdevice #170
  Subdevice #171: subdevice #171
  Subdevice #172: subdevice #172
  Subdevice #173: subdevice #173
  Subdevice #174: subdevice #174
  Subdevice #175: subdevice #175
  Subdevice #176: subdevice #176
  Subdevice #177: subdevice #177
  Subdevice #178: subdevice #178
  Subdevice #179: subdevice #179
  Subdevice #180: subdevice #180
  Subdevice #181: subdevice #181
  Subdevice #182: subdevice #182
  Subdevice #183: subdevice #183
  Subdevice #184: subdevice #184
  Subdevice #185: subdevice #185
  Subdevice #186: subdevice #186
  Subdevice #187: subdevice #187
  Subdevice #188: subdevice #188
  Subdevice #189: subdevice #189
  Subdevice #190: subdevice #190
  Subdevice #191: subdevice #191
  Subdevice #192: subdevice #192
  Subdevice #193: subdevice #193
  Subdevice #194: subdevice #194
  Subdevice #195: subdevice #195
  Subdevice #196: subdevice #196
  Subdevice #197: subdevice #197
  Subdevice #198: subdevice #198
  Subdevice #199: subdevice #199
  Subdevice #200: subdevice #200
  Subdevice #201: subdevice #201
  Subdevice #202: subdevice #202
  Subdevice #203: subdevice #203
  Subdevice #204: subdevice #204
  Subdevice #205: subdevice #205
  Subdevice #206: subdevice #206
  Subdevice #207: subdevice #207
  Subdevice #208: subdevice #208
  Subdevice #209: subdevice #209
  Subdevice #210: subdevice #210
  Subdevice #211: subdevice #211
  Subdevice #212: subdevice #212
  Subdevice #213: subdevice #213
  Subdevice #214: subdevice #214
  Subdevice #215: subdevice #215
  Subdevice #216: subdevice #216
  Subdevice #217: subdevice #217
  Subdevice #218: subdevice #218
  Subdevice #219: subdevice #219
  Subdevice #220: subdevice #220
  Subdevice #221: subdevice #221
  Subdevice #222: subdevice #222
  Subdevice #223: subdevice #223
  Subdevice #224: subdevice #224
  Subdevice #225: subdevice #225
  Subdevice #226: subdevice #226
  Subdevice #227: subdevice #227
  Subdevice #228: subdevice #228
  Subdevice #229: subdevice #229
  Subdevice #230: subdevice #230
  Subdevice #231: subdevice #231
  Subdevice #232: subdevice #232
  Subdevice #233: subdevice #233
  Subdevice #234: subdevice #234
  Subdevice #235: subdevice #235
  Subdevice #236: subdevice #236
  Subdevice #237: subdevice #237
  Subdevice #238: subdevice #238
  Subdevice #239: subdevice #239
  Subdevice #240: subdevice #240
  Subdevice #241: subdevice #241
  Subdevice #242: subdevice #242
  Subdevice #243: subdevice #243
  Subdevice #244: subdevice #244
  Subdevice #245: subdevice #245
  Subdevice #246: subdevice #246
  Subdevice #247: subdevice #247
  Subdevice #248: subdevice #248
  Subdevice #249: subdevice #249
  Subdevice #250: subdevice #250
  Subdevice #251: subdevice #251
  Subdevice #252: subdevice #252
  Subdevice #253: subdevice #253
  Subdevice #254: subdevice #254
  Subdevice #255: subdevice #255
card 0: XFi [Creative X-Fi], device 3: ctxfi [Side]
  Subdevices: 256/256
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
  Subdevice #8: subdevice #8
  Subdevice #9: subdevice #9
  Subdevice #10: subdevice #10
  Subdevice #11: subdevice #11
  Subdevice #12: subdevice #12
  Subdevice #13: subdevice #13
  Subdevice #14: subdevice #14
  Subdevice #15: subdevice #15
  Subdevice #16: subdevice #16
  Subdevice #17: subdevice #17
  Subdevice #18: subdevice #18
  Subdevice #19: subdevice #19
  Subdevice #20: subdevice #20
  Subdevice #21: subdevice #21
  Subdevice #22: subdevice #22
  Subdevice #23: subdevice #23
  Subdevice #24: subdevice #24
  Subdevice #25: subdevice #25
  Subdevice #26: subdevice #26
  Subdevice #27: subdevice #27
  Subdevice #28: subdevice #28
  Subdevice #29: subdevice #29
  Subdevice #30: subdevice #30
  Subdevice #31: subdevice #31
  Subdevice #32: subdevice #32
  Subdevice #33: subdevice #33
  Subdevice #34: subdevice #34
  Subdevice #35: subdevice #35
  Subdevice #36: subdevice #36
  Subdevice #37: subdevice #37
  Subdevice #38: subdevice #38
  Subdevice #39: subdevice #39
  Subdevice #40: subdevice #40
  Subdevice #41: subdevice #41
  Subdevice #42: subdevice #42
  Subdevice #43: subdevice #43
  Subdevice #44: subdevice #44
  Subdevice #45: subdevice #45
  Subdevice #46: subdevice #46
  Subdevice #47: subdevice #47
  Subdevice #48: subdevice #48
  Subdevice #49: subdevice #49
  Subdevice #50: subdevice #50
  Subdevice #51: subdevice #51
  Subdevice #52: subdevice #52
  Subdevice #53: subdevice #53
  Subdevice #54: subdevice #54
  Subdevice #55: subdevice #55
  Subdevice #56: subdevice #56
  Subdevice #57: subdevice #57
  Subdevice #58: subdevice #58
  Subdevice #59: subdevice #59
  Subdevice #60: subdevice #60
  Subdevice #61: subdevice #61
  Subdevice #62: subdevice #62
  Subdevice #63: subdevice #63
  Subdevice #64: subdevice #64
  Subdevice #65: subdevice #65
  Subdevice #66: subdevice #66
  Subdevice #67: subdevice #67
  Subdevice #68: subdevice #68
  Subdevice #69: subdevice #69
  Subdevice #70: subdevice #70
  Subdevice #71: subdevice #71
  Subdevice #72: subdevice #72
  Subdevice #73: subdevice #73
  Subdevice #74: subdevice #74
  Subdevice #75: subdevice #75
  Subdevice #76: subdevice #76
  Subdevice #77: subdevice #77
  Subdevice #78: subdevice #78
  Subdevice #79: subdevice #79
  Subdevice #80: subdevice #80
  Subdevice #81: subdevice #81
  Subdevice #82: subdevice #82
  Subdevice #83: subdevice #83
  Subdevice #84: subdevice #84
  Subdevice #85: subdevice #85
  Subdevice #86: subdevice #86
  Subdevice #87: subdevice #87
  Subdevice #88: subdevice #88
  Subdevice #89: subdevice #89
  Subdevice #90: subdevice #90
  Subdevice #91: subdevice #91
  Subdevice #92: subdevice #92
  Subdevice #93: subdevice #93
  Subdevice #94: subdevice #94
  Subdevice #95: subdevice #95
  Subdevice #96: subdevice #96
  Subdevice #97: subdevice #97
  Subdevice #98: subdevice #98
  Subdevice #99: subdevice #99
  Subdevice #100: subdevice #100
  Subdevice #101: subdevice #101
  Subdevice #102: subdevice #102
  Subdevice #103: subdevice #103
  Subdevice #104: subdevice #104
  Subdevice #105: subdevice #105
  Subdevice #106: subdevice #106
  Subdevice #107: subdevice #107
  Subdevice #108: subdevice #108
  Subdevice #109: subdevice #109
  Subdevice #110: subdevice #110
  Subdevice #111: subdevice #111
  Subdevice #112: subdevice #112
  Subdevice #113: subdevice #113
  Subdevice #114: subdevice #114
  Subdevice #115: subdevice #115
  Subdevice #116: subdevice #116
  Subdevice #117: subdevice #117
  Subdevice #118: subdevice #118
  Subdevice #119: subdevice #119
  Subdevice #120: subdevice #120
  Subdevice #121: subdevice #121
  Subdevice #122: subdevice #122
  Subdevice #123: subdevice #123
  Subdevice #124: subdevice #124
  Subdevice #125: subdevice #125
  Subdevice #126: subdevice #126
  Subdevice #127: subdevice #127
  Subdevice #128: subdevice #128
  Subdevice #129: subdevice #129
  Subdevice #130: subdevice #130
  Subdevice #131: subdevice #131
  Subdevice #132: subdevice #132
  Subdevice #133: subdevice #133
  Subdevice #134: subdevice #134
  Subdevice #135: subdevice #135
  Subdevice #136: subdevice #136
  Subdevice #137: subdevice #137
  Subdevice #138: subdevice #138
  Subdevice #139: subdevice #139
  Subdevice #140: subdevice #140
  Subdevice #141: subdevice #141
  Subdevice #142: subdevice #142
  Subdevice #143: subdevice #143
  Subdevice #144: subdevice #144
  Subdevice #145: subdevice #145
  Subdevice #146: subdevice #146
  Subdevice #147: subdevice #147
  Subdevice #148: subdevice #148
  Subdevice #149: subdevice #149
  Subdevice #150: subdevice #150
  Subdevice #151: subdevice #151
  Subdevice #152: subdevice #152
  Subdevice #153: subdevice #153
  Subdevice #154: subdevice #154
  Subdevice #155: subdevice #155
  Subdevice #156: subdevice #156
  Subdevice #157: subdevice #157
  Subdevice #158: subdevice #158
  Subdevice #159: subdevice #159
  Subdevice #160: subdevice #160
  Subdevice #161: subdevice #161
  Subdevice #162: subdevice #162
  Subdevice #163: subdevice #163
  Subdevice #164: subdevice #164
  Subdevice #165: subdevice #165
  Subdevice #166: subdevice #166
  Subdevice #167: subdevice #167
  Subdevice #168: subdevice #168
  Subdevice #169: subdevice #169
  Subdevice #170: subdevice #170
  Subdevice #171: subdevice #171
  Subdevice #172: subdevice #172
  Subdevice #173: subdevice #173
  Subdevice #174: subdevice #174
  Subdevice #175: subdevice #175
  Subdevice #176: subdevice #176
  Subdevice #177: subdevice #177
  Subdevice #178: subdevice #178
  Subdevice #179: subdevice #179
  Subdevice #180: subdevice #180
  Subdevice #181: subdevice #181
  Subdevice #182: subdevice #182
  Subdevice #183: subdevice #183
  Subdevice #184: subdevice #184
  Subdevice #185: subdevice #185
  Subdevice #186: subdevice #186
  Subdevice #187: subdevice #187
  Subdevice #188: subdevice #188
  Subdevice #189: subdevice #189
  Subdevice #190: subdevice #190
  Subdevice #191: subdevice #191
  Subdevice #192: subdevice #192
  Subdevice #193: subdevice #193
  Subdevice #194: subdevice #194
  Subdevice #195: subdevice #195
  Subdevice #196: subdevice #196
  Subdevice #197: subdevice #197
  Subdevice #198: subdevice #198
  Subdevice #199: subdevice #199
  Subdevice #200: subdevice #200
  Subdevice #201: subdevice #201
  Subdevice #202: subdevice #202
  Subdevice #203: subdevice #203
  Subdevice #204: subdevice #204
  Subdevice #205: subdevice #205
  Subdevice #206: subdevice #206
  Subdevice #207: subdevice #207
  Subdevice #208: subdevice #208
  Subdevice #209: subdevice #209
  Subdevice #210: subdevice #210
  Subdevice #211: subdevice #211
  Subdevice #212: subdevice #212
  Subdevice #213: subdevice #213
  Subdevice #214: subdevice #214
  Subdevice #215: subdevice #215
  Subdevice #216: subdevice #216
  Subdevice #217: subdevice #217
  Subdevice #218: subdevice #218
  Subdevice #219: subdevice #219
  Subdevice #220: subdevice #220
  Subdevice #221: subdevice #221
  Subdevice #222: subdevice #222
  Subdevice #223: subdevice #223
  Subdevice #224: subdevice #224
  Subdevice #225: subdevice #225
  Subdevice #226: subdevice #226
  Subdevice #227: subdevice #227
  Subdevice #228: subdevice #228
  Subdevice #229: subdevice #229
  Subdevice #230: subdevice #230
  Subdevice #231: subdevice #231
  Subdevice #232: subdevice #232
  Subdevice #233: subdevice #233
  Subdevice #234: subdevice #234
  Subdevice #235: subdevice #235
  Subdevice #236: subdevice #236
  Subdevice #237: subdevice #237
  Subdevice #238: subdevice #238
  Subdevice #239: subdevice #239
  Subdevice #240: subdevice #240
  Subdevice #241: subdevice #241
  Subdevice #242: subdevice #242
  Subdevice #243: subdevice #243
  Subdevice #244: subdevice #244
  Subdevice #245: subdevice #245
  Subdevice #246: subdevice #246
  Subdevice #247: subdevice #247
  Subdevice #248: subdevice #248
  Subdevice #249: subdevice #249
  Subdevice #250: subdevice #250
  Subdevice #251: subdevice #251
  Subdevice #252: subdevice #252
  Subdevice #253: subdevice #253
  Subdevice #254: subdevice #254
  Subdevice #255: subdevice #255
card 0: XFi [Creative X-Fi], device 4: ctxfi [IEC958 Non-audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
[root@arch_desktop firekage]# 


One thing more - this Logitech Webcam 270 it has built in microphone, so there sould be something that use sound from it.

Last edited by firekage (2015-03-29 22:38:35)

Offline

#15 2015-03-29 23:35:55

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: Vid and pid are ingored by the kernel, pulseaudio and alsa config

firekage wrote:

Well, yes and no. I want my primary sound card to be snd_ctxfi, but when i would like to watch something trough hdmi on big tv screen from my computer i want to use hdmi output trough nvidia card (also, remember that in k > system settings > multimedia there is only listed xfi, not nvidia, and not even usb connected webcam that has built in mic - they should be visible, but there are not).

I have no idea how KDE handles audio. I use mpv as my player and I have this in ~/.config/mpv/input.conf

Ctrl+s cycle_values audio-device alsa/hdmi alsa/default

This allows switching between HDMI and the default device while mpv is running. But this is specific to mpv. How to do this in KDE, like I said, no idea.

firekage wrote:

When i do a suspend to disk and resume i can still use xfi because it wakes up and there is sound but there is no for hdmi and nvidia.

That sounds like a bug somewhere. I don't use a NVidia card currently, so I can't check whether I get the same behavior, someone else with a Nvidia card will need to help here.

firekage wrote:

Sometimes the sound is being lost. For an example, when i log in, open up pidgin, than firefox and skype for the last, i can do a call, have sound in skype and other devices (like vids from youtube with firefox or pidgin) but when i open it up in the "wrong" order than i can't hear anybody using skype, for an example: i open skype, than pidgin, and firefox for the last...skype lost sound and i have to shut id down and sometimes log in and log in and start it with correct order of start. I think it is related to order of sound devices, and their index.

Skype uses pulseaudio, I would say that has a much bigger effect than the index.

firekage wrote:

I had also something funny thing related to the first case scenario: i opened up firefox, pidgin, skype - have sound in skype, can do a call. Then i opened thunderbird, and was informed about new emails...instantly lost sound in skype. That's why i'm trying to check all of this with vid, pids, correct order.

Vid and pid is definitely not the correct solution. I don't think even the index is. I would say the problem is that some of your applications are configured to use alsa and some use pulseaudio, and all this doesn't work well together. If you want everything to work, then every application needs to be configured to use pulseaudio. I've never used pulseaudio, so no idea how to set it up.

firekage wrote:

Also, these two indices, what two devices? I use only one, from nvidia.

I thought you have two hda_intel devices, but you don't because you disabled the internal audio in the BIOS.

firekage wrote:

One thing more - this Logitech Webcam 270 it has built in microphone, so there sould be something that use sound from it.

Some google results say that you need to modprobe the snd_usb_audio module yourself. So try that.

Offline

#16 2015-03-31 13:17:13

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 624

Re: Vid and pid are ingored by the kernel, pulseaudio and alsa config

Gusar wrote:

I have no idea how KDE handles audio. I use mpv as my player and I have this in ~/.config/mpv/input.conf

Ctrl+s cycle_values audio-device alsa/hdmi alsa/default

This allows switching between HDMI and the default device while mpv is running. But this is specific to mpv. How to do this in KDE, like I said, no idea.

Nice apps, thanks. I will try to check if KDE could do the same.



firekage wrote:

Sometimes the sound is being lost. For an example, when i log in, open up pidgin, than firefox and skype for the last, i can do a call, have sound in skype and other devices (like vids from youtube with firefox or pidgin) but when i open it up in the "wrong" order than i can't hear anybody using skype, for an example: i open skype, than pidgin, and firefox for the last...skype lost sound and i have to shut id down and sometimes log in and log in and start it with correct order of start. I think it is related to order of sound devices, and their index.

Skype uses pulseaudio, I would say that has a much bigger effect than the index.

Yes, that's righ. That's why i have alsa as primary sound system and pulse only for skype. I will write something more at the bottom about alsa, pulseaudio and not being able to see different devices in K > system settings > multimedia othat than XFI.


firekage wrote:

I had also something funny thing related to the first case scenario: i opened up firefox, pidgin, skype - have sound in skype, can do a call. Then i opened thunderbird, and was informed about new emails...instantly lost sound in skype. That's why i'm trying to check all of this with vid, pids, correct order.

Vid and pid is definitely not the correct solution. I don't think even the index is. I would say the problem is that some of your applications are configured to use alsa and some use pulseaudio, and all this doesn't work well together. If you want everything to work, then every application needs to be configured to use pulseaudio. I've never used pulseaudio, so no idea how to set it up.

Yest, that's right. I use alsa for all the apps and sound but pulse only for skype. There is only one problem - either to choose pulse for all apps and remove alsa, or to choose alsa for all apps and remove pulse.  I can't do that. Why? Skype without pulse does not work. Alsa can be configured with pulse, or pulse with alsa to work separately: all apps go to alsa, skype goes only to pulse. It can be configured that way but pulse is not able to configure devices in correct order. If i remove alsa, than i would have, or not have, random lack of sound because devices that are being used will have different index at each boot. With only pulse it is possible that XFI will be primary, but it can be also nvidia hdmi or even Logitech usb webcam...that's why i can't leave it like that. Only alsa can be set up with indexes and correct order.

firekage wrote:

One thing more - this Logitech Webcam 270 it has built in microphone, so there sould be something that use sound from it.

Some google results say that you need to modprobe the snd_usb_audio module yourself. So try that.


Tried this. But:

modprobe: ERROR: could not insert 'snd_usb_audio': Invalid argument

Ok, i wrote earlier that i post something more relating alsa, pulse, my devices and KDE. I checked this on different Arch instllation (i have two of them in case i break someting in one, that in second i would be able to see config files that aren't being altered). I'm not being able to choose devices, or change them in KDE because of my setup alsa to work with pulse in order to being able to use skype and to being able for pulse only to work with pulse while alsa do rest of the job. I checked alsa and pulse settings on second Arch and all my devices are listed, are being visible. When i changed setting in alsa, pulse in the way that alsa do all of the job, while pulse works only with skype, and pulse won't grab hardware devices from alsa, i was not able to see other devices in K > system settings > multimedia, like from my primary Arch, but they are visible in kmix (only usb webcam is not visible in kmix). 

So, the question remains: how to configure alsa and pulse in the way mentioned above with the ability to change devices in KDE, to being able to change them and see them.  Pulse chapter on archwiki has this:

ALSA/dmix without grabbing hardware device
Note: This section describes alternative configuration, which is generally not recommended.

You may want to use ALSA directly in most of your applications and to be able to use other applications, which constantly require PulseAudio at the same time. The following steps allow you to make PulseAudio use dmix instead of grabbing ALSA hardware device.

Remove package pulseaudio-alsa, which provides compatibility layer between ALSA applications and PulseAudio. After this your ALSA apps will use ALSA directly without being hooked by Pulse.

Edit /etc/pulse/default.pa.

Find and uncomment lines which load back-end drivers. Add device parameters as follows. Then find and comment lines which load autodetect modules.

load-module module-alsa-sink device=dmix
load-module module-alsa-source device=dsnoop
# load-module module-udev-detect
# load-module module-detect

Optional: If you use kdemultimedia-kmix you may want to control ALSA volume instead of PulseAudio volume:

$ echo export KMIX_PULSEAUDIO_DISABLE=1 > ~/.kde4/env/kmix_disable_pulse.sh
$ chmod +x ~/.kde4/env/kmix_disable_pulse.sh

Now, reboot your computer and try running ALSA and PulseAudio applications at the same time. They both should produce sound simultaneously.

    Use pavucontrol to control PulseAudio volume if needed


And indeed, i did it. Because of that i'm not able to see other devices in KDE than my primary XFI. Without this i see all of them but...i'm not able to use skype with pulse, and pulse could grab alsa devices so in other apps i would not have sound.

How to fix it? What to change in order to have:
-working alsa
-working pulse with skype and only for skype
-pulse that would not grab alsa devices
-being able to see all of devices in KDE.


Edit: it looks that all mentioned above things can be done using only pulseaudio without alsa. I checked it on second arch, purged alsa (left only alsa compatibile layers for pulseaudio, where main sound is done by pulseaudio) and i can using pavucontrol have mixed sound from different sources (www, deadbeef, skype, games) on the same sound card, i can play a sound from xfi and nvidia sound chip simultanously on different machines (xfi - speakers, nvidia sound chip - tv), can mix apps (only one i found does not have sound - pidgin, but pidgin even with alsa needs in settings to have a change done or there will be no sound, cand find setting for pulse though) but what is more important - i can switch sound outputs with pavucontrol from xfi to nvidia (and others) and all of them are visible in pulseaudio and pavucontrol. Unfortunately, wine does not work with pulseaudio, needs layer between them. I will check this:

Also install lib32-libpulse and lib32-alsa-plugins

from pulseaudio archwiki faq.

One thing to do - how to set/choose/lock specific sound card to be primary with pulseaudio (in case of suspend or random lacks of sound - i don't have problem with lacks of sound during each boot even without setting primary sound card in pulse but i'm, not sure what would be if i enable integrated sound card from motherboard and intel processor and how this would work with xfi on each boot) as by doint index=0...n in alsa config case.

Last edited by firekage (2015-03-31 19:05:43)

Offline

Board footer

Powered by FluxBB