Skip to content

pulse audio not detecting sound card (MTL,HDA) #4068

Closed

Description

@syedk008

aplay 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 1: DeepBuffer (
) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 5: HDMI1 () []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 6: HDMI2 (
) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 7: HDMI3 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0

$pacmd list-cards
0 card(s) available.

ubuntu-22.04, kernelv6.0.2, sof-fw: mtl-002-drop-stable

Activity

  1. plbossart commented on Dec 2, 2022

    @plbossart
    Member

    It's probably a mismatch between topology names and UCM expectations. @RanderWang @ranj063 FYI.

  2. RanderWang commented on Dec 5, 2022

    @RanderWang
  3. added
    bugSomething isn't working
    MTLApplies to Meteor Lake platform.
    PulseAudioPulseAudio restriction
    on Dec 5, 2022
  4. mengdonglin commented on Dec 5, 2022

    @mengdonglin

    @syedk008 Can you please clarify what HD-Audio codec(s) are you using on your MTL platform? Are you using the onboard ALC711 or external HD-Audio codec(s) on Realtek Add-in-card?

  5. added
    P1Blocker bugs or important features
    on Dec 5, 2022
  6. keqiaozhang commented on Dec 5, 2022

    @keqiaozhang

    I can reproduce this issue on our MTL-RVP-HDA, I also copied the ucm2 files(https://github.com/thesofproject/alsa-ucm-conf/tree/master/ucm2/sof-hda-dsp) to /usr/share/alsa/ucm2/, but it still doesn't work.

  7. syedk008 commented on Dec 5, 2022

    @syedk008
    Author

    @syedk008 Can you please clarify what HD-Audio codec(s) are you using on your MTL platform? Are you using the onboard ALC711 or external HD-Audio codec(s) on Realtek Add-in-card?

    ALC245 with Realtek Gen3.x card.

  8. syedk008 commented on Dec 7, 2022

    @syedk008
    Author

    Error from pulseaudio:
    pulseaudio[949]: Failed to find a working profile.
    pulseaudio[949]: Failed to load module "module-alsa-card" (argument: "device_id="0" name="pci-0000_00_1f.3-platform-skl_hda_dsp_generic" card_name="alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1""): initialization failed.

  9. syedk008 commented on Dec 7, 2022

    @syedk008
    Author

    Attached is the pulse audio complete log. Below are the device mappings :
    intel@ubuntu:/dev/snd$ ll
    total 0
    drwxr-xr-x 3 root root 300 Dec 8 04:26 ./
    drwxr-xr-x 17 root root 5560 Dec 8 04:26 ../
    drwxr-xr-x 2 root root 60 Dec 8 04:26 by-path/
    crw-rw----+ 1 root audio 116, 11 Dec 8 04:26 controlC0
    crw-rw----+ 1 root audio 116, 10 Dec 8 04:26 hwC0D0
    crw-rw----+ 1 root audio 116, 9 Dec 8 04:26 hwC0D2
    crw-rw----+ 1 root audio 116, 6 Dec 8 04:30 pcmC0D0c
    crw-rw----+ 1 root audio 116, 5 Dec 8 04:30 pcmC0D0p
    crw-rw----+ 1 root audio 116, 8 Dec 8 04:26 pcmC0D10c
    crw-rw----+ 1 root audio 116, 7 Dec 8 04:26 pcmC0D1p
    crw-rw----+ 1 root audio 116, 2 Dec 8 04:30 pcmC0D5p
    crw-rw----+ 1 root audio 116, 3 Dec 8 04:26 pcmC0D6p
    crw-rw----+ 1 root audio 116, 4 Dec 8 04:26 pcmC0D7p
    crw-rw----+ 1 root audio 116, 1 Dec 8 04:26 seq
    crw-rw----+ 1 root audio 116, 33 Dec 8 04:26 timer

    Pulseaudio error shows:
    (alsa-lib)pcm_hw.c: open '/dev/snd/pcmC0D6c' failed (-2) [
    pulse_audio_log_mtl.txt
    ](url)

  10. plbossart commented on Dec 8, 2022

    @plbossart
    Member

    try using alsaucm to see what you are missing, it'll be a lot less complicated than figuring out what PulseAudio does. PulseAudio is history btw, you ought to be looking at PipeWire.

  11. syedk008 commented on Dec 8, 2022

    @syedk008
    Author

    with changing PCM numbers for Dmic and HDMI in UCM files (Hdmi.conf and HiFi.conf), PulseAudio seems working. These changes may not be compatible with other platforms.

  12. plbossart commented on Dec 8, 2022

    @plbossart
    Member

    can you share those UCM changes, it means the topology is incorrect. @ranj063 @bardliao FYI

  13. 3 remaining items

  14. plbossart commented on Dec 9, 2022

    @plbossart
    Member

    8d0ac8e (Ranjani Sridharan 2022-02-16 10:28:19 -0800 125) id 10

    @ranj063 can you look into this?

  15. bardliao commented on Dec 9, 2022

    @bardliao
    Collaborator

    I think the HDMI PCM IDs are wrong in cavs-passthrough-hdmi.conf

    @ranj063 @bardliao any idea why we are using these, instead of default 5,6,7?

    Define {
    	NUM_HDMIS 	3
    	HDMI1_ID	1
    	HDMI2_ID	2
    	HDMI3_ID	3
    }
    

    This seems to be redundant. We define HDMI_IDs in hdmi-default.conf

            HDMI1_ID                        5
            HDMI2_ID                        6
            HDMI3_ID                        7
            HDMI4_ID                        8
    
  16. syedk008 commented on Dec 9, 2022

    @syedk008
    Author

    I think the HDMI PCM IDs are wrong in cavs-passthrough-hdmi.conf
    @ranj063 @bardliao any idea why we are using these, instead of default 5,6,7?

    Define {
    	NUM_HDMIS 	3
    	HDMI1_ID	1
    	HDMI2_ID	2
    	HDMI3_ID	3
    }
    

    This seems to be redundant. We define HDMI_IDs in hdmi-default.conf

            HDMI1_ID                        5
            HDMI2_ID                        6
            HDMI3_ID                        7
            HDMI4_ID                        8
    

    But UCM expected ids are 3,4,5

  17. plbossart commented on Dec 9, 2022

    @plbossart
    Member

    That's right, the file ucm2/Intel/sof-hda-dsp/Hdmi.conf refers to HDMI devices 3,4,5

    edit: makes sense, HDA analog is 0, digital 1 and alt digital 2. So the base can only be 3.

  18. bardliao commented on Dec 13, 2022

    @bardliao
    Collaborator

    @plbossart In fact, HDMI1_ID is BE id, not PCM id. The pcm id is hard code to 5, 6, 7, 8.

    hdmi-generic.conf will be used by sdw topologies, too. So, we can't simply update the pcm id.
    See thesofproject/sof#6787

  19. libinyang commented on Jan 3, 2023

    @libinyang

    @syedk008 Could you please try thesofproject/sof#6904

  20. syedk008 commented on Jan 5, 2023

    @syedk008
    Author

    @syedk008 Could you please try thesofproject/sof#6904

    yes, changing DMIC_PCM_ID to 6 works. I had tested this change before.

  21. libinyang commented on Feb 6, 2023

    @libinyang

    @syedk008 Patches are merged. Could you please try the tplg for the latest sof code?

  22. mengdonglin commented on Feb 9, 2023

    @mengdonglin

    Closing. @syedk008 Please reopen this issue or file a new one if you still see opens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

MTLApplies to Meteor Lake platform.P1Blocker bugs or important featuresPulseAudioPulseAudio restrictionbugSomething isn't workingtopologyIssues caused by topology

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions