All of lore.kernel.org
 help / color / mirror / Atom feed
From: GitHub issues - opened <github@alsa-project.org>
To: alsa-devel@alsa-project.org
Subject: ALC4082: S/PDIF volume redirecting to headphone volume - asus rog crosshair x670e hero
Date: Mon,  4 Aug 2025 20:37:40 +0200 (CEST)	[thread overview]
Message-ID: <1858a440daddbf00-webhooks-bot@alsa-project.org> (raw)
In-Reply-To: <1858a440d847c100-webhooks-bot@alsa-project.org>

alsa-project/alsa-ucm-conf issue #598 was opened from LuanVSO:

hi, i had a problem where opening the kde plasma volume applet would make the volume on my headphone jump to the maximum.
after muting the "PCM 2" channel on alsamixer i notice that the volume on the headphone would go muted instead.
so i edited the ALC4080-HiFi.conf file and remove every mention of S/PDIF and rebooted my machine.

after the change the problem didn't happen anymore.
what do you need to fix the mapping problem?

i think this happens because the "PCM 2" volume controls is redirecting to headphone output, but it doenst have a slider, so it is either max or muted:

<img width="1259" height="967" alt="Image" src="https://github.com/user-attachments/assets/3b266bb7-7e1c-4a7a-b448-affabf06b01c" />

