[alsa-devel] simplest volume control possible
I'm looking at the dapm.txt documentation, and I'm looking at the code in codecs like wm8753.c, and I'm thinking that all of this is tremendous overkill for the very simple codec I have. Basically I don't care about power, the thing can be powered on all the time. I put a one pulse on a gpio for volume up and a zero pulse on a gpio for volume down, 0 - 63 pulses though.
Question, then, what would be an appropriate widget to use?
On Fri, Nov 28, 2008 at 3:50 PM, John Kacur jkacur@gmail.com wrote:
I'm looking at the dapm.txt documentation, and I'm looking at the code in codecs like wm8753.c, and I'm thinking that all of this is tremendous overkill for the very simple codec I have. Basically I don't care about power, the thing can be powered on all the time. I put a one pulse on a gpio for volume up and a zero pulse on a gpio for volume down, 0 - 63 pulses though.
Question, then, what would be an appropriate widget to use?
minor correction, a 1 pulse on a gpio for volume up, and a 1 pulse on a different gpio for volume down.
On 28 Nov 2008, at 14:50, "John Kacur" jkacur@gmail.com wrote:
don't care about power, the thing can be powered on all the time. I put a one pulse on a gpio for volume up and a zero pulse on a gpio for volume down, 0 - 63 pulses though.
Question, then, what would be an appropriate widget to use?
You don't need to implement DAPM if you don't want/need to. It'd be helpful to define noop controls for the DAC and output pins like the current TWL4030 driver does but it's not essential.
For your volume control you'll need to write a custom control - all the standard ASoC stuff is for chips with registers.
participants (2)
-
John Kacur
-
Mark Brown