Skip to content

[BUG][CML]Paplay has no sound after plug out DP #954

Closed

Description

@YvonneYang2

Summary:
Paplay has no sound after plug out DP

To reproduce

  1. Plug in (connect) an external DP monitor and choose DP as audio output in sound settings
  2. Paplay music via command "paplay 48California_Dreaming.wav"
  3. Plug out the DP monitor and Paplay music again

Expect result
Music should output normally from internal speaker

Actual result
No audio output from the speaker, although internal speaker in sound settings is auto highlighted but it seems not be choosen actually.

Reproduce rate: 100%

Test recipe
Rander UCM https://github.com/RanderWang/intel-UCM
Kernel repo:c536f9f https://github.com/thesofproject/linux/tree/release/sof-v5.0
Firmware repo: b73b9a6 https://github.com/thesofproject/sof/commits/debug-ipc-timeout
Topology: https://github.com/thesofproject/sof/commits/debug-ipc-timeout Same as above SOF repo
file: tools/topology/sof-hda-generic.m4, sof-hda-generic-2ch.tplg
platform: CML laptop with ALC3204 codec

dmesg

[  728.658975] usb 1-4: new high-speed USB device number 7 using xhci_hcd
[  729.177781] usb 1-4: New USB device found, idVendor=2109, idProduct=0100, bcdDevice= 3.00
[  729.177787] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  729.177790] usb 1-4: Product: USB 2.0 BILLBOARD             
[  729.177795] usb 1-4: Manufacturer: VIA Technologies Inc.         
[  729.177797] usb 1-4: SerialNumber: 0000000000000001
[  733.514674] sof-audio-pci 0000:00:1f.3: pcm: open stream 4 dir 0
[  733.514676] sof-audio-pci 0000:00:1f.3: period min 192 max 16384 bytes
[  733.514677] sof-audio-pci 0000:00:1f.3: period count 2 max 16
[  733.514678] sof-audio-pci 0000:00:1f.3: buffer max 65536 bytes
[  733.514817] sof-audio-pci 0000:00:1f.3: format_val=49, rate=48000, ch=2, format=10
[  733.514823] sof-audio-pci 0000:00:1f.3: pcm: hw params stream 4 dir 0
[  733.514826] sof-audio-pci 0000:00:1f.3: generating page table for 000000003b15c552 size 0xffc0 pages 16
[  733.514849] sof-audio-pci 0000:00:1f.3: period_bytes:0x3fc0
[  733.514849] sof-audio-pci 0000:00:1f.3: periods:4
[  733.514861] sof-audio-pci 0000:00:1f.3: stream_tag 1
[  733.514866] sof-audio-pci 0000:00:1f.3: ipc tx: 0x60010000: GLB_STREAM_MSG: PCM_PARAMS
[  733.515061] sof-audio-pci 0000:00:1f.3: ipc tx succeeded: 0x60010000: GLB_STREAM_MSG: PCM_PARAMS
[  733.515064] sof-audio-pci 0000:00:1f.3: pcm: stream dir 0, posn mailbox offset is 790604
[  733.516410] sof-audio-pci 0000:00:1f.3: pcm: trigger stream 4 dir 0 cmd 1
[  733.516417] sof-audio-pci 0000:00:1f.3: ipc tx: 0x60040000: GLB_STREAM_MSG: TRIG_START
[  733.516568] sof-audio-pci 0000:00:1f.3: ipc tx succeeded: 0x60040000: GLB_STREAM_MSG: TRIG_START
[  733.516571] sof-audio-pci 0000:00:1f.3: In hda_link_pcm_trigger cmd=1
[  734.441266] sof-audio-pci 0000:00:1f.3: ipc rx: 0x90020000: GLB_TRACE_MSG
[  734.441308] sof-audio-pci 0000:00:1f.3: ipc rx done: 0x90020000: GLB_TRACE_MSG
[  742.068821] sof-audio-pci 0000:00:1f.3: pcm: trigger stream 4 dir 0 cmd 0
[  742.068846] sof-audio-pci 0000:00:1f.3: ipc tx: 0x60050000: GLB_STREAM_MSG: TRIG_STOP
[  742.069133] sof-audio-pci 0000:00:1f.3: ipc tx succeeded: 0x60050000: GLB_STREAM_MSG: TRIG_STOP
[  742.069148] sof-audio-pci 0000:00:1f.3: In hda_link_pcm_trigger cmd=0
[  742.069235] sof-audio-pci 0000:00:1f.3: pcm: free stream 4 dir 0
[  742.069242] sof-audio-pci 0000:00:1f.3: ipc tx: 0x60030000: GLB_STREAM_MSG: PCM_FREE
[  742.069454] sof-audio-pci 0000:00:1f.3: ipc tx succeeded: 0x60030000: GLB_STREAM_MSG: PCM_FREE
[  742.069521] sof-audio-pci 0000:00:1f.3: pcm: close stream 4 dir 0
[  742.941007] sof-audio-pci 0000:00:1f.3: ipc rx: 0x90020000: GLB_TRACE_MSG
[  742.941042] sof-audio-pci 0000:00:1f.3: ipc rx done: 0x90020000: GLB_TRACE_MSG
[  744.162135] usb 1-4: USB disconnect, device number 7
[  744.241123] HDMI HDA Codec ehdaudio0D2: hdac_hdmi_present_sense: disconnect for pin:port 6:0
[  748.280025] HDMI HDA Codec ehdaudio0D2: No connections found for pin:port 6:0
[  748.280031] sof-audio-pci 0000:00:1f.3: pcm: open stream 4 dir 0
[  748.280033] sof-audio-pci 0000:00:1f.3: period min 192 max 16384 bytes
[  748.280034] sof-audio-pci 0000:00:1f.3: period count 2 max 16
[  748.280035] sof-audio-pci 0000:00:1f.3: buffer max 65536 bytes
[  748.280149] sof-audio-pci 0000:00:1f.3: format_val=49, rate=48000, ch=2, format=10
[  748.280163] sof-audio-pci 0000:00:1f.3: pcm: hw params stream 4 dir 0
[  748.280166] sof-audio-pci 0000:00:1f.3: generating page table for 000000003b15c552 size 0xffc0 pages 16
[  748.280186] sof-audio-pci 0000:00:1f.3: period_bytes:0x3fc0
[  748.280187] sof-audio-pci 0000:00:1f.3: periods:4
[  748.280199] sof-audio-pci 0000:00:1f.3: stream_tag 1
[  748.280204] sof-audio-pci 0000:00:1f.3: ipc tx: 0x60010000: GLB_STREAM_MSG: PCM_PARAMS
[  748.280423] sof-audio-pci 0000:00:1f.3: ipc tx succeeded: 0x60010000: GLB_STREAM_MSG: PCM_PARAMS
[  748.280426] sof-audio-pci 0000:00:1f.3: pcm: stream dir 0, posn mailbox offset is 790604
[  748.280547] sof-audio-pci 0000:00:1f.3: pcm: trigger stream 4 dir 0 cmd 1
[  748.280560] sof-audio-pci 0000:00:1f.3: ipc tx: 0x60040000: GLB_STREAM_MSG: TRIG_START
[  748.280698] sof-audio-pci 0000:00:1f.3: ipc tx succeeded: 0x60040000: GLB_STREAM_MSG: TRIG_START
[  748.280700] sof-audio-pci 0000:00:1f.3: In hda_link_pcm_trigger cmd=1
[  748.941231] sof-audio-pci 0000:00:1f.3: ipc rx: 0x90020000: GLB_TRACE_MSG
[  748.941263] sof-audio-pci 0000:00:1f.3: ipc rx done: 0x90020000: GLB_TRACE_MSG
[  755.024290] sof-audio-pci 0000:00:1f.3: pcm: trigger stream 4 dir 0 cmd 0
[  755.024305] sof-audio-pci 0000:00:1f.3: ipc tx: 0x60050000: GLB_STREAM_MSG: TRIG_STOP
[  755.024536] sof-audio-pci 0000:00:1f.3: ipc tx succeeded: 0x60050000: GLB_STREAM_MSG: TRIG_STOP
[  755.024549] sof-audio-pci 0000:00:1f.3: In hda_link_pcm_trigger cmd=0
[  755.024608] sof-audio-pci 0000:00:1f.3: pcm: free stream 4 dir 0
[  755.024614] sof-audio-pci 0000:00:1f.3: ipc tx: 0x60030000: GLB_STREAM_MSG: PCM_FREE
[  755.024798] sof-audio-pci 0000:00:1f.3: ipc tx succeeded: 0x60030000: GLB_STREAM_MSG: PCM_FREE
[  755.024865] sof-audio-pci 0000:00:1f.3: pcm: close stream 4 dir 0
[  755.941274] sof-audio-pci 0000:00:1f.3: ipc rx: 0x90020000: GLB_TRACE_MSG
[  755.941306] sof-audio-pci 0000:00:1f.3: ipc rx done: 0x90020000: GLB_TRACE_MSG