(also the S/PDIF aways appeared as connected even though i did not have anything connected to it, don't know if it is expected)

[alsa-info.sh](https://paste.centos.org/view/c6545d44)
<details>
<summary>edited ALC4080-HiFi.conf</summary>

```
Define {
	SpeakerMixer "PCM"
	SpeakerMindex "0"
	SpeakerJack "Speaker - Output Jack"
	SpeakerPCM "hw:${CardId}"

	HeadphonesName "Front Headphones"
	HeadphonesMixer "PCM"
	HeadphonesMindex "1"
	HeadphonesJack "Headphone - Output Jack"
	HeadphonesPCM "hw:${CardId},1"

	Mic1Name "Microphone"
	Mic1Mixer "Mic"
	Mic1Mindex "0"
	Mic1Jack "Mic - Input Jack"
	Mic1PCM "hw:${CardId},2"

	Mic2Name ""
	Mic2Mixer ""
	Mic2Mindex "0"
	Mic2Jack ""
	Mic2PCM ""

	Line1Name "Line Input"
	Line1Mixer "Line"
	Line1Mindex "0"
	Line1Jack "Line - Input Jack"
	Line1PCM "hw:${CardId},1"

#	SpdifName "S/PDIF Output"
#	SpdifPCM "hw:${CardId},3"
#	SpdifMixer "PCM"
#	SpdifMindex "2"
}

If.speaker_ctl {
	Condition {
		Type ControlExists
		Control "name='Speaker Playback Switch'"
	}
	True.Define.SpeakerMixer "Speaker"
}

If.front_hp_ctl {
	Condition {
		Type ControlExists
		Control "name='Front Headphone Playback Switch'"
	}
	True.Define {
		HeadphonesMixer "Front Headphone"
		HeadphonesMindex "0"
	}
}

#If.spdif_ctl {
#	Condition {
#		Type ControlExists
#		Control "name='IEC958 Playback Switch'"
#	}
#	True.Define {
#		SpdifMixer "IEC958"
#		SpdifMindex "0"
#	}
#}

#If.spdif_nodev {
#	Condition {
#		Type RegexMatch
#		String "${CardComponents}"
#		Regex "USB(0db0:36e7)"
#	}
#	True.Define.SpdifName ""
#}

#If.spdif_dev2 {
#	Condition {
#		Type RegexMatch
#		String "${CardComponents}"
#		Regex "USB(0b05:(1996|1a5[23c])|0db0:1feb)"
#	}
#	True.Define.SpdifPCM "hw:${CardId},2"
#}

If.gigabyte-aorus-ultra {
	Condition {
		Type RegexMatch
		String "${CardComponents}"
		Regex "USB(0414:a014)"
	}
	True.Define {
		Mic1Name "Front Microphone"
		Mic1PCM "hw:${CardId},0"
		Mic2Name "Rear Microphone"
		Mic2Mixer "Mic"
		Mic2Mindex "1"
		Mic2Jack "name='Mic - Input Jack',index=1"
		Mic2PCM "hw:${CardId},1"
		SpdifName ""
		Line1Name ""
	}
}

If.asus-rog-usb {
	Condition {
		Type RegexMatch
		String "${CardComponents}"
		Regex "USB(0b05:1996)"
	}
	True.Define {
		Mic1Name "Front Microphone"
		Mic2Name "Microphone"
		Mic2Mixer "Analog In"
		Mic2Jack "Analog In - Input Jack"
		Mic2PCM "hw:${CardId}"
	}
}

If.asrock-taichi {
	Condition {
		Type RegexMatch
		String "${CardComponents}"
		Regex "USB(26ce:0a0[68b])"
	}
	True.Define {
		Line1Name ""
		Mic1Name "Rear Input"
		Mic1PCM "hw:${CardId},0"
		Mic2Name "Front Microphone"
		Mic2Mixer "Mic"
		Mic2Jack "Front Mic - Input Jack"
		Mic2PCM "hw:${CardId},1"
	}
}

If.wrx80-sage {
	Condition {
		Type RegexMatch
		String "${CardComponents}"
		Regex "USB(0b05:1984)"
	}
	True.Define {
		Mic2Name "Front Microphone"
		Mic2Mixer "Analog In"
		Mic2Jack "Analog In - Input Jack"
		Mic2PCM "hw:${CardId}"
	}
}

If.msi-meg-unify {
	Condition {
		Type RegexMatch
		String "${CardComponents}"
		Regex "USB(0db0:82c7)"
	}
	True.Define {
		HeadphonesName ""
		SpdifName ""
	}
}

If.asus-rog-strix {
	Condition {
		Type RegexMatch
		String "${CardComponents}"
		Regex "USB(0b05:1999)"
	}
	True.Define {
		Line1PCM "hw:${CardId},3"
		HeadphonesName ""
		SpdifName ""
	}
}

SectionVerb {
	EnableSequence [
		disdevall ""
	]

	Value.TQ "HiFi"
}

SectionDevice."Speaker" {
	Comment "Speakers"

	EnableSequence [
		cset "name='${var:SpeakerMixer} Playback Switch',index=${var:SpeakerMindex} on"
	]

	DisableSequence [
		cset "name='${var:SpeakerMixer} Playback Switch',index=${var:SpeakerMindex} off"
	]

	Value {
		PlaybackChannels 2
		PlaybackPriority 200
		PlaybackPCM "${var:SpeakerPCM}"
		JackControl "${var:SpeakerJack}"
		PlaybackMixerElem "${var:SpeakerMixer},${var:SpeakerMindex}"
	}

	Variant."HiFi 5+1".Value.PlaybackChannels 6
	Variant."HiFi 7+1".Value.PlaybackChannels 8
}

If.headphones {
	Condition {
		Type String
		Empty "${var:HeadphonesName}"
	}
	False.SectionDevice."Headphones" {
		Comment "${var:HeadphonesName}"

		EnableSequence [
			cset "name='${var:HeadphonesMixer} Playback Switch',index=${var:HeadphonesMindex} on"
		]

		DisableSequence [
			cset "name='${var:HeadphonesMixer} Playback Switch',index=${var:HeadphonesMindex} off"
		]

		Value {
			PlaybackPriority 300
			PlaybackPCM "${var:HeadphonesPCM}"
			JackControl "${var:HeadphonesJack}"
			PlaybackMixerElem "${var:HeadphonesMixer},${var:HeadphonesMindex}"
		}
	}
}

#If.spdif {
#	Condition {
#		Type String
#		Empty "${var:SpdifName}"
#	}
#	False.SectionDevice."SPDIF" {
#		Comment "${var:SpdifName}"
#
#		EnableSequence [
#			cset "name='${var:SpdifMixer} Playback Switch',index=${var:SpdifMindex} on"
#		]
#
#		DisableSequence [
#			cset "name='${var:SpdifMixer} Playback Switch',index=${var:SpdifMindex} off"
#		]
#
#		Value {
#			PlaybackPriority 100
#			PlaybackPCM "${var:SpdifPCM}"
#			PlaybackMixerElem "${var:SpdifMixer},${var:SpdifMindex}"
#		}
#	}
#}

If.line1 {
	Condition {
		Type String
		Empty "${var:Line1Name}"
	}
	False.SectionDevice."Line1" {
		Comment "${var:Line1Name}"

		EnableSequence [
			cset "name='${var:Line1Mixer} Capture Switch',index=${var:Line1Mindex} on"
		]

		DisableSequence [
			cset "name='${var:Line1Mixer} Capture Switch',index=${var:Line1Mindex} off"
		]

		Value {
			CapturePriority 100
			CapturePCM "${var:Line1PCM}"
			JackControl "${var:Line1Jack}"
			CaptureMixerElem "${var:Line1Mixer},${var:Line1Mindex}"
		}
	}
}

If.mic1 {
	Condition {
		Type String
		Empty "${var:Mic1Name}"
	}
	False.SectionDevice."Mic1" {
		Comment "${var:Mic1Name}"

		EnableSequence [
			cset "name='${var:Mic1Mixer} Capture Switch',index=${var:Mic1Mindex} on"
		]

		DisableSequence [
			cset "name='${var:Mic1Mixer} Capture Switch',index=${var:Mic1Mindex} off"
		]

		Value {
			CapturePriority 300
			CapturePCM "${var:Mic1PCM}"
			JackControl "${var:Mic1Jack}"
			CaptureMixerElem "${var:Mic1Mixer},${var:Mic1Mindex}"
		}
	}
}

If.mic2 {
	Condition {
		Type String
		Empty "${var:Mic2Name}"
	}
	False.SectionDevice."Mic2" {
		Comment "${var:Mic2Name}"

		EnableSequence [
			cset "name='${var:Mic2Mixer} Capture Switch',index=${var:Mic2Mindex} on"
		]

		DisableSequence [
			cset "name='${var:Mic2Mixer} Capture Switch',index=${var:Mic2Mindex} off"
		]

		Value {
			CapturePriority 400
			CapturePCM "${var:Mic2PCM}"
			JackControl "${var:Mic2Jack}"
			CaptureMixerElem "${var:Mic2Mixer},${var:Mic2Mindex}"
		}
	}
}

```

</details>

Issue URL     : https://github.com/alsa-project/alsa-ucm-conf/issues/598
Repository URL: https://github.com/alsa-project/alsa-ucm-conf

       reply	other threads:[~2025-08-04 18:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1858a440d847c100-webhooks-bot@alsa-project.org>
2025-08-04 18:37 ` GitHub issues - opened [this message]
     [not found] <1858a6da97723200-webhooks-bot@alsa-project.org>
2025-08-04 19:25 ` ALC4082: S/PDIF volume redirecting to headphone volume - asus rog crosshair x670e hero GitHub issues - edited

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1858a440daddbf00-webhooks-bot@alsa-project.org \
    --to=github@alsa-project.org \
    --cc=alsa-devel@alsa-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.