aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorKrzysztof Helt <krzysztof.h1@wp.pl>2008-07-31 15:06:46 -0400
committerJaroslav Kysela <perex@perex.cz>2008-08-06 09:39:52 -0400
commit0c5e3e98220e743f8ac095249b09ca8c87bd655b (patch)
treef25e84d71152eee480a354e2e6d924568df516cd /include/sound
parentece11c9b6db5b96179df8eb9cdc54c78953a4c0f (diff)
ALSA: wss_lib: replace ad1848 mixer element macros with wss ones
Use the wss macros instead of ad1848 ones. Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl> Reviewed-by: Rene Herman <rene.herman@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/ad1848.h32
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);
126const struct snd_pcm_ops *snd_ad1848_get_pcm_ops(int direction); 126const struct snd_pcm_ops *snd_ad1848_get_pcm_ops(int direction);
127int snd_ad1848_mixer(struct snd_wss *chip); 127int snd_ad1848_mixer(struct snd_wss *chip);
128 128
129/* exported mixer stuffs */
130enum { 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 */
138struct 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
158int 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 */