All of lore.kernel.org
 help / color / mirror / Atom feed
* Fixup set PCM/headphones volume from Master
@ 2016-11-07 16:59 David Jordan
  2016-11-07 21:19 ` Clemens Ladisch
  0 siblings, 1 reply; 7+ messages in thread
From: David Jordan @ 2016-11-07 16:59 UTC (permalink / raw)
  To: alsa-devel

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-11-10 19:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-07 16:59 Fixup set PCM/headphones volume from Master David Jordan
2016-11-07 21:19 ` 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

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.