From: David Jordan <david2@system76.com>
To: alsa-devel@alsa-project.org
Subject: Fixup set PCM/headphones volume from Master
Date: Mon, 07 Nov 2016 08:59:39 -0800 [thread overview]
Message-ID: <1478537979.2123627.780087305.7503B79D@webmail.messagingengine.com> (raw)
I'm working on a kernel-level fixup for a set of hardware which uses a
separate DAC for the "headphones" output. So far, I've gotten
everything but the volume control working correctly. "PCM Playback
Volume" controls the headphones volume since the same digital output
drives both SPDIF and the analog headphones jack.
So, "PCM Playback Volume" should always equal "Master Playback Volume"
when headphones are plugged in. (You can't insert both an SPDIF and
headphones at the same time anyway, since they use the same jack, so
there's no downside there.)
Here's where I could really use some help from people who know ALSA
plumbing better than I do. It seems to me this should be possible by
overriding the "Master Playback Volume" put function with one that finds
the "PCM Playback Volume" control and sets the volume for both controls.
For some reason, I can't seem to access the PCM control from my master
put function. Attempts to find it via snd_ctl_find_id or
snd_ctl_find_numid result in kernel oops. There might be something
simple I'm missing, or perhaps there is a better way to link the two
volume controls?
--
David Jordan
david2@system76.com
next reply other threads:[~2016-11-07 16:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-07 16:59 David Jordan [this message]
2016-11-07 21:19 ` Fixup set PCM/headphones volume from Master Clemens Ladisch
2016-11-07 21:36 ` David Jordan
2016-11-08 14:42 ` Takashi Iwai
2016-11-08 19:17 ` David Jordan
2016-11-10 18:21 ` David Jordan
2016-11-10 19:16 ` David Jordan
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=1478537979.2123627.780087305.7503B79D@webmail.messagingengine.com \
--to=david2@system76.com \
--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.