26 Sep
2011
26 Sep
'11
11:21 p.m.
On Mon, Sep 26, 2011 at 04:26:25PM +0300, Peter Ujfalusi wrote:
Applied, thanks.
- ret = snd_soc_put_volsw(kcontrol, ucontrol);
- /* call the appropriate handler depending on the rreg */
- if (mc->rreg)
ret = snd_soc_put_volsw_2r(kcontrol, ucontrol);
- else
ret = snd_soc_put_volsw(kcontrol, ucontrol);
Traditionally this would be done by comparing reg and rreg - if they're the same they're a mono control.