All of lore.kernel.org
 help / color / mirror / Atom feed
* ALSA Control Questions
@ 2009-12-03 18:30 Tobias Schneider
  2009-12-03 19:50 ` Daniel Mack
  0 siblings, 1 reply; 8+ messages in thread
From: Tobias Schneider @ 2009-12-03 18:30 UTC (permalink / raw)
  To: alsa-devel

I've got some questions concerning the ALSA control interface...

1. What is a "simple" control? I would like to use the control interface 
to set more than just volume (e.g. I would like to set input gain, 
output attenuation, input channel selection, output channel selection, 
output channel activation...), so I am wondering if I should use 
SNDRV_CTL_ELEM_IFACE_CARD or SNDRV_CTL_ELEM_IFACE_MIXER, as they are 
obviously in context with "simple" control...

2. The more interesting question: as written in "Writing an alsa driver" 
callbacks are basically not atomic, but I am getting  BUG: scheduling 
while atomic: amixer/0x00000001/430 Call Trace: .[..] in "put" 
callback?? So what is meant with "basically not atomic"?? What is 
allowed and what is not allowed, am I able to get hardware interrupts in 
this context?

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

end of thread, other threads:[~2009-12-04 12:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-03 18:30 ALSA Control Questions Tobias Schneider
2009-12-03 19:50 ` Daniel Mack
2009-12-04  9:31   ` ALSA Control Questions (atomicity, error handling) Tobias Schneider
2009-12-04 11:27     ` Daniel Mack
2009-12-04 11:34     ` Daniel Mack
2009-12-04 12:02       ` Tobias Schneider
2009-12-04 12:06         ` Daniel Mack
2009-12-04 12:33     ` Clemens Ladisch

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.