| /sound/hda/codecs/realtek/ |
| A D | realtek.c | 18 snd_hda_power_up_pm(codec); in coef_mutex_lock() 45 coef_mutex_lock(codec); in alc_read_coefex_idx() 62 coef_mutex_lock(codec); in alc_write_coefex_idx() 160 snd_hda_codec_write(codec, codec->core.afg, 0, in alc_write_gpio() 162 snd_hda_codec_write(codec, codec->core.afg, 0, in alc_write_gpio() 235 alc_fix_pll(codec); in alc_fix_pll_init() 698 codec_dbg(codec, in alc_subsystem_id() 775 codec_dbg(codec, in alc_ssid_check() 819 alc_fix_pll(codec); in alc_init() 852 alc_shutup(codec); in alc_suspend() [all …]
|
| A D | realtek.h | 110 void (*shutup)(struct hda_codec *codec); 213 alc_fill_eapd_coef(codec); in alc_pre_init() 216 #define is_s3_resume(codec) \ argument 218 #define is_s4_resume(codec) \ argument 220 #define is_s4_suspend(codec) \ argument 223 int alc_init(struct hda_codec *codec); 224 void alc_shutup(struct hda_codec *codec); 226 int alc_suspend(struct hda_codec *codec); 227 int alc_resume(struct hda_codec *codec); 234 #define alc_codec_rename(codec, name) snd_hda_codec_set_name(codec, name) argument [all …]
|
| A D | alc269.c | 224 alc_shutup_pins(codec); in alc269_shutup() 310 alc269_shutup(codec); in alc282_shutup() 335 alc_shutup_pins(codec); in alc282_shutup() 424 alc269_shutup(codec); in alc283_shutup() 813 alc269_shutup(codec); in alc_default_shutup() 970 #define alc5505_dsp_suspend(codec) alc5505_dsp_halt(codec) argument 971 #define alc5505_dsp_resume(codec) alc5505_dsp_back_from_halt(codec) argument 1280 codec_dbg(codec, in alc269_fixup_hp_mute_led() 1893 snd_hda_codec_write_cache(codec, codec->core.afg, 0, in alc280_fixup_hp_gpio2_mic_hotkey() 1895 snd_hda_jack_detect_enable_callback(codec, codec->core.afg, in alc280_fixup_hp_gpio2_mic_hotkey() [all …]
|
| /sound/hda/common/ |
| A D | bind.c | 28 u32 id = codec->probe_id ? codec->probe_id : codec->core.vendor_id; in hda_codec_match() 48 if (codec->card->shutdown || codec->bus->shutdown) 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() 120 err = driver->ops->probe(codec, codec->preset); in hda_codec_driver_probe() 130 if (!codec->bus->bus_probing && codec->card->registered) { in hda_codec_driver_probe() 160 return codec->bus->core.ext_ops->hdev_detach(&codec->core); in hda_codec_driver_remove() [all …]
|
| A D | codec.c | 27 #define codec_in_pm(codec) snd_hdac_is_in_pm(&codec->core) argument 538 pin = look_up_pincfg(codec, &codec->init_pins, nid); in snd_hda_codec_get_pincfg() 560 pin = look_up_pincfg(codec, &codec->init_pins, nid); in snd_hda_codec_set_pin_target() 577 pin = look_up_pincfg(codec, &codec->init_pins, nid); in snd_hda_codec_get_pin_target() 704 pcm->codec = codec; in snd_hda_codec_pcm_new() 892 codec = kzalloc(sizeof(*codec), GFP_KERNEL); in snd_hda_codec_device_init() 994 fg = codec->core.afg ? codec->core.afg : codec->core.mfg; in snd_hda_codec_device_new() 1054 fg = codec->core.afg ? codec->core.afg : codec->core.mfg; in snd_hda_codec_update_widgets() 1984 .codec = codec, in __snd_hda_add_vmaster() 2018 hook->codec = codec; in snd_hda_add_vmaster_hook() [all …]
|
| A D | jack.c | 31 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 D | hda_local.h | 142 #define snd_hda_regmap_sync(codec) snd_hdac_regmap_sync(&(codec)->core) argument 151 struct hda_codec *codec; member 336 { .codec = _codec,\ 345 { .codec = _codec,\ 467 for ((nid) = (codec)->core.start_nid; (nid) < (codec)->core.end_nid; (nid)++) 483 if (nid < codec->core.start_nid || in get_wcaps() 484 nid >= codec->core.start_nid + codec->core.num_nodes) in get_wcaps() 486 return codec->wcaps[nid - codec->core.start_nid]; in get_wcaps() 511 nid < codec->core.start_nid + codec->core.num_nodes) in snd_hda_override_wcaps() 512 codec->wcaps[nid - codec->core.start_nid] = val; in snd_hda_override_wcaps() [all …]
|
| A D | sysfs.c | 66 codec->field ? codec->field : ""); \ 98 return pin_configs_show(codec, &codec->init_pins, buf); in init_pin_configs_show() 106 return pin_configs_show(codec, &codec->driver_pins, buf); in driver_pin_configs_show() 132 snd_hda_power_up(codec); in reconfig_codec() 136 codec_err(codec, in reconfig_codec() 174 codec->field = val; \ 188 codec->field = s; \ 373 return pin_configs_show(codec, &codec->user_pins, buf); in user_pin_configs_show() 385 err = snd_hda_add_pincfg(codec, &codec->user_pins, nid, cfg); in parse_user_pin_configs() 547 *codecp = codec; in parse_codec_mode() [all …]
|
| A D | proc.c | 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() 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 …]
|
| /sound/hda/codecs/ |
| A D | ca0132.c | 3050 struct hda_codec *codec = dma->codec; in dma_reset() local 3430 dma_engine->codec = codec; in dspxfr_image() 3863 snd_hda_codec_write(codec, codec->core.afg, 0, in r3di_gpio_mic_set() 3878 snd_hda_codec_write(codec, codec->core.afg, 0, in r3di_gpio_dsp_status_set() 3885 snd_hda_codec_write(codec, codec->core.afg, 0, in r3di_gpio_dsp_status_set() 3892 snd_hda_codec_write(codec, codec->core.afg, 0, in r3di_gpio_dsp_status_set() 4689 gpio_data = snd_hda_codec_read(codec, codec->core.afg, 0, in ca0132_alt_select_out_quirk_set() 4697 snd_hda_codec_write(codec, codec->core.afg, 0, in ca0132_alt_select_out_quirk_set() 8809 snd_hda_codec_write(codec, codec->core.afg, 0, in ca0132_init_chip() 8811 snd_hda_codec_write(codec, codec->core.afg, 0, in ca0132_init_chip() [all …]
|
| A D | via.c | 97 struct hda_codec *codec, 109 codec->spec = spec; in via_new_spec() 120 codec->power_save_node = 1; in via_new_spec() 182 !is_aa_path_mute(codec)) 359 snd_hda_codec_write(codec, codec->core.afg, 0, verb, parm); in __analog_low_current_mode() 378 vt1708_stop_hp_work(codec); in via_remove() 379 snd_hda_gen_remove(codec); in via_remove() 385 vt1708_stop_hp_work(codec); in via_suspend() 398 snd_hda_codec_init(codec); in via_resume() 523 snd_hda_gen_init(codec); in via_init() [all …]
|
| A D | conexant.c | 191 snd_hda_gen_init(codec); in cx_init() 195 cxt_init_gpio_led(codec); in cx_init() 215 cx_auto_shutdown(codec); in cx_remove() 216 snd_hda_gen_remove(codec); in cx_remove() 263 cx_auto_shutdown(codec); in cx_suspend() 517 struct hda_codec *codec, in olpc_xo_capture_hook() argument 1176 codec_info(codec, "%s: BIOS auto-probing.\n", codec->core.chip_name); in cx_probe() 1182 codec->spec = spec; in cx_probe() 1193 cx_auto_parse_eapd(codec); in cx_probe() 1257 codec_info(codec, in cx_probe() [all …]
|
| A D | generic.c | 121 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() 1419 dac = try_dac(codec, get_primary_out(codec, i), pin); in try_assign_dacs() 1423 dac = try_dac(codec, get_primary_out(codec, i), pin); in try_assign_dacs() 5199 if (codec->beep && codec->power_save_node) { in snd_hda_gen_parse_auto_config() 6080 kfree(codec->spec); in snd_hda_gen_remove() 6081 codec->spec = NULL; in snd_hda_gen_remove() [all …]
|
| A D | analog.c | 125 snd_hda_shutup_pins(codec); in ad_codec_suspend() 126 ad198x_power_eapd(codec); in ad_codec_suspend() 138 if (codec->inv_eapd) in ad_vmaster_eapd_hook() 156 err = create_beep_ctls(codec); in ad_codec_build_controls() 169 codec->no_trigger_sense = 1; in ad198x_parse_auto_config() 170 codec->no_sticky_stream = 1; in ad198x_parse_auto_config() 197 codec->spec = spec; in alloc_ad_spec() 213 codec->inv_jack_detect = 1; in ad_fixup_inv_jack_detect() 227 codec->inv_eapd = 0; in ad1986a_fixup_eapd() 389 codec->inv_eapd = 1; in ad1986a_probe() [all …]
|
| A D | senarytech.c | 68 for_each_hda_codec_node(nid, codec) in senary_auto_parse_beep() 134 snd_hda_gen_init(codec); in senary_init() 135 senary_init_gpio_led(codec); in senary_init() 153 senary_shutdown(codec); in senary_remove() 154 snd_hda_gen_remove(codec); in senary_remove() 159 senary_shutdown(codec); in senary_suspend() 168 codec_info(codec, "%s: BIOS auto-probing.\n", codec->core.chip_name); in senary_probe() 174 codec->spec = spec; in senary_probe() 176 senary_auto_parse_eapd(codec); in senary_probe() 202 codec_info(codec, in senary_probe() [all …]
|
| A D | sigmatel.c | 415 !(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() 3079 snd_hda_codec_write_cache(codec, codec->core.afg, 0, in stac92hd71bxx_fixup_hp_m4() 4121 snd_hda_codec_write_cache(codec, codec->core.afg, 0, in stac9205_fixup_dell_m43() [all …]
|
| A D | cm9825.c | 44 struct hda_codec *codec; member 137 snd_hda_sequence_write(spec->codec, in cm9825_unsol_hp_delayed() 150 struct cmi_spec *spec = codec->spec; in hp_callback() 176 snd_hda_gen_init(codec); in cm9825_init() 187 snd_hda_gen_remove(codec); in cm9825_remove() 216 snd_hda_codec_init(codec); in cm9825_resume() 235 snd_hda_regmap_sync(codec); in cm9825_resume() 252 codec->spec = spec; in cm9825_probe() 253 spec->codec = codec; in cm9825_probe() 270 cm9825_setup_unsol(codec); in cm9825_probe() [all …]
|
| /sound/hda/codecs/hdmi/ |
| A D | intelhdmi.c | 81 if (codec->spec) { in haswell_set_power_state() 192 codec->relaxed_resume = 1; in register_i915_notifier() 391 codec_dbg(codec, in intel_not_share_assigned_cvt() 502 codec->forced_resume = 1; in i915_hdmi_suspend() 507 codec->forced_resume = 0; in i915_hdmi_suspend() 594 spec = codec->spec; in intel_hsw_common_init() 595 codec->dp_mst = true; in intel_hsw_common_init() 607 codec->depop_delay = 0; in intel_hsw_common_init() 671 spec = codec->spec; in probe_i915_adlp_hdmi() 685 spec = codec->spec; in probe_i915_byt_hdmi() [all …]
|
| A D | hdmi.c | 317 struct hda_codec *codec = per_pin->codec; in eld_proc_new() local 417 codec_dbg(codec, in hdmi_clear_dip_buffers() 624 codec_dbg(codec, in hdmi_intrinsic_event() 641 codec->addr, in hdmi_non_intrinsic_event() 1085 struct hda_codec *codec = per_pin->codec; in hdmi_pcm_setup_pin() local 1258 struct hda_codec *codec = per_pin->codec; in hdmi_present_sense_via_verbs() local 1293 codec_dbg(codec, in hdmi_present_sense_via_verbs() 1437 struct hda_codec *codec = per_pin->codec; in hdmi_present_sense() local 1449 struct hda_codec *codec = per_pin->codec; in hdmi_repoll_eld() local 2033 per_pin->codec = codec; in snd_hda_hdmi_generic_init_per_pins() [all …]
|
| /sound/pci/ali5451/ |
| A D | ali5451.c | 141 #define ALI_REG(codec, x) ((codec)->port + x) argument 605 outl(mask, ALI_REG(codec, codec->chregs.regs.stop)); in snd_ali_stop_voice() 885 if (codec == NULL || !codec->hw_initialized) in snd_ali_card_interrupt() 924 pvoice->codec = codec; in snd_ali_alloc_voice() 1794 err = snd_ac97_bus(codec->card, 0, &ops, codec, &codec->ac97_bus); in snd_ali_mixer() 1949 codec->ac97_ext_status = snd_ali_codec_peek(codec, 0, in snd_ali_chip_init() 1995 codec->port = pci_resource_start(codec->pci, 0); in snd_ali_resources() 1997 if (devm_request_irq(&codec->pci->dev, codec->pci->irq, in snd_ali_resources() 2003 codec->irq = codec->pci->irq; in snd_ali_resources() 2004 codec->card->sync_irq = codec->irq; in snd_ali_resources() [all …]
|
| /sound/hda/core/ |
| A D | device.c | 71 codec->vendor_id = snd_hdac_read_parm(codec, AC_NODE_ROOT, in snd_hdac_device_init() 77 codec->vendor_id = snd_hdac_read_parm(codec, AC_NODE_ROOT, in snd_hdac_device_init() 81 codec->subsystem_id = snd_hdac_read_parm(codec, AC_NODE_ROOT, in snd_hdac_device_init() 83 codec->revision_id = snd_hdac_read_parm(codec, AC_NODE_ROOT, in snd_hdac_device_init() 87 if (!codec->afg && !codec->mfg) { in snd_hdac_device_init() 93 fg = codec->afg ? codec->afg : codec->mfg; in snd_hdac_device_init() 101 if (codec->subsystem_id == -1 || codec->subsystem_id == 0) in snd_hdac_device_init() 133 snd_hdac_bus_remove_device(codec->bus, codec); in snd_hdac_device_exit() 173 snd_hdac_bus_remove_device(codec->bus, codec); in snd_hdac_device_unregister() 211 codec->vendor_id, codec->revision_id, codec->type); in snd_hdac_codec_modalias() [all …]
|
| A D | regmap.c | 378 regmap = regmap_init(&codec->dev, NULL, codec, &hda_regmap_cfg); in snd_hdac_regmap_init() 393 if (codec->regmap) { in snd_hdac_regmap_exit() 395 codec->regmap = NULL; in snd_hdac_regmap_exit() 431 if (!codec->regmap) in reg_raw_write() 462 return CALL_RAW_FUNC(codec, reg_raw_write(codec, reg, val)); in snd_hdac_regmap_write_raw() 484 return CALL_RAW_FUNC(codec, reg_raw_read(codec, reg, val, uncached)); in __snd_hdac_regmap_read_raw() 519 if (codec->regmap) { in reg_raw_update() 552 return CALL_RAW_FUNC(codec, reg_raw_update(codec, reg, mask, val)); in snd_hdac_regmap_update_raw() 561 if (!codec->regmap) in reg_raw_update_once() 586 return CALL_RAW_FUNC(codec, reg_raw_update_once(codec, reg, mask, val)); in snd_hdac_regmap_update_raw_once() [all …]
|
| /sound/hda/codecs/cirrus/ |
| A D | cs8409.c | 63 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 876 struct hda_codec *codec = cs42l42->codec; in cs42l42_resume() local 920 struct hda_codec *codec = cs42l42->codec; in cs42l42_suspend() local 1137 spec->scodecs[CS8409_CODEC0]->codec = codec; in cs8409_cs42l42_fixups() 1359 spec->scodecs[CS8409_CODEC0]->codec = codec; in dolphin_fixups() [all …]
|
| A D | cs420x.c | 125 snd_hda_gen_update_outputs(codec); in cs_automute() 265 snd_hda_gen_init(codec); in cs_init() 277 init_input_coef(codec); in cs_init() 278 init_digital_coef(codec); in cs_init() 530 codec->spec = spec; in cs_alloc_spec() 532 codec->power_save_node = 1; in cs_alloc_spec() 542 codec->single_adc_amp = 1; in cs420x_probe() 633 codec->inv_jack_detect = 1; in cs4208_fixup_macmini() 748 err = cs4208_probe(codec); in cs_codec_probe() 750 err = cs420x_probe(codec); in cs_codec_probe() [all …]
|
| A D | cs421x.c | 139 snd_hda_gen_update_outputs(codec); in cs_automute() 168 codec->spec = spec; in cs_alloc_spec() 170 codec->power_save_node = 1; in cs_alloc_spec() 413 cs_automute(codec); in cs4210_spdif_automute() 440 cs4210_pinmux_init(codec); in cs421x_init() 443 snd_hda_gen_init(codec); in cs421x_init() 477 fix_volume_caps(codec, dac); in cs421x_parse_auto_config() 487 parse_cs421x_digital(codec); in cs421x_parse_auto_config() 508 snd_hda_shutup_pins(codec); in cs421x_suspend() 545 cs4210_pinmux_init(codec); in cs421x_probe() [all …]
|