You are not logged in.

#1 2024-01-26 17:41:36

blindenhahn
Member
Registered: 2024-01-26
Posts: 2

[SOLVED] PulseAudio/Alsa unable to change card profile and sink

After some time, with the audio working perfectly, I encountered some issues changing the default sink.
Running pacmd (or pactl) set-default-sink <sink> seemed to have no effect. So I tried to set the card profile off and then setting it back.
The problem is, I'm unable to change the profile back. I tried pactl set-card-profile alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic HiFi\(HDMI1,HDMI2,HDMI3,Mic1,Mic2,Speaker\) (I know this seems to be a strange profile name, but I couldn't find the right name).
But I get 'Failure: No such entity'.

Here's the output for aplay-lL

null                                                                                                                                                                                   [0/1862]
    Discard all samples (playback) or generate zero samples (capture)                                                                                                                          
lavrate                                                                                                                                                                                        
    Rate Converter Plugin Using Libav/FFmpeg Library                                                                                                                                           
samplerate                                                                                                                                                                                     
    Rate Converter Plugin Using Samplerate Library                                                                                                                                             
speexrate                                                                                                                                                                                      
    Rate Converter Plugin Using Speex Resampler                                                                                                                                                
jack                                                                                                                                                                                           
    JACK Audio Connection Kit                                                                                                                                                                  
oss                                                                                                                                                                                            
    Open Sound System                                                                                                                                                                          
pulse                                                                                                                                                                                          
    PulseAudio Sound Server                                                                                                                                                                    
speex                                                                                                                                                                                          
    Plugin using Speex DSP (resample, agc, denoise, echo, dereverb)                                                                                                                            
upmix                                                                                                                                                                                          
    Plugin for channel upmix (4,6,8)                                                                                                                                                           
vdownmix                                                                                                                                                                                       
    Plugin for channel downmix (stereo) with a simple spacialization                                                                                                                           
default                                                                                                                                                                                        
    Default ALSA Output (currently PulseAudio Sound Server)                                                                                                                                    
sysdefault:CARD=sofhdadsp                                                                                                                                                                      
    sof-hda-dsp,                                                                                                                                                                               
    Default Audio Device                                                                                                                                                                       
usbstream:CARD=sofhdadsp                                                                                                                                                                       
    sof-hda-dsp                                                                                                                                                                                
    USB Stream Output                                                                                                                                                                          
**** List of PLAYBACK Hardware Devices ****                                                                                                                                                    
card 0: sofhdadsp [sof-hda-dsp], device 0: HDA Analog (*) []                                                                                                                                   
  Subdevices: 1/1                                                                                                                                                                              
  Subdevice #0: subdevice #0                                                                                                                                                                   
card 0: sofhdadsp [sof-hda-dsp], device 3: HDMI1 (*) []                                                                                                                                        
  Subdevices: 1/1                                                                                                                                                                              
  Subdevice #0: subdevice #0                                                                                                                                                                   
card 0: sofhdadsp [sof-hda-dsp], device 4: HDMI2 (*) []                                                                                                                                        
  Subdevices: 1/1                                                                                                                                                                              
  Subdevice #0: subdevice #0                                                                                                                                                                   
card 0: sofhdadsp [sof-hda-dsp], device 5: HDMI3 (*) []                                                                                                                                        
  Subdevices: 1/1                                                                                                                                                                              
  Subdevice #0: subdevice #0                                                                                                                                                                   
card 0: sofhdadsp [sof-hda-dsp], device 31: HDA Analog Deep Buffer (*) []                                                                                                                      
  Subdevices: 1/1                                                                                                                                                                              
  Subdevice #0: subdevice #0   

pacmd list-cards:

1 card(s) available.
    index: 0
        name: <alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic>
        driver: <module-alsa-card.c>
        owner module: 6
        properties:
                alsa.card = "0"
                alsa.card_name = "sof-hda-dsp"
                alsa.long_card_name = "DellInc.-Inspiron3501--0HDY89"
                alsa.driver_name = "snd_soc_skl_hda_dsp"
                device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
                sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "a0c8"
                device.product.name = "Tiger Lake-LP Smart Sound Technology Audio Controller"
                device.string = "0"
                device.description = "Tiger Lake-LP Smart Sound Technology Audio Controller"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        profiles:
                HiFi (HDMI1, HDMI2, HDMI3, Headset, Mic1, Speaker): Play HiFi quality Music (HDMI1, HDMI2, HDMI3, Headset, Mic1, Speaker) (priority 43068, available: unknown)
                HiFi (HDMI1, HDMI2, HDMI3, Headphones, Headset, Mic1): Play HiFi quality Music (HDMI1, HDMI2, HDMI3, Headphones, Headset, Mic1) (priority 43168, available: unknown)
                HiFi (HDMI1, HDMI2, HDMI3, Mic1, Mic2, Speaker): Play HiFi quality Music (HDMI1, HDMI2, HDMI3, Mic1, Mic2, Speaker) (priority 42968, available: unknown)
                HiFi (HDMI1, HDMI2, HDMI3, Headphones, Mic1, Mic2): Play HiFi quality Music (HDMI1, HDMI2, HDMI3, Headphones, Mic1, Mic2) (priority 43068, available: unknown)
                off: Off (priority 0, available: unknown)
        active profile: <off>
        ports:
                [Out] HDMI3: HDMI / DisplayPort 3 Output (priority 700, latency offset 0 usec, available: no)
                        properties:

                [Out] HDMI2: HDMI / DisplayPort 2 Output (priority 600, latency offset 0 usec, available: no)
                        properties:

                [Out] HDMI1: HDMI / DisplayPort 1 Output (priority 500, latency offset 0 usec, available: yes)
                        properties:
                                device.product.name = "Inspiron 5348"
                [Out] Speaker: Speaker (priority 100, latency offset 0 usec, available: unknown)
                        properties:

                [In] Headset: Headset Mono Microphone (priority 300, latency offset 0 usec, available: no)
                        properties:

                [In] Mic1: Digital Microphone (priority 100, latency offset 0 usec, available: unknown)
                        properties:

                [Out] Headphones: Headphones (priority 200, latency offset 0 usec, available: no)
                        properties:

                [In] Mic2: Headphones Stereo Microphone (priority 200, latency offset 0 usec, available: no)
                        properties:

