Lines Matching +full:hp +full:- +full:cfg
1 // SPDX-License-Identifier: GPL-2.0-or-later
17 static int dump_coef = -1;
19 MODULE_PARM_DESC(dump_coef, "Dump processing coefficients in codec proc file (-1=auto, 0=disable, 1…
23 snd_hdac_read_parm_uncached(&(codec)->core, nid, parm)
38 if (wid_value == -1) in get_wid_type_name()
52 struct hda_nid_item *items = array->list, *item; in print_nid_array()
54 for (i = 0; i < array->used; i++) { in print_nid_array()
56 if (item->nid == nid) { in print_nid_array()
57 kctl = item->kctl; in print_nid_array()
60 kctl->id.name, kctl->id.index + item->index, in print_nid_array()
61 kctl->id.device); in print_nid_array()
62 if (item->flags & HDA_NID_ITEM_AMP) in print_nid_array()
80 list_for_each_entry(cpcm, &codec->pcm_list_head, list) { in print_nid_pcms()
82 if (cpcm->stream[type].nid != nid || cpcm->pcm == NULL) in print_nid_pcms()
86 cpcm->name, in print_nid_pcms()
87 snd_hda_pcm_type_name[cpcm->pcm_type], in print_nid_pcms()
88 cpcm->pcm->device); in print_nid_pcms()
99 if (caps == -1 || caps == 0) { in print_amp_caps()
111 /* is this a stereo widget or a stereo-to-mono mix? */
119 /* check for a stereo-to-mono mix; it must be: in is_stereo_amps()
204 if (pcm == -1 || stream == -1) { in print_pcm_caps()
213 static const char *get_jack_connection(u32 cfg) in get_jack_connection() argument
221 cfg = (cfg & AC_DEFCFG_CONN_TYPE) >> AC_DEFCFG_CONN_TYPE_SHIFT; in get_jack_connection()
222 if (names[cfg]) in get_jack_connection()
223 return names[cfg]; in get_jack_connection()
228 static const char *get_jack_color(u32 cfg) in get_jack_color() argument
236 cfg = (cfg & AC_DEFCFG_COLOR) >> AC_DEFCFG_COLOR_SHIFT; in get_jack_color()
237 if (names[cfg]) in get_jack_color()
238 return names[cfg]; in get_jack_color()
247 static const char *get_jack_location(u32 cfg) in get_jack_location() argument
260 "Mobile-In", "Mobile-Out" in get_jack_location()
264 cfg = (cfg & AC_DEFCFG_LOCATION) >> AC_DEFCFG_LOCATION_SHIFT; in get_jack_location()
265 if ((cfg & 0x0f) < 7) in get_jack_location()
266 return bases[cfg & 0x0f]; in get_jack_location()
268 if (cfg == specials_idx[i]) in get_jack_location()
278 static const char *get_jack_connectivity(u32 cfg) in get_jack_connectivity() argument
284 return jack_locations[(cfg >> (AC_DEFCFG_LOCATION_SHIFT + 4)) & 3]; in get_jack_connectivity()
289 * jack type, i.e. the purpose of the jack, such as Line-Out or CD.
291 static const char *get_jack_type(u32 cfg) in get_jack_type() argument
294 "Line Out", "Speaker", "HP Out", "CD", in get_jack_type()
300 return jack_types[(cfg & AC_DEFCFG_DEVICE) in get_jack_type()
320 snd_iprintf(buffer, " HP"); in print_pin_caps()
329 if ((codec->core.vendor_id >> 16) == 0x10ec) in print_pin_caps()
408 snd_iprintf(buffer, " Pin-ctls: 0x%02x:", pinctls); in print_pin_ctls()
414 snd_iprintf(buffer, " HP"); in print_pin_ctls()
442 snd_iprintf(buffer, " Volume-Knob: delta=%d, steps=%d, ", in print_vol_knob()
463 snd_iprintf(buffer, " SDI-Select: %d\n", in print_audio_io()
486 snd_iprintf(buffer, " Non-Copyright"); in print_digital_conv()
488 snd_iprintf(buffer, " Non-Audio"); in print_digital_conv()
529 if (sup != -1) { in print_power_state()
547 snd_iprintf(buffer, ", Clock-stop-OK"); in print_power_state()
549 snd_iprintf(buffer, ", Setting-reset"); in print_power_state()
569 default: return codec->dump_coef; in can_dump_coef()
585 /* Note: This is racy - another process could run in parallel and change in print_proc_caps()
603 int c, curr = -1; in print_conn_list()
628 snd_iprintf(buffer, " In-driver Connection: %d\n", cache_len); in print_conn_list()
642 param_read(codec, codec->core.afg, AC_PAR_GPIO_CAP); in print_gpio()
678 print_nid_array(buffer, codec, nid, &codec->mixers); in print_gpio()
679 print_nid_array(buffer, codec, nid, &codec->nids); in print_gpio()
717 int i, curr = -1; in print_device_list()
752 if (codec->vendor_name && codec->chip_name) in print_codec_core_info()
754 codec->vendor_name, codec->chip_name); in print_codec_core_info()
757 snd_iprintf(buffer, "Address: %d\n", codec->addr); in print_codec_core_info()
758 if (codec->afg) in print_codec_core_info()
760 codec->afg_function_id, codec->afg_unsol); in print_codec_core_info()
761 if (codec->mfg) in print_codec_core_info()
763 codec->mfg_function_id, codec->mfg_unsol); in print_codec_core_info()
764 snd_iprintf(buffer, "Vendor Id: 0x%08x\n", codec->vendor_id); in print_codec_core_info()
765 snd_iprintf(buffer, "Subsystem Id: 0x%08x\n", codec->subsystem_id); in print_codec_core_info()
766 snd_iprintf(buffer, "Revision Id: 0x%x\n", codec->revision_id); in print_codec_core_info()
768 if (codec->mfg) in print_codec_core_info()
769 snd_iprintf(buffer, "Modem Function Group: 0x%x\n", codec->mfg); in print_codec_core_info()
777 struct hda_codec *codec = entry->private_data; in print_codec_info()
781 print_codec_core_info(&codec->core, buffer); in print_codec_info()
782 fg = codec->core.afg; in print_codec_info()
788 snd_iprintf(buffer, "Default Amp-In caps: "); in print_codec_info()
790 snd_iprintf(buffer, "Default Amp-Out caps: "); in print_codec_info()
803 if (codec->proc_widget_hook) in print_codec_info()
804 codec->proc_widget_hook(buffer, codec, fg); in print_codec_info()
820 snd_iprintf(buffer, " %d-Channels", chans); in print_codec_info()
826 snd_iprintf(buffer, " Amp-In"); in print_codec_info()
828 snd_iprintf(buffer, " Amp-Out"); in print_codec_info()
837 print_nid_array(buffer, codec, nid, &codec->mixers); in print_codec_info()
838 print_nid_array(buffer, codec, nid, &codec->nids); in print_codec_info()
862 snd_iprintf(buffer, " Amp-In caps: "); in print_codec_info()
864 snd_iprintf(buffer, " Amp-In vals: "); in print_codec_info()
866 (codec->single_adc_amp && in print_codec_info()
875 snd_iprintf(buffer, " Amp-Out caps: "); in print_codec_info()
877 snd_iprintf(buffer, " Amp-Out vals: "); in print_codec_info()
879 codec->pin_amp_workaround) in print_codec_info()
920 if (wid_type == AC_WID_PIN && codec->dp_mst) in print_codec_info()
930 if (codec->proc_widget_hook) in print_codec_info()
931 codec->proc_widget_hook(buffer, codec, nid); in print_codec_info()
945 snprintf(name, sizeof(name), "codec#%d", codec->core.addr); in snd_hda_codec_proc_new()
946 return snd_card_ro_proc_new(codec->card, name, codec, print_codec_info); in snd_hda_codec_proc_new()