/sound/soc/codecs/ |
D | hdac_hdmi.c | 86 struct hdac_hdmi_pin *pin; member 166 struct hdac_device *hdev = port->pin->hdev; in hdac_hdmi_jack_report() 250 return snd_hdac_codec_read(hdev, port->pin->nid, in hdac_hdmi_port_select_get() 263 if (!port->pin->mst_capable) in hdac_hdmi_port_select_set() 267 num_ports = hdac_hdmi_get_port_len(hdev, port->pin->nid); in hdac_hdmi_port_select_set() 277 snd_hdac_codec_write(hdev, port->pin->nid, 0, in hdac_hdmi_port_select_set() 367 struct hdac_hdmi_pin *pin = port->pin; in hdac_hdmi_setup_audio_infoframe() local 384 snd_hdac_setup_channel_mapping(&hdmi->chmap, pin->nid, false, ca, in hdac_hdmi_setup_audio_infoframe() 420 hdac_hdmi_set_dip_index(hdev, pin->nid, 0x0, 0x0); in hdac_hdmi_setup_audio_infoframe() 421 snd_hdac_codec_write(hdev, pin->nid, 0, in hdac_hdmi_setup_audio_infoframe() [all …]
|
/sound/pci/lola/ |
D | lola_mixer.c | 18 static int lola_init_pin(struct lola *chip, struct lola_pin *pin, in lola_init_pin() argument 24 pin->nid = nid; in lola_init_pin() 32 pin->is_analog = false; in lola_init_pin() 34 pin->is_analog = true; in lola_init_pin() 36 pin->is_analog = true; in lola_init_pin() 44 if (!pin->is_analog) in lola_init_pin() 56 pin->amp_mute = LOLA_AMP_MUTE_CAPABLE(val); in lola_init_pin() 57 pin->amp_step_size = LOLA_AMP_STEP_SIZE(val); in lola_init_pin() 58 pin->amp_num_steps = LOLA_AMP_NUM_STEPS(val); in lola_init_pin() 59 if (pin->amp_num_steps) { in lola_init_pin() [all …]
|
D | lola_proc.c | 111 chip->pin[CAPT].num_pins, chip->pin[PLAY].num_pins); in lola_proc_codec_read() 117 for (i = 0; i < chip->pin[CAPT].num_pins; i++, nid++) in lola_proc_codec_read() 120 for (i = 0; i < chip->pin[PLAY].num_pins; i++, nid++) in lola_proc_codec_read()
|
D | lola.c | 467 chip->pin[CAPT].num_pins = LOLA_AFG_INPUT_PIN_COUNT(chip->lola_caps); in lola_parse_tree() 468 chip->pin[PLAY].num_pins = LOLA_AFG_OUTPUT_PIN_COUNT(chip->lola_caps); in lola_parse_tree() 471 chip->pin[CAPT].num_pins, chip->pin[PLAY].num_pins); in lola_parse_tree() 473 if (chip->pin[CAPT].num_pins > MAX_AUDIO_INOUT_COUNT || in lola_parse_tree() 474 chip->pin[PLAY].num_pins > MAX_AUDIO_INOUT_COUNT) { in lola_parse_tree()
|
/sound/soc/ |
D | soc-component.c | 81 const char *pin) in snd_soc_component_enable_pin() argument 89 return snd_soc_dapm_enable_pin(dapm, pin); in snd_soc_component_enable_pin() 91 full_name = kasprintf(GFP_KERNEL, "%s %s", component->name_prefix, pin); in snd_soc_component_enable_pin() 103 const char *pin) in snd_soc_component_enable_pin_unlocked() argument 111 return snd_soc_dapm_enable_pin_unlocked(dapm, pin); in snd_soc_component_enable_pin_unlocked() 113 full_name = kasprintf(GFP_KERNEL, "%s %s", component->name_prefix, pin); in snd_soc_component_enable_pin_unlocked() 125 const char *pin) in snd_soc_component_disable_pin() argument 133 return snd_soc_dapm_disable_pin(dapm, pin); in snd_soc_component_disable_pin() 135 full_name = kasprintf(GFP_KERNEL, "%s %s", component->name_prefix, pin); in snd_soc_component_disable_pin() 147 const char *pin) in snd_soc_component_disable_pin_unlocked() argument [all …]
|
D | soc-jack.c | 81 struct snd_soc_jack_pin *pin; in snd_soc_jack_report() local 98 list_for_each_entry(pin, &jack->pins, list) { in snd_soc_jack_report() 99 enable = pin->mask & jack->status; in snd_soc_jack_report() 101 if (pin->invert) in snd_soc_jack_report() 105 snd_soc_dapm_enable_pin(dapm, pin->pin); in snd_soc_jack_report() 107 snd_soc_dapm_disable_pin(dapm, pin->pin); in snd_soc_jack_report() 188 if (!pins[i].pin) { in snd_soc_jack_add_pins() 195 " (%s)\n", i, pins[i].pin); in snd_soc_jack_add_pins() 201 snd_jack_add_new_kctl(jack->jack, pins[i].pin, pins[i].mask); in snd_soc_jack_add_pins()
|
D | soc-dapm.c | 2522 struct snd_soc_dapm_context *dapm, const char *pin, in dapm_find_widget() argument 2529 if (!strcmp(w->name, pin)) { in dapm_find_widget() 2549 const char *pin, int status) in __snd_soc_dapm_set_pin() argument 2551 struct snd_soc_dapm_widget *w = dapm_find_widget(dapm, pin, true); in __snd_soc_dapm_set_pin() 2557 dev_err(dapm->dev, "ASoC: DAPM unknown pin %s\n", pin); in __snd_soc_dapm_set_pin() 2580 const char *pin, int status) in snd_soc_dapm_set_pin() argument 2582 int ret = __snd_soc_dapm_set_pin(dapm, pin, status); in snd_soc_dapm_set_pin() 3574 const char *pin = (const char *)kcontrol->private_value; in snd_soc_dapm_get_pin_switch() local 3579 snd_soc_dapm_get_pin_status(&card->dapm, pin); in snd_soc_dapm_get_pin_switch() 3597 const char *pin = (const char *)kcontrol->private_value; in snd_soc_dapm_put_pin_switch() local [all …]
|
/sound/soc/ti/ |
D | ams-delta.c | 107 int pin, changed = 0; in ams_delta_set_audio_mode() local 122 pin = !!(pins & (1 << AMS_DELTA_MOUTHPIECE)); in ams_delta_set_audio_mode() 124 if (pin != snd_soc_dapm_get_pin_status(dapm, "Mouthpiece")) { in ams_delta_set_audio_mode() 126 if (pin) in ams_delta_set_audio_mode() 131 pin = !!(pins & (1 << AMS_DELTA_EARPIECE)); in ams_delta_set_audio_mode() 132 if (pin != snd_soc_dapm_get_pin_status(dapm, "Earpiece")) { in ams_delta_set_audio_mode() 134 if (pin) in ams_delta_set_audio_mode() 139 pin = !!(pins & (1 << AMS_DELTA_MICROPHONE)); in ams_delta_set_audio_mode() 140 if (pin != snd_soc_dapm_get_pin_status(dapm, "Microphone")) { in ams_delta_set_audio_mode() 142 if (pin) in ams_delta_set_audio_mode() [all …]
|
D | omap-twl4030.c | 121 .pin = "Headset Mic", 125 .pin = "Headset Stereophone", 140 int connected, char *pin) in twl4030_disconnect_pin() argument 143 snd_soc_dapm_disable_pin(dapm, pin); in twl4030_disconnect_pin()
|
/sound/pci/hda/ |
D | hda_generic.c | 199 #define update_pin_ctl(codec, pin, val) \ argument 200 snd_hda_codec_write_cache(codec, pin, 0, \ 204 static inline void restore_pin_ctl(struct hda_codec *codec, hda_nid_t pin) in restore_pin_ctl() argument 206 update_pin_ctl(codec, pin, snd_hda_codec_get_pin_target(codec, pin)); in restore_pin_ctl() 210 static void set_pin_target(struct hda_codec *codec, hda_nid_t pin, in set_pin_target() argument 213 if (!pin) in set_pin_target() 215 val = snd_hda_correct_pin_ctl(codec, pin, val); in set_pin_target() 216 snd_hda_codec_set_pin_target(codec, pin, val); in set_pin_target() 218 update_pin_ctl(codec, pin, val); in set_pin_target() 507 static hda_nid_t get_preferred_dac(struct hda_codec *codec, hda_nid_t pin) in get_preferred_dac() argument [all …]
|
D | hda_auto_parser.c | 30 hda_nid_t pin; member 51 pins[i] = list[i].pin; in sort_pins_by_sequence() 60 cfg->inputs[cfg->num_inputs].pin = nid; in add_auto_cfg_input_pin() 108 static bool check_pincap_validity(struct hda_codec *codec, hda_nid_t pin, in check_pincap_validity() argument 111 unsigned int pincap = snd_hda_query_pin_caps(codec, pin); in check_pincap_validity() 141 def_conf = snd_hda_codec_get_pincfg(codec, item->pin); in can_be_headset_mic() 248 line_out[cfg->line_outs].pin = nid; in snd_hda_parse_pin_defcfg() 261 speaker_out[cfg->speaker_outs].pin = nid; in snd_hda_parse_pin_defcfg() 274 hp_out[cfg->hp_outs].pin = nid; in snd_hda_parse_pin_defcfg() 436 cfg->inputs[i].pin); in snd_hda_parse_pin_defcfg() [all …]
|
D | hda_codec.c | 437 struct hda_pincfg *pin; in read_pin_defaults() local 442 pin = snd_array_new(&codec->init_pins); in read_pin_defaults() 443 if (!pin) in read_pin_defaults() 445 pin->nid = nid; in read_pin_defaults() 446 pin->cfg = snd_hda_codec_read(codec, nid, 0, in read_pin_defaults() 452 pin->ctrl = snd_hda_codec_read(codec, nid, 0, in read_pin_defaults() 464 struct hda_pincfg *pin; in look_up_pincfg() local 467 snd_array_for_each(array, i, pin) { in look_up_pincfg() 468 if (pin->nid == nid) in look_up_pincfg() 469 return pin; in look_up_pincfg() [all …]
|
D | hda_local.h | 400 unsigned int snd_hda_get_default_vref(struct hda_codec *codec, hda_nid_t pin); 402 hda_nid_t pin, unsigned int val); 403 int _snd_hda_set_pin_ctl(struct hda_codec *codec, hda_nid_t pin, 422 snd_hda_set_pin_ctl(struct hda_codec *codec, hda_nid_t pin, unsigned int val) in snd_hda_set_pin_ctl() argument 424 return _snd_hda_set_pin_ctl(codec, pin, val, false); in snd_hda_set_pin_ctl() 436 snd_hda_set_pin_ctl_cache(struct hda_codec *codec, hda_nid_t pin, in snd_hda_set_pin_ctl_cache() argument 439 return _snd_hda_set_pin_ctl(codec, pin, val, true); in snd_hda_set_pin_ctl_cache()
|
D | hda_generic.h | 13 hda_nid_t pin; /* multi-io widget pin NID */ member 56 hda_nid_t pin; /* pin */ member 355 int snd_hda_gen_fix_pin_power(struct hda_codec *codec, hda_nid_t pin);
|
/sound/soc/pxa/ |
D | z2.c | 76 .pin = "Mic Jack", 80 .pin = "Headphone Jack", 84 .pin = "Ext Spk",
|
D | ttc-dkb.c | 20 { .pin = "Headset Stereophone", .mask = SND_JACK_HEADPHONE, }, 24 { .pin = "Headset Mic 2", .mask = SND_JACK_MICROPHONE, },
|
D | hx4700.c | 30 .pin = "Headphone Jack", 34 .pin = "Speaker",
|
/sound/soc/fsl/ |
D | wm1133-ev1.c | 187 { .pin = "Headphone Jack", .mask = SND_JACK_HEADPHONE }, 193 { .pin = "Mic1 Jack", .mask = SND_JACK_MICROPHONE }, 194 { .pin = "Mic2 Jack", .mask = SND_JACK_MICROPHONE },
|
/sound/usb/ |
D | clock.c | 120 unsigned char pin) in uac_clock_selector_set_val() argument 129 &pin, sizeof(pin)); in uac_clock_selector_set_val() 133 if (ret != sizeof(pin)) { in uac_clock_selector_set_val() 144 if (ret != pin) { in uac_clock_selector_set_val() 147 selector_id, pin, ret); in uac_clock_selector_set_val()
|
/sound/pci/pcxhr/ |
D | pcxhr_hwdep.c | 155 int is_capture, int pin) in pcxhr_dsp_allocate_pipe() argument 172 pin, is_capture ? 'c' : 'p'); in pcxhr_dsp_allocate_pipe() 174 pipe->first_audio = pin; in pcxhr_dsp_allocate_pipe() 177 pcxhr_set_pipe_cmd_params(&rmh, is_capture, pin, in pcxhr_dsp_allocate_pipe()
|
/sound/soc/intel/boards/ |
D | byt-max98090.c | 51 .pin = "Headphone", 55 .pin = "Headset Mic",
|
/sound/soc/samsung/ |
D | h1940_uda1380.c | 38 .pin = "Headphone Jack", 42 .pin = "Speaker",
|
D | lowland.c | 24 .pin = "Headphone", 28 .pin = "Headset Mic",
|
D | rx1950_uda1380.c | 49 .pin = "Headphone Jack", 53 .pin = "Speaker",
|
/sound/soc/mediatek/mt8173/ |
D | mt8173-max98090.c | 19 .pin = "Headphone", 23 .pin = "Headset Mic",
|