Lines Matching defs:kcontrol
1266 static int snd_cs4231_info_mux(struct snd_kcontrol *kcontrol,
1276 static int snd_cs4231_get_mux(struct snd_kcontrol *kcontrol,
1279 struct snd_cs4231 *chip = snd_kcontrol_chip(kcontrol);
1292 static int snd_cs4231_put_mux(struct snd_kcontrol *kcontrol,
1295 struct snd_cs4231 *chip = snd_kcontrol_chip(kcontrol);
1320 static int snd_cs4231_info_single(struct snd_kcontrol *kcontrol,
1323 int mask = (kcontrol->private_value >> 16) & 0xff;
1334 static int snd_cs4231_get_single(struct snd_kcontrol *kcontrol,
1337 struct snd_cs4231 *chip = snd_kcontrol_chip(kcontrol);
1339 int reg = kcontrol->private_value & 0xff;
1340 int shift = (kcontrol->private_value >> 8) & 0xff;
1341 int mask = (kcontrol->private_value >> 16) & 0xff;
1342 int invert = (kcontrol->private_value >> 24) & 0xff;
1357 static int snd_cs4231_put_single(struct snd_kcontrol *kcontrol,
1360 struct snd_cs4231 *chip = snd_kcontrol_chip(kcontrol);
1362 int reg = kcontrol->private_value & 0xff;
1363 int shift = (kcontrol->private_value >> 8) & 0xff;
1364 int mask = (kcontrol->private_value >> 16) & 0xff;
1365 int invert = (kcontrol->private_value >> 24) & 0xff;
1385 static int snd_cs4231_info_double(struct snd_kcontrol *kcontrol,
1388 int mask = (kcontrol->private_value >> 24) & 0xff;
1399 static int snd_cs4231_get_double(struct snd_kcontrol *kcontrol,
1402 struct snd_cs4231 *chip = snd_kcontrol_chip(kcontrol);
1404 int left_reg = kcontrol->private_value & 0xff;
1405 int right_reg = (kcontrol->private_value >> 8) & 0xff;
1406 int shift_left = (kcontrol->private_value >> 16) & 0x07;
1407 int shift_right = (kcontrol->private_value >> 19) & 0x07;
1408 int mask = (kcontrol->private_value >> 24) & 0xff;
1409 int invert = (kcontrol->private_value >> 22) & 1;
1430 static int snd_cs4231_put_double(struct snd_kcontrol *kcontrol,
1433 struct snd_cs4231 *chip = snd_kcontrol_chip(kcontrol);
1435 int left_reg = kcontrol->private_value & 0xff;
1436 int right_reg = (kcontrol->private_value >> 8) & 0xff;
1437 int shift_left = (kcontrol->private_value >> 16) & 0x07;
1438 int shift_right = (kcontrol->private_value >> 19) & 0x07;
1439 int mask = (kcontrol->private_value >> 24) & 0xff;
1440 int invert = (kcontrol->private_value >> 22) & 1;