/sbin/lsmod | grep snd:

snd_ctl_led            24576  0
snd_soc_skl_hda_dsp    24576  3
snd_soc_hdac_hdmi      45056  1 snd_soc_skl_hda_dsp
snd_soc_intel_hda_dsp_common    16384  1 snd_soc_skl_hda_dsp
snd_sof_probes         24576  0
snd_hda_codec_hdmi     94208  1
snd_hda_codec_realtek   196608  1
snd_hda_codec_generic   114688  1 snd_hda_codec_realtek
snd_soc_dmic           12288  1
snd_sof_pci_intel_tgl    12288  0
snd_sof_intel_hda_common   249856  1 snd_sof_pci_intel_tgl
soundwire_intel        81920  1 snd_sof_intel_hda_common
snd_sof_intel_hda_mlink    36864  2 soundwire_intel,snd_sof_intel_hda_common
snd_sof_intel_hda      24576  1 snd_sof_intel_hda_common
snd_sof_pci            24576  2 snd_sof_intel_hda_common,snd_sof_pci_intel_tgl
snd_sof_xtensa_dsp     16384  1 snd_sof_intel_hda_common
snd_sof               434176  4 snd_sof_pci,snd_sof_intel_hda_common,snd_sof_probes,snd_sof_intel_hda
snd_sof_utils          16384  1 snd_sof
snd_soc_hdac_hda       28672  1 snd_sof_intel_hda_common
snd_hda_ext_core       36864  5 snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_sof_intel_hda_mlink,snd_sof_intel_hda
snd_soc_acpi_intel_match    98304  2 snd_sof_intel_hda_common,snd_sof_pci_intel_tgl
snd_soc_acpi           16384  2 snd_soc_acpi_intel_match,snd_sof_intel_hda_common
snd_soc_core          462848  8 soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_sof_probes,snd_soc_dmic,snd_soc_skl_hda_dsp
snd_compress           28672  2 snd_soc_core,snd_sof_probes
ac97_bus               12288  1 snd_soc_core
snd_pcm_dmaengine      16384  1 snd_soc_core
snd_hda_intel          65536  0
snd_intel_dspcfg       40960  3 snd_hda_intel,snd_sof,snd_sof_intel_hda_common
snd_intel_sdw_acpi     16384  2 snd_sof_intel_hda_common,snd_intel_dspcfg
snd_hda_codec         225280  8 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek,snd_soc_intel_hda_dsp_common,snd_soc_hdac_hda,snd_sof_intel_hda,snd_soc_skl_hda_dsp
snd_hda_core          151552  11 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_hda_codec_realtek,snd_soc_intel_hda_dsp_common,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_sof_intel_hda
snd_hwdep              20480  1 snd_hda_codec
snd_pcm               204800  12 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_compress,snd_soc_core,snd_sof_utils,snd_hda_core,snd_pcm_dmaengine
snd_timer              53248  1 snd_pcm
ledtrig_audio          12288  4 snd_ctl_led,snd_hda_codec_generic,dell_wmi,dell_laptop
snd                   155648  19 snd_ctl_led,snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_sof,snd_timer,snd_soc_hdac_hdmi,snd_compress,snd_soc_core,snd_pcm
soundcore              16384  2 snd_ctl_led,snd

I also have sof-firmware, alsa-ucm-conf, pulseaudio-alsa, alsa-utils and pipewire installed.

If this is a stupid question, feel free to close it.
Also, sorry for my bad English, it is not my native language.

Last edited by blindenhahn (2024-01-26 18:16:54)

Offline

#2 2024-01-26 18:15:36

blindenhahn
Member
Registered: 2024-01-26
Posts: 2

Re: [SOLVED] PulseAudio/Alsa unable to change card profile and sink

So turns out that I was indeed specifying the profile name wrong, I was just picking the name from the zsh suggestions.
The command pacmd set-card-profile 0 HiFi\ \(HDMI1,\ HDMI2,\ HDMI3,\ Mic1,\ Mic2,\ Speaker\) (with spaces) worked for me, and I was able to change the default sink.

Offline

Board footer

Powered by FluxBB