NoAudioOutput.log
NoAudioOutput_Dmesg.log

Activity

  1. added
    bugSomething isn't working
    CMLApplies to Comet Lake platform
    HDAApplies to HD-Audio bus for codec connection
    on May 16, 2019
  2. YvonneYang2 commented on May 16, 2019

    @YvonneYang2
    Author

    Same root cause with #915 . So close the bug.

  3. added
    duplicateThis issue or pull request already exists
    won't fixThis will not be worked on atm (e.g. a bug closed for lack of user request, hardware etc)
    PulseAudioPulseAudio restriction
    on May 17, 2019
  4. mengdonglin commented on May 17, 2019

    @mengdonglin

    Kernel message shows that Paplay still try to play to the PCM device (#4) for the DP monitor which is actually disconnected and reported by driver:

    [ 744.241123] HDMI HDA Codec ehdaudio0D2: hdac_hdmi_present_sense: disconnect for pin:port 6:0
    [ 748.280025] HDMI HDA Codec ehdaudio0D2: No connections found for pin:port 6:0
    [ 748.280031] sof-audio-pci 0000:00:1f.3: pcm: open stream 4 dir 0

  5. mengdonglin commented on May 27, 2019

    @mengdonglin

    It seems this issue has the same root cause as issue #917 , please refer to comments of @jason77-wang
    #917 (comment)

    For #917, Pulseaudio cannot handle headset-mic and build-in DMIC which belong to 2 different sources.
    For this #954, Pulaudio cannot handle external HDMI/DP display and build-in speaker which belong to 2 different sinks.

  6. added
    UCMRestriction of UCM configuration files
    on Oct 31, 2019
  7. added
    SDWApplies to SoundWire bus for codec connection
    on Nov 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CMLApplies to Comet Lake platformHDAApplies to HD-Audio bus for codec connectionPulseAudioPulseAudio restrictionSDWApplies to SoundWire bus for codec connectionUCMRestriction of UCM configuration filesbugSomething isn't workingduplicateThis issue or pull request already existswon't fixThis will not be worked on atm (e.g. a bug closed for lack of user request, hardware etc)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions