Skip to content

[ALC257][Thinkpad L14 Gen4]No automatic profile switching when plugging in headphones #623

@fradsj

Description

@fradsj

Hello.

Since I have upgraded to Debian 13 (trixie), I can't get my sound system to switch automatically to the right profile when I plug in my headphones.

I tried to modify the /HDA/HiFi-analog.conf file, as it seems to be the one that corresponds to my device, but nothing I've tried could make it work properly.

alsaucm dump json

{
  "Verbs": {
    "HiFi": {
      "Comment": "Play HiFi quality Music",
      "Devices": {
        "Headphones": {
          "Comment": "Headphones",
          "Values": {
            "CaptureCTL": "_ucm0001.hw:sofhdadsp",
            "JackControl": "Headphone Jack",
            "PlaybackCTL": "_ucm0001.hw:sofhdadsp",
            "PlaybackMasterElem": "Master",
            "PlaybackMixerElem": "Headphone",
            "PlaybackPCM": "_ucm0001.hw:sofhdadsp",
            "PlaybackPriority": "200",
            "PlaybackSwitch": "Headphone Playback Switch",
            "PlaybackVolume": "Headphone Playback Volume",
            "TQ": "HiFi"
          }
        },
        "Mic1": {
          "Comment": "Digital Microphone",
          "Values": {
            "CaptureCTL": "_ucm0001.hw:sofhdadsp",
            "CaptureMicInfoFile": "/var/lib/alsa/card0.conf.d/dmics-nhlt.json",
            "CaptureMixerElem": "Dmic0",
            "CapturePCM": "_ucm0001.hw:sofhdadsp,6",
            "CapturePriority": "100",
            "CaptureSwitch": "Dmic0 Capture Switch",
            "CaptureVolume": "Dmic0 Capture Volume",
            "PlaybackCTL": "_ucm0001.hw:sofhdadsp",
            "TQ": "HiFi"
          }
        },
        "Mic2": {
          "Comment": "Stereo Microphone",
          "Values": {
            "CaptureCTL": "_ucm0001.hw:sofhdadsp",
            "CaptureMasterElem": "Mic Boost",
            "CaptureMixerElem": "Capture",
            "CapturePCM": "_ucm0001.hw:sofhdadsp",
            "CapturePriority": "200",
            "CaptureSwitch": "Capture Switch",
            "CaptureVolume": "Capture Volume",
            "JackControl": "Mic Jack",
            "PlaybackCTL": "_ucm0001.hw:sofhdadsp",
            "TQ": "HiFi"
          }
        },
        "Speaker": {
          "Comment": "Speaker",
          "Values": {
            "CaptureCTL": "_ucm0001.hw:sofhdadsp",
            "PlaybackCTL": "_ucm0001.hw:sofhdadsp",
            "PlaybackMasterElem": "Master",
            "PlaybackMixerElem": "Speaker",
            "PlaybackPCM": "_ucm0001.hw:sofhdadsp",
            "PlaybackPriority": "100",
            "PlaybackSwitch": "Speaker Playback Switch",
            "PlaybackVolume": "Speaker Playback Volume",
            "TQ": "HiFi"
          }
        },
        "HDMI1": {
          "Comment": "HDMI / DisplayPort 1 Output",
          "Values": {
            "CaptureCTL": "_ucm0001.hw:sofhdadsp",
            "JackControl": "HDMI/DP,pcm=3 Jack",
            "PlaybackCTL": "_ucm0001.hw:sofhdadsp",
            "PlaybackPCM": "_ucm0001.hw:sofhdadsp,3",
            "PlaybackPriority": "500",
            "TQ": "HiFi"
          }
        },
        "HDMI2": {
          "Comment": "HDMI / DisplayPort 2 Output",
          "Values": {
            "CaptureCTL": "_ucm0001.hw:sofhdadsp",
            "JackControl": "HDMI/DP,pcm=4 Jack",
            "PlaybackCTL": "_ucm0001.hw:sofhdadsp",
            "PlaybackPCM": "_ucm0001.hw:sofhdadsp,4",
            "PlaybackPriority": "600",
            "TQ": "HiFi"
          }
        },
        "HDMI3": {
          "Comment": "HDMI / DisplayPort 3 Output",
          "Values": {
            "CaptureCTL": "_ucm0001.hw:sofhdadsp",
            "JackControl": "HDMI/DP,pcm=5 Jack",
            "PlaybackCTL": "_ucm0001.hw:sofhdadsp",
            "PlaybackPCM": "_ucm0001.hw:sofhdadsp,5",
            "PlaybackPriority": "700",
            "TQ": "HiFi"
          }
        }
      }
    }
  }
}

I have attached the result of the alsa-info command.

Thansk for all the work, and for your help.

alsa-info.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions