diff options
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/ad1848.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/include/sound/ad1848.h b/include/sound/ad1848.h index a881d5173c64..1271e0dada90 100644 --- a/include/sound/ad1848.h +++ b/include/sound/ad1848.h | |||
@@ -126,36 +126,4 @@ int snd_ad1848_pcm(struct snd_wss *chip, int device, struct snd_pcm **rpcm); | |||
126 | const struct snd_pcm_ops *snd_ad1848_get_pcm_ops(int direction); | 126 | const struct snd_pcm_ops *snd_ad1848_get_pcm_ops(int direction); |
127 | int snd_ad1848_mixer(struct snd_wss *chip); | 127 | int snd_ad1848_mixer(struct snd_wss *chip); |
128 | 128 | ||
129 | /* exported mixer stuffs */ | ||
130 | enum { AD1848_MIX_SINGLE, AD1848_MIX_DOUBLE, AD1848_MIX_CAPTURE }; | ||
131 | |||
132 | #define AD1848_MIXVAL_SINGLE(reg, shift, mask, invert) \ | ||
133 | ((reg) | ((shift) << 8) | ((mask) << 16) | ((invert) << 24)) | ||
134 | #define AD1848_MIXVAL_DOUBLE(left_reg, right_reg, shift_left, shift_right, mask, invert) \ | ||
135 | ((left_reg) | ((right_reg) << 8) | ((shift_left) << 16) | ((shift_right) << 19) | ((mask) << 24) | ((invert) << 22)) | ||
136 | |||
137 | /* for ease of use */ | ||
138 | struct ad1848_mix_elem { | ||
139 | const char *name; | ||
140 | int index; | ||
141 | int type; | ||
142 | unsigned long private_value; | ||
143 | const unsigned int *tlv; | ||
144 | }; | ||
145 | |||
146 | #define AD1848_SINGLE(xname, xindex, reg, shift, mask, invert) \ | ||
147 | { .name = xname, \ | ||
148 | .index = xindex, \ | ||
149 | .type = AD1848_MIX_SINGLE, \ | ||
150 | .private_value = AD1848_MIXVAL_SINGLE(reg, shift, mask, invert) } | ||
151 | |||
152 | #define AD1848_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert) \ | ||
153 | { .name = xname, \ | ||
154 | .index = xindex, \ | ||
155 | .type = AD1848_MIX_DOUBLE, \ | ||
156 | .private_value = AD1848_MIXVAL_DOUBLE(left_reg, right_reg, shift_left, shift_right, mask, invert) } | ||
157 | |||
158 | int snd_ad1848_add_ctl_elem(struct snd_wss *chip, | ||
159 | const struct ad1848_mix_elem *c); | ||
160 | |||
161 | #endif /* __SOUND_AD1848_H */ | 129 | #endif /* __SOUND_AD1848_H */ |