Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Tobias Schneider <tobsnyder@gmx.de>
To: alsa-devel@alsa-project.org
Subject: ALSA Control Questions
Date: Thu, 03 Dec 2009 19:30:38 +0100	[thread overview]
Message-ID: <4B1803CE.3080501@gmx.de> (raw)

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?

             reply	other threads:[~2009-12-03 18:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-03 18:30 Tobias Schneider [this message]
2009-12-03 19:50 ` ALSA Control Questions 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

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=4B1803CE.3080501@gmx.de \
    --to=tobsnyder@gmx.de \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox