Home
last modified time | relevance | path

Searched refs:ctls (Results 1 – 14 of 14) sorted by relevance

/linux/sound/hda/codecs/hdmi/
H A Dnvhdmi-mcp.c143 if (codec->spdif_status_reset && (spdif->ctls & AC_DIG1_ENABLE)) in nvhdmi_8ch_7x_pcm_prepare()
148 spdif->ctls & ~AC_DIG1_ENABLE & 0xff); in nvhdmi_8ch_7x_pcm_prepare()
160 if (codec->spdif_status_reset && (spdif->ctls & AC_DIG1_ENABLE)) { in nvhdmi_8ch_7x_pcm_prepare()
165 spdif->ctls & 0xff); in nvhdmi_8ch_7x_pcm_prepare()
182 (spdif->ctls & AC_DIG1_ENABLE)) in nvhdmi_8ch_7x_pcm_prepare()
187 spdif->ctls & ~AC_DIG1_ENABLE & 0xff); in nvhdmi_8ch_7x_pcm_prepare()
203 (spdif->ctls & AC_DIG1_ENABLE)) { in nvhdmi_8ch_7x_pcm_prepare()
208 spdif->ctls & 0xff); in nvhdmi_8ch_7x_pcm_prepare()
/linux/drivers/gpu/drm/msm/disp/mdp5/
H A Dmdp5_ctl.c72 struct mdp5_ctl ctls[MAX_CTL]; member
646 if ((ctl_mgr->ctls[c].status & checkm) == match) in mdp5_ctlm_request()
654 if ((ctl_mgr->ctls[c].status & checkm) == match) in mdp5_ctlm_request()
661 ctl = &ctl_mgr->ctls[c]; in mdp5_ctlm_request()
677 struct mdp5_ctl *ctl = &ctl_mgr->ctls[c]; in mdp5_ctlm_hw_reset()
718 struct mdp5_ctl *ctl = &ctl_mgr->ctls[c]; in mdp5_ctlm_init()
745 ctl_mgr->ctls[0].status |= CTL_STAT_BOOKED; in mdp5_ctlm_init()
746 ctl_mgr->ctls[1].status |= CTL_STAT_BOOKED; in mdp5_ctlm_init()
/linux/drivers/media/usb/pvrusb2/
H A Dpvrusb2-v4l2.c581 struct v4l2_ext_controls *ctls) in pvr2_g_ext_ctrls() argument
592 for (idx = 0; idx < ctls->count; idx++) { in pvr2_g_ext_ctrls()
593 ctrl = ctls->controls + idx; in pvr2_g_ext_ctrls()
596 if (ctls->which == V4L2_CTRL_WHICH_DEF_VAL) in pvr2_g_ext_ctrls()
604 ctls->error_idx = idx; in pvr2_g_ext_ctrls()
616 struct v4l2_ext_controls *ctls) in pvr2_s_ext_ctrls() argument
625 for (idx = 0; idx < ctls->count; idx++) { in pvr2_s_ext_ctrls()
626 ctrl = ctls->controls + idx; in pvr2_s_ext_ctrls()
631 ctls->error_idx = idx; in pvr2_s_ext_ctrls()
641 struct v4l2_ext_controls *ctls) in pvr2_try_ext_ctrls() argument
[all …]
/linux/tools/testing/selftests/alsa/
H A Dmixer-test.c40 snd_ctl_elem_list_t *ctls; member
118 snd_ctl_elem_list_malloc(&card_data->ctls); in find_controls()
119 snd_ctl_elem_list(card_data->handle, card_data->ctls); in find_controls()
120 card_data->num_ctls = snd_ctl_elem_list_get_count(card_data->ctls); in find_controls()
123 snd_ctl_elem_list_alloc_space(card_data->ctls, card_data->num_ctls); in find_controls()
124 snd_ctl_elem_list(card_data->handle, card_data->ctls); in find_controls()
140 ctl_data->name = snd_ctl_elem_list_get_name(card_data->ctls, in find_controls()
155 snd_ctl_elem_list_get_id(card_data->ctls, ctl, in find_controls()
/linux/sound/drivers/pcsp/
H A Dpcsp_mixer.c133 const struct snd_kcontrol_new *ctls, int num) in snd_pcsp_ctls_add() argument
138 err = snd_ctl_add(card, snd_ctl_new1(ctls + i, chip)); in snd_pcsp_ctls_add()
/linux/sound/hda/codecs/
H A Dgeneric.c353 if ((path->ctls[type] & AMP_VAL_COMPARE_MASK) == val) in is_ctl_used()
1026 val = path->ctls[NID_PATH_VOL_CTL]; in add_vol_ctl()
1039 hda_nid_t nid = get_amp_nid_(path->ctls[type]); in get_default_ch_nums()
1064 val = path->ctls[NID_PATH_MUTE_CTL]; in add_sw_ctl()
1157 return path && path->ctls[ctl_type]; in path_has_mixer()
1293 if (path->ctls[NID_PATH_VOL_CTL] || in assign_out_path_ctls()
1294 path->ctls[NID_PATH_MUTE_CTL]) in assign_out_path_ctls()
1305 path->ctls[NID_PATH_VOL_CTL] = val; in assign_out_path_ctls()
1319 path->ctls[NID_PATH_MUTE_CTL] = val; in assign_out_path_ctls()
3107 path->ctls[NID_PATH_VOL_CTL] = mix_val; in new_analog_input()
[all …]
H A Dgeneric.h49 unsigned int ctls[NID_PATH_NUM_CTLS]; /* NID_PATH_XXX_CTL */ member
/linux/drivers/firmware/cirrus/test/
H A Dcs_dsp_test_control_parse.c1194 struct cs_dsp_coeff_ctl *ctls[ARRAY_SIZE(cs_dsp_ctl_parse_test_algs)]; in cs_dsp_ctl_squash_reloaded_controls() local
1220 KUNIT_ASSERT_LT(test, i, ARRAY_SIZE(ctls)); in cs_dsp_ctl_squash_reloaded_controls()
1221 ctls[i++] = walkctl; in cs_dsp_ctl_squash_reloaded_controls()
1236 KUNIT_ASSERT_LT(test, i, ARRAY_SIZE(ctls)); in cs_dsp_ctl_squash_reloaded_controls()
1237 KUNIT_ASSERT_PTR_EQ(test, walkctl, ctls[i++]); in cs_dsp_ctl_squash_reloaded_controls()
1252 struct cs_dsp_coeff_ctl *ctls[ARRAY_SIZE(cs_dsp_get_ctl_test_names)]; in cs_dsp_ctl_v2_squash_reloaded_controls() local
1286 KUNIT_ASSERT_LT(test, i, ARRAY_SIZE(ctls)); in cs_dsp_ctl_v2_squash_reloaded_controls()
1287 ctls[i++] = walkctl; in cs_dsp_ctl_v2_squash_reloaded_controls()
1302 KUNIT_ASSERT_LT(test, i, ARRAY_SIZE(ctls)); in cs_dsp_ctl_v2_squash_reloaded_controls()
1303 KUNIT_ASSERT_PTR_EQ(test, walkctl, ctls[i++]); in cs_dsp_ctl_v2_squash_reloaded_controls()
/linux/sound/hda/common/
H A Dcodec.c2293 val |= spdif->ctls & 1; in snd_hda_spdif_default_put()
2294 change = spdif->ctls != val; in snd_hda_spdif_default_put()
2295 spdif->ctls = val; in snd_hda_spdif_default_put()
2314 ucontrol->value.integer.value[0] = spdif->ctls & AC_DIG1_ENABLE; in snd_hda_spdif_out_switch_get()
2344 val = spdif->ctls & ~AC_DIG1_ENABLE; in snd_hda_spdif_out_switch_put()
2347 change = spdif->ctls != val; in snd_hda_spdif_out_switch_put()
2348 spdif->ctls = val; in snd_hda_spdif_out_switch_put()
2455 spdif->ctls = val; in snd_hda_create_dig_out_ctls()
2456 spdif->status = convert_to_spdif_status(spdif->ctls); in snd_hda_create_dig_out_ctls()
2520 val = spdif->ctls; in snd_hda_spdif_ctls_assign()
[all …]
H A Dcontroller.c163 unsigned short ctls = spdif ? spdif->ctls : 0; in azx_pcm_prepare() local
173 format_val = snd_hdac_spdif_stream_format(runtime->channels, bits, runtime->rate, ctls); in azx_pcm_prepare()
/linux/sound/pci/ca0106/
H A Dca0106_mixer.c719 #define ADD_CTLS(emu, ctls) \ argument
722 for (i = 0; i < ARRAY_SIZE(ctls); i++) { \
723 _err = snd_ctl_add(card, snd_ctl_new1(&ctls[i], emu)); \
/linux/sound/hda/codecs/side-codecs/
H A Dtas2781_hda_i2c.c413 struct snd_kcontrol **ctls, struct hda_codec *codec, in tasdev_add_kcontrols() argument
419 ctls[i] = snd_ctl_new1( in tasdev_add_kcontrols()
421 ret = snd_ctl_add(codec->card, ctls[i]); in tasdev_add_kcontrols()
/linux/include/sound/
H A Dhda_codec.h404 unsigned short ctls; /* SPDIF control bits */ member
/linux/sound/pci/emu10k1/
H A Demumixer.c29 const char * const *ctls, unsigned nctls) in add_ctls() argument
35 kctl.name = ctls[i]; in add_ctls()