Lines Matching refs:kcontrol
800 static int loopback_rate_shift_info(struct snd_kcontrol *kcontrol, in loopback_rate_shift_info() argument
811 static int loopback_rate_shift_get(struct snd_kcontrol *kcontrol, in loopback_rate_shift_get() argument
814 struct loopback *loopback = snd_kcontrol_chip(kcontrol); in loopback_rate_shift_get()
817 loopback->setup[kcontrol->id.subdevice] in loopback_rate_shift_get()
818 [kcontrol->id.device].rate_shift; in loopback_rate_shift_get()
822 static int loopback_rate_shift_put(struct snd_kcontrol *kcontrol, in loopback_rate_shift_put() argument
825 struct loopback *loopback = snd_kcontrol_chip(kcontrol); in loopback_rate_shift_put()
835 if (val != loopback->setup[kcontrol->id.subdevice] in loopback_rate_shift_put()
836 [kcontrol->id.device].rate_shift) { in loopback_rate_shift_put()
837 loopback->setup[kcontrol->id.subdevice] in loopback_rate_shift_put()
838 [kcontrol->id.device].rate_shift = val; in loopback_rate_shift_put()
845 static int loopback_notify_get(struct snd_kcontrol *kcontrol, in loopback_notify_get() argument
848 struct loopback *loopback = snd_kcontrol_chip(kcontrol); in loopback_notify_get()
851 loopback->setup[kcontrol->id.subdevice] in loopback_notify_get()
852 [kcontrol->id.device].notify; in loopback_notify_get()
856 static int loopback_notify_put(struct snd_kcontrol *kcontrol, in loopback_notify_put() argument
859 struct loopback *loopback = snd_kcontrol_chip(kcontrol); in loopback_notify_put()
864 if (val != loopback->setup[kcontrol->id.subdevice] in loopback_notify_put()
865 [kcontrol->id.device].notify) { in loopback_notify_put()
866 loopback->setup[kcontrol->id.subdevice] in loopback_notify_put()
867 [kcontrol->id.device].notify = val; in loopback_notify_put()
873 static int loopback_active_get(struct snd_kcontrol *kcontrol, in loopback_active_get() argument
876 struct loopback *loopback = snd_kcontrol_chip(kcontrol); in loopback_active_get()
878 [kcontrol->id.subdevice][kcontrol->id.device ^ 1]; in loopback_active_get()
888 static int loopback_format_info(struct snd_kcontrol *kcontrol, in loopback_format_info() argument
899 static int loopback_format_get(struct snd_kcontrol *kcontrol, in loopback_format_get() argument
902 struct loopback *loopback = snd_kcontrol_chip(kcontrol); in loopback_format_get()
905 loopback->setup[kcontrol->id.subdevice] in loopback_format_get()
906 [kcontrol->id.device].format; in loopback_format_get()
910 static int loopback_rate_info(struct snd_kcontrol *kcontrol, in loopback_rate_info() argument
921 static int loopback_rate_get(struct snd_kcontrol *kcontrol, in loopback_rate_get() argument
924 struct loopback *loopback = snd_kcontrol_chip(kcontrol); in loopback_rate_get()
927 loopback->setup[kcontrol->id.subdevice] in loopback_rate_get()
928 [kcontrol->id.device].rate; in loopback_rate_get()
932 static int loopback_channels_info(struct snd_kcontrol *kcontrol, in loopback_channels_info() argument
943 static int loopback_channels_get(struct snd_kcontrol *kcontrol, in loopback_channels_get() argument
946 struct loopback *loopback = snd_kcontrol_chip(kcontrol); in loopback_channels_get()
949 loopback->setup[kcontrol->id.subdevice] in loopback_channels_get()
950 [kcontrol->id.device].channels; in loopback_channels_get()