Lines Matching refs:kcontrol
352 static int snd_akm4xxx_volume_info(struct snd_kcontrol *kcontrol, in snd_akm4xxx_volume_info() argument
355 unsigned int mask = AK_GET_MASK(kcontrol->private_value); in snd_akm4xxx_volume_info()
364 static int snd_akm4xxx_volume_get(struct snd_kcontrol *kcontrol, in snd_akm4xxx_volume_get() argument
367 struct snd_akm4xxx *ak = snd_kcontrol_chip(kcontrol); in snd_akm4xxx_volume_get()
368 int chip = AK_GET_CHIP(kcontrol->private_value); in snd_akm4xxx_volume_get()
369 int addr = AK_GET_ADDR(kcontrol->private_value); in snd_akm4xxx_volume_get()
375 static int put_ak_reg(struct snd_kcontrol *kcontrol, int addr, in put_ak_reg() argument
378 struct snd_akm4xxx *ak = snd_kcontrol_chip(kcontrol); in put_ak_reg()
379 unsigned int mask = AK_GET_MASK(kcontrol->private_value); in put_ak_reg()
380 int chip = AK_GET_CHIP(kcontrol->private_value); in put_ak_reg()
386 if (AK_GET_VOL_CVT(kcontrol->private_value) && nval < 128) in put_ak_reg()
388 if (AK_GET_IPGA(kcontrol->private_value) && nval >= 128) in put_ak_reg()
390 if (AK_GET_INVERT(kcontrol->private_value)) in put_ak_reg()
392 if (AK_GET_NEEDSMSB(kcontrol->private_value)) in put_ak_reg()
400 static int snd_akm4xxx_volume_put(struct snd_kcontrol *kcontrol, in snd_akm4xxx_volume_put() argument
403 unsigned int mask = AK_GET_MASK(kcontrol->private_value); in snd_akm4xxx_volume_put()
407 return put_ak_reg(kcontrol, AK_GET_ADDR(kcontrol->private_value), val); in snd_akm4xxx_volume_put()
410 static int snd_akm4xxx_stereo_volume_info(struct snd_kcontrol *kcontrol, in snd_akm4xxx_stereo_volume_info() argument
413 unsigned int mask = AK_GET_MASK(kcontrol->private_value); in snd_akm4xxx_stereo_volume_info()
422 static int snd_akm4xxx_stereo_volume_get(struct snd_kcontrol *kcontrol, in snd_akm4xxx_stereo_volume_get() argument
425 struct snd_akm4xxx *ak = snd_kcontrol_chip(kcontrol); in snd_akm4xxx_stereo_volume_get()
426 int chip = AK_GET_CHIP(kcontrol->private_value); in snd_akm4xxx_stereo_volume_get()
427 int addr = AK_GET_ADDR(kcontrol->private_value); in snd_akm4xxx_stereo_volume_get()
434 static int snd_akm4xxx_stereo_volume_put(struct snd_kcontrol *kcontrol, in snd_akm4xxx_stereo_volume_put() argument
437 int addr = AK_GET_ADDR(kcontrol->private_value); in snd_akm4xxx_stereo_volume_put()
438 unsigned int mask = AK_GET_MASK(kcontrol->private_value); in snd_akm4xxx_stereo_volume_put()
446 change = put_ak_reg(kcontrol, addr, val[0]); in snd_akm4xxx_stereo_volume_put()
447 change |= put_ak_reg(kcontrol, addr + 1, val[1]); in snd_akm4xxx_stereo_volume_put()
451 static int snd_akm4xxx_deemphasis_info(struct snd_kcontrol *kcontrol, in snd_akm4xxx_deemphasis_info() argument
460 static int snd_akm4xxx_deemphasis_get(struct snd_kcontrol *kcontrol, in snd_akm4xxx_deemphasis_get() argument
463 struct snd_akm4xxx *ak = snd_kcontrol_chip(kcontrol); in snd_akm4xxx_deemphasis_get()
464 int chip = AK_GET_CHIP(kcontrol->private_value); in snd_akm4xxx_deemphasis_get()
465 int addr = AK_GET_ADDR(kcontrol->private_value); in snd_akm4xxx_deemphasis_get()
466 int shift = AK_GET_SHIFT(kcontrol->private_value); in snd_akm4xxx_deemphasis_get()
472 static int snd_akm4xxx_deemphasis_put(struct snd_kcontrol *kcontrol, in snd_akm4xxx_deemphasis_put() argument
475 struct snd_akm4xxx *ak = snd_kcontrol_chip(kcontrol); in snd_akm4xxx_deemphasis_put()
476 int chip = AK_GET_CHIP(kcontrol->private_value); in snd_akm4xxx_deemphasis_put()
477 int addr = AK_GET_ADDR(kcontrol->private_value); in snd_akm4xxx_deemphasis_put()
478 int shift = AK_GET_SHIFT(kcontrol->private_value); in snd_akm4xxx_deemphasis_put()
492 static int ak4xxx_switch_get(struct snd_kcontrol *kcontrol, in ak4xxx_switch_get() argument
495 struct snd_akm4xxx *ak = snd_kcontrol_chip(kcontrol); in ak4xxx_switch_get()
496 int chip = AK_GET_CHIP(kcontrol->private_value); in ak4xxx_switch_get()
497 int addr = AK_GET_ADDR(kcontrol->private_value); in ak4xxx_switch_get()
498 int shift = AK_GET_SHIFT(kcontrol->private_value); in ak4xxx_switch_get()
499 int invert = AK_GET_INVERT(kcontrol->private_value); in ak4xxx_switch_get()
508 static int ak4xxx_switch_put(struct snd_kcontrol *kcontrol, in ak4xxx_switch_put() argument
511 struct snd_akm4xxx *ak = snd_kcontrol_chip(kcontrol); in ak4xxx_switch_put()
512 int chip = AK_GET_CHIP(kcontrol->private_value); in ak4xxx_switch_put()
513 int addr = AK_GET_ADDR(kcontrol->private_value); in ak4xxx_switch_put()
514 int shift = AK_GET_SHIFT(kcontrol->private_value); in ak4xxx_switch_put()
515 int invert = AK_GET_INVERT(kcontrol->private_value); in ak4xxx_switch_put()
547 static int ak4xxx_capture_source_info(struct snd_kcontrol *kcontrol, in ak4xxx_capture_source_info() argument
550 struct snd_akm4xxx *ak = snd_kcontrol_chip(kcontrol); in ak4xxx_capture_source_info()
551 int mixer_ch = AK_GET_SHIFT(kcontrol->private_value); in ak4xxx_capture_source_info()
561 static int ak4xxx_capture_source_get(struct snd_kcontrol *kcontrol, in ak4xxx_capture_source_get() argument
564 struct snd_akm4xxx *ak = snd_kcontrol_chip(kcontrol); in ak4xxx_capture_source_get()
565 int chip = AK_GET_CHIP(kcontrol->private_value); in ak4xxx_capture_source_get()
566 int addr = AK_GET_ADDR(kcontrol->private_value); in ak4xxx_capture_source_get()
567 int mask = AK_GET_MASK(kcontrol->private_value); in ak4xxx_capture_source_get()
575 static int ak4xxx_capture_source_put(struct snd_kcontrol *kcontrol, in ak4xxx_capture_source_put() argument
578 struct snd_akm4xxx *ak = snd_kcontrol_chip(kcontrol); in ak4xxx_capture_source_put()
579 int mixer_ch = AK_GET_SHIFT(kcontrol->private_value); in ak4xxx_capture_source_put()
580 int chip = AK_GET_CHIP(kcontrol->private_value); in ak4xxx_capture_source_put()
581 int addr = AK_GET_ADDR(kcontrol->private_value); in ak4xxx_capture_source_put()
582 int mask = AK_GET_MASK(kcontrol->private_value); in ak4xxx_capture_source_put()