| /linux/sound/core/ |
| H A D | control.c | 201 struct snd_kcontrol *kctl, unsigned int ioff) in snd_ctl_notify_one() argument 203 struct snd_ctl_elem_id id = kctl->id; in snd_ctl_notify_one() 211 lops->lnotify(card, mask, kctl, ioff); in snd_ctl_notify_one() 228 static int snd_ctl_new(struct snd_kcontrol **kctl, unsigned int count, in snd_ctl_new() argument 236 *kctl = kzalloc(struct_size(*kctl, vd, count), GFP_KERNEL); in snd_ctl_new() 237 if (!*kctl) in snd_ctl_new() 240 (*kctl)->count = count; in snd_ctl_new() 242 (*kctl)->vd[idx].access = access; in snd_ctl_new() 243 (*kctl)->vd[idx].owner = file; in snd_ctl_new() 263 struct snd_kcontrol *kctl; in snd_ctl_new1() local [all …]
|
| H A D | ctljack.c | 65 struct snd_kcontrol *kctl; in snd_kctl_jack_new() local 67 kctl = snd_ctl_new1(&jack_detect_kctl, NULL); in snd_kctl_jack_new() 68 if (!kctl) in snd_kctl_jack_new() 71 jack_kctl_name_gen(kctl->id.name, name, sizeof(kctl->id.name)); in snd_kctl_jack_new() 72 kctl->id.index = get_available_index(card, kctl->id.name); in snd_kctl_jack_new() 73 kctl->private_value = 0; in snd_kctl_jack_new() 74 return kctl; in snd_kctl_jack_new() 78 struct snd_kcontrol *kctl, bool status) in snd_kctl_jack_report() argument 80 if (kctl->private_value == status) in snd_kctl_jack_report() 82 kctl->private_value = status; in snd_kctl_jack_report() [all …]
|
| H A D | control_led.c | 50 struct snd_kcontrol *kctl; member 109 struct snd_kcontrol *kctl = lctl->kctl; in snd_ctl_led_get() local 114 info.id = kctl->id; in snd_ctl_led_get() 117 result = kctl->info(kctl, &info); in snd_ctl_led_get() 122 result = kctl->get(kctl, &value); in snd_ctl_led_get() 139 struct snd_kcontrol *kctl, unsigned int ioff) in snd_ctl_led_set_state() argument 156 if (lctl->kctl == kctl && lctl->index_offset == ioff) in snd_ctl_led_set_state() 160 if (!found && kctl && card) { in snd_ctl_led_set_state() 165 lctl->kctl = kctl; in snd_ctl_led_set_state() 185 static struct snd_ctl_led_ctl *snd_ctl_led_find(struct snd_kcontrol *kctl, unsigned int ioff) in snd_ctl_led_find() argument [all …]
|
| H A D | jack.c | 19 struct snd_kcontrol *kctl; member 73 snd_ctl_remove(card, jack_kctl->kctl); in snd_jack_dev_free() 141 snd_kctl_jack_report(jack->card, jack_kctl->kctl, in snd_jack_inject_report() 176 len = scnprintf(buf, sizeof(buf), "%s: %s\t\t%s: %i\n", "Jack", jack_kctl->kctl->id.name, in sw_inject_enable_read() 235 len = scnprintf(buf, sizeof(buf), "%s\n", jack_kctl->kctl->id.name); in jack_kctl_id_read() 287 len = scnprintf(buf, sizeof(buf), "%s\n", jack_kctl->kctl->private_value ? in jack_kctl_status_read() 353 if (strstr(jack_kctl->kctl->id.name, "Phantom")) in snd_jack_debugfs_add_inject_node() 356 tname = kstrdup(jack_kctl->kctl->id.name, GFP_KERNEL); in snd_jack_debugfs_add_inject_node() 411 static void snd_jack_kctl_private_free(struct snd_kcontrol *kctl) in snd_jack_kctl_private_free() argument 415 jack_kctl = kctl->private_data; in snd_jack_kctl_private_free() [all …]
|
| H A D | vmaster.c | 53 struct snd_kcontrol *kctl; /* original kcontrol pointer */ member 263 srec->kctl = follower; in _snd_ctl_add_follower() 392 struct snd_kcontrol *sctl = follower->kctl; in master_free() 425 struct snd_kcontrol *kctl; in snd_ctl_make_virtual_master() local 438 kctl = snd_ctl_new1(&knew, master); in snd_ctl_make_virtual_master() 439 if (!kctl) { in snd_ctl_make_virtual_master() 444 kctl->info = master_info; in snd_ctl_make_virtual_master() 445 kctl->get = master_get; in snd_ctl_make_virtual_master() 446 kctl->put = master_put; in snd_ctl_make_virtual_master() 447 kctl->private_free = master_free; in snd_ctl_make_virtual_master() [all …]
|
| /linux/include/sound/ |
| H A D | control.h | 122 …void (*lnotify)(struct snd_card *card, unsigned int mask, struct snd_kcontrol *kctl, unsigned int … 132 void snd_ctl_notify_one(struct snd_card * card, unsigned int mask, struct snd_kcontrol * kctl, unsi… 141 void snd_ctl_rename(struct snd_card *card, struct snd_kcontrol *kctl, const char *name); 186 static inline unsigned int snd_ctl_get_ioffnum(struct snd_kcontrol *kctl, struct snd_ctl_elem_id *i… in snd_ctl_get_ioffnum() argument 188 unsigned int ioff = id->numid - kctl->id.numid; in snd_ctl_get_ioffnum() 189 return array_index_nospec(ioff, kctl->count); in snd_ctl_get_ioffnum() 192 static inline unsigned int snd_ctl_get_ioffidx(struct snd_kcontrol *kctl, struct snd_ctl_elem_id *i… in snd_ctl_get_ioffidx() argument 194 unsigned int ioff = id->index - kctl->id.index; in snd_ctl_get_ioffidx() 195 return array_index_nospec(ioff, kctl->count); in snd_ctl_get_ioffidx() 198 static inline unsigned int snd_ctl_get_ioff(struct snd_kcontrol *kctl, struct snd_ctl_elem_id *id) in snd_ctl_get_ioff() argument [all …]
|
| /linux/sound/hda/codecs/side-codecs/ |
| H A D | tas2781_hda.h | 71 int tasdevice_info_profile(struct snd_kcontrol *kctl, 73 int tasdevice_info_programs(struct snd_kcontrol *kctl, 75 int tasdevice_info_config(struct snd_kcontrol *kctl, 77 int tasdevice_set_profile_id(struct snd_kcontrol *kctl, 79 int tasdevice_get_profile_id(struct snd_kcontrol *kctl, 81 int tasdevice_program_get(struct snd_kcontrol *kctl, 83 int tasdevice_program_put(struct snd_kcontrol *kctl, 85 int tasdevice_config_put(struct snd_kcontrol *kctl, 87 int tasdevice_config_get(struct snd_kcontrol *kctl,
|
| /linux/sound/usb/ |
| H A D | mixer.c | 581 struct snd_kcontrol *kctl, in snd_usb_mixer_add_list() argument 587 while (snd_ctl_find_id(mixer->chip->card, &kctl->id)) in snd_usb_mixer_add_list() 588 kctl->id.index++; in snd_usb_mixer_add_list() 589 err = snd_ctl_add(mixer->chip->card, kctl); in snd_usb_mixer_add_list() 595 list->kctl = kctl; in snd_usb_mixer_add_list() 1063 void snd_usb_mixer_elem_free(struct snd_kcontrol *kctl) in snd_usb_mixer_elem_free() argument 1065 usb_mixer_elem_info_free(kctl->private_data); in snd_usb_mixer_elem_free() 1066 kctl->private_data = NULL; in snd_usb_mixer_elem_free() 1075 struct snd_kcontrol *kctl) in volume_control_quirks() argument 1232 get_min_max_with_quirks(struct usb_mixer_elem_info * cval,int default_min,struct snd_kcontrol * kctl) get_min_max_with_quirks() argument 1619 append_ctl_name(struct snd_kcontrol * kctl,const char * str) append_ctl_name() argument 1629 check_no_speaker_on_headset(struct snd_kcontrol * kctl,struct snd_card * card) check_no_speaker_on_headset() argument 1673 struct snd_kcontrol *kctl; __build_feature_ctl() local 1890 struct snd_kcontrol *kctl; build_connector_control() local 1946 struct snd_kcontrol *kctl; parse_clock_source_unit() local 2174 struct snd_kcontrol *kctl; build_mixer_unit_ctl() local 2484 struct snd_kcontrol *kctl; build_audio_procunit() local 2729 usb_mixer_selector_elem_free(struct snd_kcontrol * kctl) usb_mixer_selector_elem_free() argument 2758 struct snd_kcontrol *kctl; parse_audio_selector_unit() local [all...] |
| H A D | mixer_s1810c.c | 381 struct snd_kcontrol *kctl, u32 *state) in snd_s1810c_get_switch_state() argument 386 u32 ctl_idx = (u32) (kctl->private_value & 0xFF); in snd_s1810c_get_switch_state() 406 struct snd_kcontrol *kctl) in snd_s1810c_set_switch_state() argument 410 u32 pval = (u32) kctl->private_value; in snd_s1810c_set_switch_state() 421 snd_s1810c_switch_get(struct snd_kcontrol *kctl, in snd_s1810c_switch_get() argument 424 struct usb_mixer_elem_list *list = snd_kcontrol_chip(kctl); in snd_s1810c_switch_get() 427 u32 pval = (u32) kctl->private_value; in snd_s1810c_switch_get() 433 ret = snd_s1810c_get_switch_state(mixer, kctl, &state); in snd_s1810c_switch_get() 450 snd_s1810c_switch_set(struct snd_kcontrol *kctl, in snd_s1810c_switch_set() argument 453 struct usb_mixer_elem_list *list = snd_kcontrol_chip(kctl); in snd_s1810c_switch_set() [all …]
|
| H A D | mixer_scarlett.c | 232 static int scarlett_ctl_switch_info(struct snd_kcontrol *kctl, in scarlett_ctl_switch_info() argument 235 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett_ctl_switch_info() 244 static int scarlett_ctl_switch_get(struct snd_kcontrol *kctl, in scarlett_ctl_switch_get() argument 247 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett_ctl_switch_get() 262 static int scarlett_ctl_switch_put(struct snd_kcontrol *kctl, in scarlett_ctl_switch_put() argument 265 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett_ctl_switch_put() 300 static int scarlett_ctl_info(struct snd_kcontrol *kctl, in scarlett_ctl_info() argument 303 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett_ctl_info() 308 uinfo->value.integer.max = (int)kctl->private_value + in scarlett_ctl_info() 314 static int scarlett_ctl_get(struct snd_kcontrol *kctl, in scarlett_ctl_get() argument [all …]
|
| H A D | mixer_quirks.c | 68 struct snd_kcontrol *kctl; in snd_create_std_mono_ctl_offset() local 91 kctl = snd_ctl_new1(snd_usb_feature_unit_ctl, cval); in snd_create_std_mono_ctl_offset() 92 if (!kctl) { in snd_create_std_mono_ctl_offset() 98 snprintf(kctl->id.name, sizeof(kctl->id.name), name); in snd_create_std_mono_ctl_offset() 99 kctl->private_free = snd_usb_mixer_elem_free; in snd_create_std_mono_ctl_offset() 103 kctl->tlv.c = tlv_callback; in snd_create_std_mono_ctl_offset() 104 kctl->vd[0].access |= in snd_create_std_mono_ctl_offset() 109 return snd_usb_mixer_add_control(&cval->head, kctl); in snd_create_std_mono_ctl_offset() 152 struct snd_kcontrol *kctl; in add_single_ctl_with_resume() local 162 kctl = snd_ctl_new1(knew, list); in add_single_ctl_with_resume() [all …]
|
| H A D | mixer.h | 68 struct snd_kcontrol *kctl; member 109 struct snd_kcontrol *kctl, 112 #define snd_usb_mixer_add_control(list, kctl) \ argument 113 snd_usb_mixer_add_list(list, kctl, true) 131 extern void snd_usb_mixer_elem_free(struct snd_kcontrol *kctl);
|
| H A D | fcp.c | 327 struct snd_kcontrol *kctl; in fcp_add_new_ctl() local 345 kctl = snd_ctl_new1(ncontrol, elem); in fcp_add_new_ctl() 346 if (!kctl) { in fcp_add_new_ctl() 350 kctl->private_free = snd_usb_mixer_elem_free; in fcp_add_new_ctl() 352 strscpy(kctl->id.name, name, sizeof(kctl->id.name)); in fcp_add_new_ctl() 354 err = snd_usb_mixer_add_control(&elem->head, kctl); in fcp_add_new_ctl() 359 *kctl_return = kctl; in fcp_add_new_ctl() 366 static int fcp_meter_ctl_info(struct snd_kcontrol *kctl, in fcp_meter_ctl_info() argument 369 struct usb_mixer_elem_info *elem = kctl->private_data; in fcp_meter_ctl_info() 379 static int fcp_meter_ctl_get(struct snd_kcontrol *kctl, in fcp_meter_ctl_get() argument [all …]
|
| /linux/sound/soc/sdca/ |
| H A D | sdca_asoc.c | 124 struct snd_kcontrol_new *kctl; in get_terminal_name() 148 kctl = devm_kzalloc(dev, sizeof(*kctl), GFP_KERNEL); in get_terminal_name() 149 if (!kctl) in get_terminal_name() 190 kctl->iface = SNDRV_CTL_ELEM_IFACE_MIXER; in entity_early_parse_ge() 191 kctl->name = control_name; in entity_early_parse_ge() 192 kctl->info = snd_soc_info_enum_double; in entity_early_parse_ge() 193 kctl->get = snd_soc_dapm_get_enum_double; in entity_early_parse_ge() 194 kctl->put = snd_soc_dapm_put_enum_double; in entity_early_parse_ge() 195 kctl in entity_early_parse_ge() 168 struct snd_kcontrol_new *kctl; entity_early_parse_ge() local 338 entity_pde_event(struct snd_soc_dapm_widget * widget,struct snd_kcontrol * kctl,int event) entity_pde_event() argument 518 struct snd_kcontrol_new *kctl; entity_parse_su_class() local 596 struct snd_kcontrol_new *kctl; entity_parse_mu() local 656 entity_cs_event(struct snd_soc_dapm_widget * widget,struct snd_kcontrol * kctl,int event) entity_cs_event() argument 792 control_limit_kctl(struct device * dev,struct sdca_entity * entity,struct sdca_control * control,struct snd_kcontrol_new * kctl) control_limit_kctl() argument 859 populate_control(struct device * dev,struct sdca_function_data * function,struct sdca_entity * entity,struct sdca_control * control,struct snd_kcontrol_new ** kctl) populate_control() argument 928 populate_pin_switch(struct device * dev,struct sdca_entity * entity,struct snd_kcontrol_new ** kctl) populate_pin_switch() argument 962 sdca_asoc_populate_controls(struct device * dev,struct sdca_function_data * function,struct snd_kcontrol_new * kctl) sdca_asoc_populate_controls() argument [all...] |
| H A D | sdca_interrupts.c | 161 struct snd_kcontrol *kctl = interrupt->priv; in detected_mode_handler() 174 if (!kctl) { in detected_mode_handler() 182 kctl = snd_soc_component_get_kcontrol(component, name); in detected_mode_handler() 183 if (!kctl) { in detected_mode_handler() 188 interrupt->priv = kctl; in detected_mode_handler() 191 soc_enum = (struct soc_enum *)kctl->private_value; in detected_mode_handler() 236 ret = kctl->put(kctl, ucontrol); in sdca_irq_request_locked() 243 snd_ctl_notify(card->snd_card, SNDRV_CTL_EVENT_MASK_VALUE, &kctl->id); in sdca_irq_request_locked() 146 struct snd_kcontrol *kctl = interrupt->priv; detected_mode_handler() local
|
| /linux/sound/pci/cs5535audio/ |
| H A D | cs5535audio_olpc.c | 61 static int olpc_dc_info(struct snd_kcontrol *kctl, in olpc_dc_info() argument 71 static int olpc_dc_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *v) in olpc_dc_get() argument 77 static int olpc_dc_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *v) in olpc_dc_put() argument 79 struct cs5535audio *cs5535au = snd_kcontrol_chip(kctl); in olpc_dc_put() 85 static int olpc_mic_info(struct snd_kcontrol *kctl, in olpc_mic_info() argument 95 static int olpc_mic_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *v) in olpc_mic_get() argument 97 struct cs5535audio *cs5535au = snd_kcontrol_chip(kctl); in olpc_mic_get() 106 static int olpc_mic_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *v) in olpc_mic_put() argument 108 struct cs5535audio *cs5535au = snd_kcontrol_chip(kctl); in olpc_mic_put()
|
| /linux/sound/core/oss/ |
| H A D | mixer_oss.c | 522 struct snd_kcontrol *kctl; in snd_mixer_oss_get_volume1_vol() local 528 kctl = snd_ctl_find_numid(card, numid); in snd_mixer_oss_get_volume1_vol() 529 if (!kctl) in snd_mixer_oss_get_volume1_vol() 535 if (kctl->info(kctl, uinfo)) in snd_mixer_oss_get_volume1_vol() 537 if (kctl->get(kctl, uctl)) in snd_mixer_oss_get_volume1_vol() 555 struct snd_kcontrol *kctl; in snd_mixer_oss_get_volume1_sw() local 561 kctl = snd_ctl_find_numid(card, numid); in snd_mixer_oss_get_volume1_sw() 562 if (!kctl) in snd_mixer_oss_get_volume1_sw() 568 if (kctl->info(kctl, uinfo)) in snd_mixer_oss_get_volume1_sw() 570 if (kctl->get(kctl, uctl)) in snd_mixer_oss_get_volume1_sw() [all …]
|
| /linux/sound/virtio/ |
| H A D | virtio_kctl.c | 51 struct virtio_kctl *kctl = &snd->kctls[kcontrol->private_value]; in virtsnd_kctl_info() local 85 strscpy(uinfo->value.enumerated.name, kctl->items[i].item, in virtsnd_kctl_info() 322 struct virtio_kctl *kctl = &snd->kctls[cid]; in virtsnd_kctl_get_enum_items() local 333 kctl->items = devm_kcalloc(&vdev->dev, n, sizeof(*kctl->items), in virtsnd_kctl_get_enum_items() 335 if (!kctl->items) { in virtsnd_kctl_get_enum_items() 340 sg_init_one(&sg, kctl->items, n * sizeof(*kctl->items)); in virtsnd_kctl_get_enum_items() 411 struct virtio_kctl *kctl = &snd->kctls[cid]; in virtsnd_kctl_build_devs() local 438 kctl->kctl = snd_ctl_new1(&kctl_new, snd); in virtsnd_kctl_build_devs() 439 if (!kctl->kctl) in virtsnd_kctl_build_devs() 442 rc = snd_ctl_add(snd->card, kctl->kctl); in virtsnd_kctl_build_devs() [all …]
|
| /linux/sound/pci/au88x0/ |
| H A D | au88x0_pcm.c | 115 struct snd_kcontrol *kctl, int activate) in vortex_notify_pcm_vol_change() argument 118 kctl->vd[0].access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE; in vortex_notify_pcm_vol_change() 120 kctl->vd[0].access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE; in vortex_notify_pcm_vol_change() 122 SNDRV_CTL_EVENT_MASK_INFO, &(kctl->id)); in vortex_notify_pcm_vol_change() 246 chip->pcm_vol[substream->number].kctl, 1); in snd_vortex_pcm_hw_params() 281 chip->pcm_vol[substream->number].kctl, in snd_vortex_pcm_hw_free() 598 struct snd_kcontrol *kctl; in snd_vortex_new_pcm() local 658 kctl = snd_ctl_new1(&snd_vortex_mixer_spdif[i], chip); in snd_vortex_new_pcm() 659 if (!kctl) in snd_vortex_new_pcm() 661 err = snd_ctl_add(chip->card, kctl); in snd_vortex_new_pcm() [all …]
|
| /linux/drivers/usb/gadget/function/ |
| H A D | u_audio.c | 1186 struct snd_kcontrol *kctl; in g_audio_setup() local 1288 kctl = snd_ctl_new1(&u_audio_controls[UAC_FBACK_CTRL], in g_audio_setup() 1290 if (!kctl) { in g_audio_setup() 1295 kctl->id.device = pcm->device; in g_audio_setup() 1296 kctl->id.subdevice = 0; in g_audio_setup() 1298 err = snd_ctl_add(card, kctl); in g_audio_setup() 1304 kctl = snd_ctl_new1(&u_audio_controls[UAC_P_PITCH_CTRL], in g_audio_setup() 1306 if (!kctl) { in g_audio_setup() 1311 kctl->id.device = pcm->device; in g_audio_setup() 1312 kctl->id.subdevice = 0; in g_audio_setup() [all …]
|
| /linux/sound/soc/intel/atom/ |
| H A D | sst-atom-controls.c | 244 /* kctl set to 'none' and we reset the bits so send IPC */ in sst_slot_put() 307 bc = (void *)algo->kctl->private_value; in sst_find_and_send_pipe_algo() 310 algo->kctl->id.name, pipe); in sst_find_and_send_pipe_algo() 608 struct snd_kcontrol *kctl = gain->kctl; in sst_set_pipe_gain() local 610 dev_dbg(&drv->pdev->dev, "control name=%s\n", kctl->id.name); in sst_set_pipe_gain() 611 mc = (void *)kctl->private_value; in sst_set_pipe_gain() 1374 * @kctl: kcontrol pointer 1387 static int sst_fill_module_list(struct snd_kcontrol *kctl, in sst_fill_module_list() argument 1400 struct sst_gain_mixer_control *mc = (void *)kctl in sst_fill_module_list() 1432 struct snd_kcontrol *kctl; sst_fill_widget_module_info() local [all...] |
| /linux/sound/pci/ice1712/ |
| H A D | psc724.c | 180 struct snd_kcontrol *kctl; in psc724_set_jack_state() local 189 kctl = snd_ctl_find_id_mixer(ice->card, in psc724_set_jack_state() 191 if (kctl) in psc724_set_jack_state() 192 snd_ctl_notify(ice->card, SNDRV_CTL_EVENT_MASK_VALUE, &kctl->id); in psc724_set_jack_state() 194 kctl = snd_ctl_find_id_mixer(ice->card, in psc724_set_jack_state() 196 if (kctl) in psc724_set_jack_state() 197 snd_ctl_notify(ice->card, SNDRV_CTL_EVENT_MASK_VALUE, &kctl->id); in psc724_set_jack_state()
|
| /linux/sound/soc/ |
| H A D | soc-ops.c | 448 static int snd_soc_clip_to_platform_max(struct snd_kcontrol *kctl) in snd_soc_clip_to_platform_max() argument 450 struct soc_mixer_control *mc = (struct soc_mixer_control *)kctl->private_value; in snd_soc_clip_to_platform_max() 461 ret = kctl->get(kctl, uctl); in snd_soc_clip_to_platform_max() 472 ret = kctl->put(kctl, uctl); in snd_soc_clip_to_platform_max() 490 struct snd_kcontrol *kctl; in snd_soc_limit_volume() local 497 kctl = snd_soc_card_get_kcontrol(card, name); in snd_soc_limit_volume() 498 if (kctl) { in snd_soc_limit_volume() 500 (struct soc_mixer_control *)kctl->private_value; in snd_soc_limit_volume() 504 ret = snd_soc_clip_to_platform_max(kctl); in snd_soc_limit_volume()
|
| H A D | soc-ops-test.c | 78 int (*info)(struct snd_kcontrol *kctl, struct snd_ctl_elem_info *info); 87 int (*put)(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *value); 88 int (*get)(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *value); 438 struct snd_kcontrol kctl = { in soc_ops_test_info() local 444 strscpy(kctl.id.name, param->name, sizeof(kctl.id.name)); in soc_ops_test_info() 446 ret = param->info(&kctl, &result); in soc_ops_test_info() 480 struct snd_kcontrol kctl = { in soc_ops_test_access() local 501 ret = param->put(&kctl, result); in soc_ops_test_access() 517 ret = param->get(&kctl, result); in soc_ops_test_access()
|
| /linux/sound/i2c/ |
| H A D | cs8427.c | 531 struct snd_kcontrol *kctl; in snd_cs8427_iec958_build() local 538 kctl = snd_ctl_new1(&snd_cs8427_iec958_controls[idx], cs8427); in snd_cs8427_iec958_build() 539 if (kctl == NULL) in snd_cs8427_iec958_build() 541 kctl->id.device = play_substream->pcm->device; in snd_cs8427_iec958_build() 542 kctl->id.subdevice = play_substream->number; in snd_cs8427_iec958_build() 543 err = snd_ctl_add(cs8427->bus->card, kctl); in snd_cs8427_iec958_build() 546 if (! strcmp(kctl->id.name, in snd_cs8427_iec958_build() 548 chip->playback.pcm_ctl = kctl; in snd_cs8427_iec958_build()
|