All of lore.kernel.org
 help / color / mirror / Atom feed
* Adding a alsa mixer interface to ibm-acpi
@ 2007-02-25  1:20 Henrique de Moraes Holschuh
  2007-02-26 15:31 ` Takashi Iwai
  0 siblings, 1 reply; 20+ messages in thread
From: Henrique de Moraes Holschuh @ 2007-02-25  1:20 UTC (permalink / raw)
  To: alsa-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
  Cc: ibm-acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Hello,

I am the current maintainer of the ibm-acpi driver for the Linux kernel.
Those of you that own a ThinkPad notebook probably know what I am talking
about.

A ThinkPad notebook has a hardware mixer for volume control (two functions:
volume and mute).  The user can interact with this volume control using
three buttons (up/down/mute), and it is completely implemented in firmware.

ibm-acpi currently exports those controls through a procfs interface, but I
am trying to get rid of it, and instead of just porting the interface to
sysfs attributes, I tried to write a proof-of-concept alsa mixer -- if it is
a mixer, it should be exported as one, not as some driver-specific sysfs
attributes, IMHO :-)

It worked almost perfectly, and it was easy to write.  Many thanks to
Takashi Iwai for his excellent docs at
http://www.alsa-project.org/~iwai/writing-an-alsa-driver/index.html.

The only issue was in userspace, apparently alsamixer ignores VOLATILE
controls and doesn't poll them for updates.  I wonder how widespread such
misbehaviour is?  I may have to write an in-driver polling thread so that I
can send notifications, if it is too widespread.

Anyway, the driver is *not* a stand-alone module, but rather just a small
part of ibm-acpi.  I suppose I could break it into two modules so that the
alsa mixer has its own module, but either it would *have* to depend on
ibm-acpi, or it would have to duplicate a lot of thinkpad specific stuff.

How do you guys feel about an in-tree module that has alsa stuff in it, but
is not part of the alsa tree?  Would that be a problem?

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

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

end of thread, other threads:[~2007-03-12 22:00 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-25  1:20 Adding a alsa mixer interface to ibm-acpi Henrique de Moraes Holschuh
2007-02-26 15:31 ` Takashi Iwai
     [not found]   ` <s5h649pue8z.wl%tiwai-l3A5Bk7waGM@public.gmane.org>
2007-02-26 16:28     ` [Alsa-devel] " Henrique de Moraes Holschuh
2007-02-26 16:36       ` [ibm-acpi-devel] " Takashi Iwai
2007-02-26 17:41         ` Henrique de Moraes Holschuh
     [not found]           ` <20070226174145.GF2909-ZGHd14iZgfaRjzvQDGKj+xxZW9W5cXbT@public.gmane.org>
2007-02-27  1:50             ` [Alsa-devel] " Theodore Tso
2007-02-27  2:14               ` [ibm-acpi-devel] " Henrique de Moraes Holschuh
2007-03-07 21:59                 ` Takashi Iwai
     [not found]                   ` <s5hd53kaf5r.wl%tiwai-l3A5Bk7waGM@public.gmane.org>
2007-03-07 23:02                     ` [Alsa-devel] " Henrique de Moraes Holschuh
2007-03-07 23:12                     ` Shem Multinymous
2007-03-07 23:23                       ` [ibm-acpi-devel] " Tobin Davis
2007-03-07 23:41                         ` Shem Multinymous
2007-03-07 23:42                       ` Henrique de Moraes Holschuh
2007-03-07 23:55                         ` Tobin Davis
     [not found]                           ` <1173311709.4531.30.camel-lPoCD4h/KdUU2NE2KMwFWnnhMCiq3JZZ@public.gmane.org>
2007-03-08  0:38                             ` [Alsa-devel] " Henrique de Moraes Holschuh
2007-03-09 16:29                               ` [ibm-acpi-devel] " Takashi Iwai
     [not found]                                 ` <s5htzwugz22.wl%tiwai-l3A5Bk7waGM@public.gmane.org>
2007-03-10  3:50                                   ` [Alsa-devel] " Henrique de Moraes Holschuh
2007-03-12 12:03                                     ` [ibm-acpi-devel] " Takashi Iwai
2007-03-12 21:00                                       ` Henrique de Moraes Holschuh
2007-03-12 22:00                                         ` Alex Deucher

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.