Re: GPIO control from ALSA

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/20/2016 10:03 AM, Petr Kulhavy wrote:
> Hello,
> 
> I'm writing a driver for ASoC "sound card" hardware which uses CPU GPIO to
> mute/unmute an analogue amplifier and another GPIO to control an analogue
> switch for line/mic switching. Is there an abstraction in ALSA to model this
> kind of hardware?

There is no abstraction. Use controls and/or DAPM and the standard GPIO API,
if you grep the sources you'll find a few examples of drivers using GPIOs to
mute amplifiers and similar (e.g. qi_lb60).

- Lars

_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux