Home
last modified time | relevance | path

Searched refs:codec (Results 1 – 25 of 1034) sorted by relevance

12345678910>>...42

/linux-6.3-rc2/sound/pci/hda/
A Dhda_bind.c29 u32 id = codec->probe_id ? codec->probe_id : codec->core.vendor_id; in hda_codec_match()
56 codec->patch_ops.unsol_event(codec, ev); in hda_codec_unsol_event()
76 codec->bus->mixer_assigned >= codec->core.addr) { in snd_hda_codec_set_name()
79 codec->core.vendor_name, codec->core.chip_name); in snd_hda_codec_set_name()
80 codec->bus->mixer_assigned = codec->core.addr; in snd_hda_codec_set_name()
97 return codec->bus->core.ext_ops->hdev_attach(&codec->core); in hda_codec_driver_probe()
103 err = snd_hda_codec_set_name(codec, codec->preset->name); in hda_codec_driver_probe()
129 if (!codec->bus->bus_probing && codec->card->registered) { in hda_codec_driver_probe()
141 codec->patch_ops.free(codec); in hda_codec_driver_probe()
158 return codec->bus->core.ext_ops->hdev_detach(&codec->core); in hda_codec_driver_remove()
[all …]
A Dpatch_ca0132.c3038 struct hda_codec *codec = dma->codec; in dma_reset() local
3418 dma_engine->codec = codec; in dspxfr_image()
3851 snd_hda_codec_write(codec, codec->core.afg, 0, in r3di_gpio_mic_set()
3866 snd_hda_codec_write(codec, codec->core.afg, 0, in r3di_gpio_dsp_status_set()
3873 snd_hda_codec_write(codec, codec->core.afg, 0, in r3di_gpio_dsp_status_set()
3880 snd_hda_codec_write(codec, codec->core.afg, 0, in r3di_gpio_dsp_status_set()
4683 snd_hda_codec_write(codec, codec->core.afg, 0, in ca0132_alt_select_out_quirk_set()
8792 snd_hda_codec_write(codec, codec->core.afg, 0, in ca0132_init_chip()
8794 snd_hda_codec_write(codec, codec->core.afg, 0, in ca0132_init_chip()
9107 codec->patch_ops.init(codec); in sbz_dsp_startup_check()
[all …]
A Dhda_codec.c723 pcm->codec = codec; in snd_hda_codec_pcm_new()
1016 fg = codec->core.afg ? codec->core.afg : codec->core.mfg; in snd_hda_codec_device_new()
1076 fg = codec->core.afg ? codec->core.afg : codec->core.mfg; in snd_hda_codec_update_widgets()
2030 .codec = codec, in __snd_hda_add_vmaster()
2064 hook->codec = codec; in snd_hda_add_vmaster_hook()
2786 hda_nid_t fg = codec->core.afg ? codec->core.afg : codec->core.mfg; in hda_set_power_state()
2887 codec->patch_ops.suspend(codec); in hda_call_codec_suspend()
2912 codec->patch_ops.resume(codec); in hda_call_codec_resume()
2915 codec->patch_ops.init(codec); in hda_call_codec_resume()
3106 err = codec->patch_ops.init(codec); in snd_hda_codec_build_controls()
[all …]
A Dpatch_via.c108 codec->spec = spec; in via_new_spec()
359 snd_hda_codec_write(codec, codec->core.afg, 0, verb, parm); in __analog_low_current_mode()
399 codec->patch_ops.init(codec); in via_resume()
639 via_free(codec); in patch_vt1708()
662 via_free(codec); in patch_vt1709()
690 via_free(codec); in patch_vt1708B()
748 via_free(codec); in patch_vt1708S()
793 via_free(codec); in patch_vt1702()
872 via_free(codec); in patch_vt1718S()
975 via_free(codec); in patch_vt1716S()
[all …]
A Dpatch_cirrus.c304 snd_hda_gen_init(codec); in cs_init()
316 init_input_coef(codec); in cs_init()
317 init_digital_coef(codec); in cs_init()
579 codec->spec = spec; in cs_alloc_spec()
613 cs_free(codec); in patch_cs420x()
802 cs_free(codec); in patch_cs4208()
1043 cs_automute(codec); in cs4210_spdif_automute()
1073 snd_hda_gen_init(codec); in cs421x_init()
1084 init_input_coef(codec); in cs421x_init()
1201 cs_free(codec); in patch_cs4210()
[all …]
A Dpatch_hdmi.c516 struct hda_codec *codec = per_pin->codec; in eld_proc_new() local
820 codec_dbg(codec, in hdmi_intrinsic_event()
837 codec->addr, in hdmi_non_intrinsic_event()
1422 struct hda_codec *codec = per_pin->codec; in hdmi_pcm_setup_pin() local
1595 struct hda_codec *codec = per_pin->codec; in hdmi_present_sense_via_verbs() local
1837 struct hda_codec *codec = per_pin->codec; in hdmi_present_sense() local
1849 struct hda_codec *codec = per_pin->codec; in hdmi_repoll_eld() local
2419 per_pin->codec = codec; in generic_hdmi_init_per_pins()
2518 codec->patch_ops.init(codec); in generic_hdmi_resume()
2557 spec->codec = codec; in alloc_generic_hdmi()
[all …]
A Dpatch_realtek.c304 snd_hda_codec_write(codec, codec->core.afg, 0, in alc_write_gpio()
306 snd_hda_codec_write(codec, codec->core.afg, 0, in alc_write_gpio()
799 codec_dbg(codec, in alc_subsystem_id()
979 codec->patch_ops.init(codec); in alc_resume()
1673 alc_free(codec); in patch_alc880()
1926 alc_free(codec); in patch_alc260()
4019 #define alc5505_dsp_suspend(codec) alc5505_dsp_halt(codec) argument
4045 codec->patch_ops.init(codec); in alc269_resume()
4819 snd_hda_codec_write_cache(codec, codec->core.afg, 0, in alc280_fixup_hp_gpio2_mic_hotkey()
4821 snd_hda_jack_detect_enable_callback(codec, codec->core.afg, in alc280_fixup_hp_gpio2_mic_hotkey()
[all …]
A Dhda_generic.c121 codec->inv_eapd = !!val; in parse_user_hints()
212 update_pin_ctl(codec, pin, snd_hda_codec_get_pin_target(codec, pin)); in restore_pin_ctl()
889 path_power_update(codec, path, codec->power_save_node); in snd_hda_activate_path()
913 sync_power_state_change(codec, path_power_update(codec, path, true)); in path_power_down_sync()
925 if (codec->inv_eapd) in set_pin_eapd()
1414 dac = try_dac(codec, get_primary_out(codec, i), pin); in try_assign_dacs()
1418 dac = try_dac(codec, get_primary_out(codec, i), pin); in try_assign_dacs()
5134 if (codec->beep && codec->power_save_node) { in snd_hda_gen_parse_auto_config()
6015 kfree(codec->spec); in snd_hda_gen_free()
6016 codec->spec = NULL; in snd_hda_gen_free()
[all …]
A Dpatch_analog.c118 ad198x_power_eapd(codec); in ad198x_suspend()
131 if (codec->inv_eapd) in ad_vmaster_eapd_hook()
203 codec->spec = spec; in alloc_ad_spec()
234 codec->inv_eapd = 0; in ad1986a_fixup_eapd()
398 spec = codec->spec; in patch_ad1986a()
401 codec->inv_eapd = 1; in patch_ad1986a()
524 spec = codec->spec; in patch_ad1983()
612 spec = codec->spec; in patch_ad1981()
904 spec = codec->spec; in patch_ad1988()
1084 spec = codec->spec; in patch_ad1884()
[all …]
A Dpatch_conexant.c170 snd_hda_gen_init(codec); in cx_auto_init()
174 cxt_init_gpio_led(codec); in cx_auto_init()
191 cx_auto_shutdown(codec); in cx_auto_free()
192 snd_hda_gen_free(codec); in cx_auto_free()
198 cx_auto_shutdown(codec); in cx_auto_suspend()
444 struct hda_codec *codec, in olpc_xo_capture_hook() argument
1032 codec_info(codec, "%s: BIOS auto-probing.\n", codec->core.chip_name); in patch_conexant_auto()
1038 codec->spec = spec; in patch_conexant_auto()
1041 cx_auto_parse_eapd(codec); in patch_conexant_auto()
1105 codec_info(codec, in patch_conexant_auto()
[all …]
A Dhda_jack.c31 if (codec->no_jack_detect) in is_jack_detectable()
39 !codec->jackpoll_interval) in is_jack_detectable()
51 if (!codec->no_trigger_sense) { in read_pin_sense()
59 if (codec->inv_jack_detect) in read_pin_sense()
390 WARN_ON(codec->dp_mst); in snd_hda_jack_set_gating_jack()
420 WARN_ON(codec->dp_mst); in snd_hda_jack_bind_keymap()
475 jack = codec->jacktbl.list; in snd_hda_jack_report_sync()
595 WARN_ON(codec->dp_mst); in add_jack_kctl()
692 cb->func(codec, cb); in call_jack_callback()
702 cb->func(codec, cb); in call_jack_callback()
[all …]
A Dpatch_cs8409.c63 spec->codec = codec; in cs8409_alloc_spec()
178 struct hda_codec *codec = scodec->codec; in cs8409_i2c_set_page() local
199 struct hda_codec *codec = scodec->codec; in cs8409_i2c_read() local
242 struct hda_codec *codec = scodec->codec; in cs8409_i2c_bulk_read() local
287 struct hda_codec *codec = scodec->codec; in cs8409_i2c_write() local
328 struct hda_codec *codec = scodec->codec; in cs8409_i2c_bulk_write() local
871 struct hda_codec *codec = cs42l42->codec; in cs42l42_resume() local
915 struct hda_codec *codec = cs42l42->codec; in cs42l42_suspend() local
1136 spec->scodecs[CS8409_CODEC0]->codec = codec; in cs8409_cs42l42_fixups()
1370 spec->scodecs[CS8409_CODEC0]->codec = codec; in dolphin_fixups()
[all …]
A Dhda_local.h140 #define snd_hda_regmap_sync(codec) snd_hdac_regmap_sync(&(codec)->core) argument
149 struct hda_codec *codec; member
308 { .codec = _codec,\
317 { .codec = _codec,\
439 for ((nid) = (codec)->core.start_nid; (nid) < (codec)->core.end_nid; (nid)++)
455 if (nid < codec->core.start_nid || in get_wcaps()
456 nid >= codec->core.start_nid + codec->core.num_nodes) in get_wcaps()
458 return codec->wcaps[nid - codec->core.start_nid]; in get_wcaps()
482 if (nid >= codec->core.start_nid && in snd_hda_override_wcaps()
483 nid < codec->core.start_nid + codec->core.num_nodes) in snd_hda_override_wcaps()
[all …]
A Dhda_sysfs.c68 codec->field ? codec->field : ""); \
100 return pin_configs_show(codec, &codec->init_pins, buf); in init_pin_configs_show()
108 return pin_configs_show(codec, &codec->driver_pins, buf); in driver_pin_configs_show()
134 snd_hda_power_up(codec); in reconfig_codec()
138 codec_err(codec, in reconfig_codec()
176 codec->field = val; \
190 codec->field = s; \
375 return pin_configs_show(codec, &codec->user_pins, buf); in user_pin_configs_show()
387 err = snd_hda_add_pincfg(codec, &codec->user_pins, nid, cfg); in parse_user_pin_configs()
549 *codecp = codec; in parse_codec_mode()
[all …]
A Dpatch_sigmatel.c415 !(snd_hda_codec_read(codec, codec->core.afg, 0, in stac_update_outputs()
459 snd_hda_codec_write(codec, codec->core.afg, 0, in stac_toggle_power_map()
491 snd_hda_codec_write(codec, codec->core.afg, 0, in jack_update_power()
501 data = snd_hda_codec_read(codec, codec->core.afg, 0, in stac_vref_event()
504 snd_hda_codec_write(codec, codec->core.afg, 0, 0x7e0, in stac_vref_event()
606 dac_mode = snd_hda_codec_read(codec, codec->core.afg, 0, in stac_aloopback_put()
618 snd_hda_codec_write_cache(codec, codec->core.afg, 0, in stac_aloopback_put()
762 max_gpio = snd_hda_param_read(codec, codec->core.afg, in find_mute_led_cfg()
3071 snd_hda_codec_write_cache(codec, codec->core.afg, 0, in stac92hd71bxx_fixup_hp_m4()
4113 snd_hda_codec_write_cache(codec, codec->core.afg, 0, in stac9205_fixup_dell_m43()
[all …]
A Dhda_proc.c642 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()
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()
760 codec->afg_function_id, codec->afg_unsol); in print_codec_core_info()
763 codec->mfg_function_id, codec->mfg_unsol); in print_codec_core_info()
804 codec->proc_widget_hook(buffer, codec, fg); 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()
[all …]
A Dpatch_si3054.c64 #define GET_REG(codec,reg) (snd_hda_codec_read(codec,reg,0,SI3054_VERB_READ_NODE,0)) argument
65 #define SET_REG(codec,reg,val) (snd_hda_codec_write(codec,reg,0,SI3054_VERB_WRITE_NODE,val)) argument
66 #define SET_REG_CACHE(codec,reg,val) \ argument
102 SET_REG_CACHE(codec, reg, (GET_REG(codec, reg)) | mask); in si3054_switch_put()
104 SET_REG_CACHE(codec, reg, (GET_REG(codec, reg)) & ~mask); in si3054_switch_put()
136 struct hda_codec *codec, in si3054_pcm_prepare() argument
155 struct hda_codec *codec, in si3054_pcm_open() argument
216 snd_hda_codec_write(codec, codec->core.mfg, 0, AC_VERB_SET_STREAM_FORMAT, 0); in si3054_init()
239 codec_dbg(codec, in si3054_init()
251 kfree(codec->spec); in si3054_free()
[all …]
A Dhda_auto_parser.c233 codec_info(codec, in snd_hda_parse_pin_defcfg()
239 codec_info(codec, in snd_hda_parse_pin_defcfg()
252 codec_info(codec, in snd_hda_parse_pin_defcfg()
265 codec_info(codec, in snd_hda_parse_pin_defcfg()
289 codec_info(codec, in snd_hda_parse_pin_defcfg()
883 __snd_hda_apply_fixup(codec, codec->fixup_id, action, 0); in snd_hda_apply_fixup()
943 if (codec->core.vendor_id != pq->codec) in snd_hda_pick_pin_fixup()
950 codec->core.chip_name, codec->fixup_name); in snd_hda_pick_pin_fixup()
991 if (codec->modelname && !strcmp(codec->modelname, "nofixup")) { in snd_hda_pick_fixup()
1006 codec->core.chip_name, codec->fixup_name); in snd_hda_pick_fixup()
[all …]
A Dhda_jack.h65 return snd_hda_jack_tbl_get_mst(codec, nid, 0); in snd_hda_jack_tbl_get()
69 snd_hda_jack_tbl_get_from_tag(struct hda_codec *codec,
72 void snd_hda_jack_tbl_disconnect(struct hda_codec *codec);
73 void snd_hda_jack_tbl_clear(struct hda_codec *codec);
75 void snd_hda_jack_set_dirty_all(struct hda_codec *codec);
132 return snd_hda_jack_detect_state_mst(codec, nid, 0); in snd_hda_jack_detect_state()
156 return snd_hda_jack_detect_mst(codec, nid, 0); in snd_hda_jack_detect()
182 return snd_hda_jack_add_kctl_mst(codec, nid, 0, in snd_hda_jack_add_kctl()
186 int snd_hda_jack_add_kctls(struct hda_codec *codec,
189 void snd_hda_jack_report_sync(struct hda_codec *codec);
[all …]
/linux-6.3-rc2/sound/pci/ali5451/
A Dali5451.c141 #define ALI_REG(codec, x) ((codec)->port + x) argument
607 outl(mask, ALI_REG(codec, codec->chregs.regs.stop)); in snd_ali_stop_voice()
887 if (codec == NULL || !codec->hw_initialized) in snd_ali_card_interrupt()
926 pvoice->codec = codec; in snd_ali_alloc_voice()
1796 err = snd_ac97_bus(codec->card, 0, &ops, codec, &codec->ac97_bus); in snd_ali_mixer()
1964 codec->ac97_ext_status = snd_ali_codec_peek(codec, 0, in snd_ali_chip_init()
2010 codec->port = pci_resource_start(codec->pci, 0); in snd_ali_resources()
2012 if (devm_request_irq(&codec->pci->dev, codec->pci->irq, in snd_ali_resources()
2018 codec->irq = codec->pci->irq; in snd_ali_resources()
2019 codec->card->sync_irq = codec->irq; in snd_ali_resources()
[all …]
/linux-6.3-rc2/sound/hda/
A Dhdac_device.c70 codec->vendor_id = snd_hdac_read_parm(codec, AC_NODE_ROOT, in snd_hdac_device_init()
76 codec->vendor_id = snd_hdac_read_parm(codec, AC_NODE_ROOT, in snd_hdac_device_init()
80 codec->subsystem_id = snd_hdac_read_parm(codec, AC_NODE_ROOT, in snd_hdac_device_init()
82 codec->revision_id = snd_hdac_read_parm(codec, AC_NODE_ROOT, in snd_hdac_device_init()
86 if (!codec->afg && !codec->mfg) { in snd_hdac_device_init()
92 fg = codec->afg ? codec->afg : codec->mfg; in snd_hdac_device_init()
100 if (codec->subsystem_id == -1 || codec->subsystem_id == 0) in snd_hdac_device_init()
132 snd_hdac_bus_remove_device(codec->bus, codec); in snd_hdac_device_exit()
172 snd_hdac_bus_remove_device(codec->bus, codec); in snd_hdac_device_unregister()
210 codec->vendor_id, codec->revision_id, codec->type); in snd_hdac_codec_modalias()
[all …]
A Dhdac_regmap.c379 regmap = regmap_init(&codec->dev, NULL, codec, &hda_regmap_cfg); in snd_hdac_regmap_init()
394 if (codec->regmap) { in snd_hdac_regmap_exit()
396 codec->regmap = NULL; in snd_hdac_regmap_exit()
432 if (!codec->regmap) in reg_raw_write()
463 return CALL_RAW_FUNC(codec, reg_raw_write(codec, reg, val)); in snd_hdac_regmap_write_raw()
485 return CALL_RAW_FUNC(codec, reg_raw_read(codec, reg, val, uncached)); in __snd_hdac_regmap_read_raw()
520 if (codec->regmap) { in reg_raw_update()
553 return CALL_RAW_FUNC(codec, reg_raw_update(codec, reg, mask, val)); in snd_hdac_regmap_update_raw()
563 if (!codec->regmap) in reg_raw_update_once()
590 return CALL_RAW_FUNC(codec, reg_raw_update_once(codec, reg, mask, val)); in snd_hdac_regmap_update_raw_once()
[all …]
A Dhdac_sysfs.c36 codec->type ? codec->type : ""); \
190 if (nid == codec->afg || nid == codec->mfg) in has_pcm_cap()
222 if (nid != codec->afg && !(get_wcaps(codec, nid) & AC_WCAP_IN_AMP)) in amp_in_caps_show()
231 if (nid != codec->afg && !(get_wcaps(codec, nid) & AC_WCAP_OUT_AMP)) in amp_out_caps_show()
240 if (nid != codec->afg && !(get_wcaps(codec, nid) & AC_WCAP_POWER)) in power_caps_show()
382 for (i = 0, nid = codec->start_nid; i < codec->num_nodes; i++, nid++) { in widget_tree_create()
389 if (codec->afg) { in widget_tree_create()
405 if (codec->widgets) in hda_widget_sysfs_init()
432 if (!codec->widgets) in hda_widget_sysfs_reinit()
454 if (nid < codec->start_nid || nid >= codec->end_nid) in hda_widget_sysfs_reinit()
[all …]
/linux-6.3-rc2/drivers/media/pci/zoran/
A Dvideocodec.c73 res = codec->setup(codec); in videocodec_attach()
79 ptr->codec = codec; in videocodec_attach()
124 codec->name, codec->type, codec->flags, codec->magic); in videocodec_detach()
135 if (codec == a->codec) { in videocodec_detach()
136 res = a->codec->unset(a->codec); in videocodec_detach()
181 codec->name, codec->type, codec->flags, codec->magic); in videocodec_register()
186 ptr->codec = codec; in videocodec_register()
216 codec->name, codec->type, codec->flags, codec->magic); in videocodec_unregister()
224 if (codec == h->codec) { in videocodec_unregister()
262 h->codec->name, h->codec->type, in videocodec_debugfs_show()
[all …]
/linux-6.3-rc2/include/sound/
A Dhda_codec.h110 int (*init)(struct hda_codec *codec);
111 void (*free)(struct hda_codec *codec);
135 struct hda_codec *codec,
171 struct hda_codec *codec; member
433 refcount_inc(&pcm->codec->pcm_ref); in snd_hda_codec_pcm_get()
488 return codec->patch_ops.check_power_status(codec, nid); in hda_call_check_power_status()
496 #define snd_hda_power_up(codec) snd_hdac_power_up(&(codec)->core) argument
497 #define snd_hda_power_up_pm(codec) snd_hdac_power_up_pm(&(codec)->core) argument
498 #define snd_hda_power_down(codec) snd_hdac_power_down(&(codec)->core) argument
499 #define snd_hda_power_down_pm(codec) snd_hdac_power_down_pm(&(codec)->core) argument
[all …]

Completed in 202 milliseconds

12345678910>>...42