Skip to contentSkip to conversation

simplest volume control possible

DISCUSSION John Kacur 2 participants 3 messages Nov 28, 2008

lore
Share & tools
lore

John Kacur

author
#0 lore raw

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?

author
#1 lore raw
Quoted 9 lines · John Kacur

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.

#2 lore raw
In reply to John Kacur
Quoted 5 lines · John Kacur

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.