| /linux/sound/hda/common/ |
| H A D | bind.c | 3 * HD-audio codec driver binding 19 * find a matching codec id 23 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in hda_codec_match() local 28 u32 id = codec->probe_id ? codec->probe_id : codec->core.vendor_id; in hda_codec_match() 29 u32 rev_id = codec->core.revision_id; in hda_codec_match() 34 codec->preset = list; in hda_codec_match() 44 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in hda_codec_unsol_event() local 45 struct hda_codec_driver *driver = hda_codec_to_driver(codec); in hda_codec_unsol_event() 48 if (codec->card->shutdown || codec->bus->shutdown) in hda_codec_unsol_event() 52 if (codec->core.dev.power.power_state.event != PM_EVENT_ON) in hda_codec_unsol_event() [all …]
|
| H A D | codec.c | 3 * Universal Interface for Intel High Definition Audio Codec 28 #define codec_in_pm(codec) snd_hdac_is_in_pm(&codec->core) argument 29 #define hda_codec_is_power_on(codec) snd_hdac_is_power_on(&codec->core) argument 30 #define codec_has_epss(codec) \ argument 31 ((codec)->core.power_caps & AC_PWRST_EPSS) 32 #define codec_has_clkstop(codec) \ argument 33 ((codec)->core.power_caps & AC_PWRST_CLKSTOP) 35 static int call_exec_verb(struct hda_bus *bus, struct hda_codec *codec, in call_exec_verb() argument 41 CLASS(snd_hda_power_pm, pm)(codec); in call_exec_verb() 45 err = snd_hdac_bus_exec_verb_unlocked(&bus->core, codec->core.addr, in call_exec_verb() [all …]
|
| H A D | jack.c | 21 * @codec: the HDA codec 26 * detection is prohibited in the codec level, the pin config has 29 bool is_jack_detectable(struct hda_codec *codec, hda_nid_t nid) in is_jack_detectable() argument 31 if (codec->no_jack_detect) in is_jack_detectable() 33 if (!(snd_hda_query_pin_caps(codec, nid) & AC_PINCAP_PRES_DETECT)) in is_jack_detectable() 35 if (get_defcfg_misc(snd_hda_codec_get_pincfg(codec, nid)) & in is_jack_detectable() 38 if (!(get_wcaps(codec, nid) & AC_WCAP_UNSOL_CAP) && in is_jack_detectable() 39 !codec->jackpoll_interval) in is_jack_detectable() 46 static u32 read_pin_sense(struct hda_codec *codec, hda_nid_t nid, int dev_id) in read_pin_sense() argument 51 if (!codec->no_trigger_sense) { in read_pin_sense() [all …]
|
| H A D | hda_local.h | 3 * Universal Interface for Intel High Definition Audio Codec 119 #define snd_hda_codec_amp_read(codec, nid, ch, dir, idx) \ argument 120 snd_hdac_regmap_get_amp(&(codec)->core, nid, ch, dir, idx) 121 int snd_hda_codec_amp_update(struct hda_codec *codec, hda_nid_t nid, 123 int snd_hda_codec_amp_stereo(struct hda_codec *codec, hda_nid_t nid, 125 int snd_hda_codec_amp_init(struct hda_codec *codec, hda_nid_t nid, int ch, 127 int snd_hda_codec_amp_init_stereo(struct hda_codec *codec, hda_nid_t nid, 129 void snd_hda_set_vmaster_tlv(struct hda_codec *codec, hda_nid_t nid, int dir, 131 struct snd_kcontrol *snd_hda_find_mixer_ctl(struct hda_codec *codec, 133 int __snd_hda_add_vmaster(struct hda_codec *codec, cha 137 snd_hda_add_vmaster(codec,name,tlv,followers,suffix,access) global() argument 142 snd_hda_regmap_sync(codec) global() argument 151 struct hda_codec *codec; global() member 169 snd_hda_create_spdif_out_ctls(codec,anid,cnid) global() argument 257 snd_hda_codec_proc_new(struct hda_codec * codec) snd_hda_codec_proc_new() argument 324 unsigned int codec; /* Codec vendor/device ID */ global() member 442 snd_hda_set_pin_ctl(struct hda_codec * codec,hda_nid_t pin,unsigned int val) snd_hda_set_pin_ctl() argument 456 snd_hda_set_pin_ctl_cache(struct hda_codec * codec,hda_nid_t pin,unsigned int val) snd_hda_set_pin_ctl_cache() argument 466 for_each_hda_codec_node(nid,codec) global() argument 473 snd_hda_codec_allow_unsol_events(struct hda_codec * codec) snd_hda_codec_allow_unsol_events() argument 481 get_wcaps(struct hda_codec * codec,hda_nid_t nid) get_wcaps() argument 507 snd_hda_override_wcaps(struct hda_codec * codec,hda_nid_t nid,u32 val) snd_hda_override_wcaps() argument 530 snd_hda_query_pin_caps(struct hda_codec * codec,hda_nid_t nid) snd_hda_query_pin_caps() argument 547 snd_hda_override_pin_caps(struct hda_codec * codec,hda_nid_t nid,unsigned int caps) snd_hda_override_pin_caps() argument 556 nid_has_mute(codec,nid,dir) global() argument 558 nid_has_volume(codec,nid,dir) global() argument 582 snd_hda_create_hwdep(struct hda_codec * codec) snd_hda_create_hwdep() argument 596 snd_hda_get_hint(struct hda_codec * codec,const char * key) snd_hda_get_hint() argument 602 snd_hda_get_bool_hint(struct hda_codec * codec,const char * key) snd_hda_get_bool_hint() argument 608 snd_hda_get_int_hint(struct hda_codec * codec,const char * key,int * valp) snd_hda_get_int_hint() argument 637 snd_hda_check_power_state(struct hda_codec * codec,hda_nid_t nid,unsigned int target_state) snd_hda_check_power_state() argument 643 snd_hda_sync_power_state(struct hda_codec * codec,hda_nid_t nid,unsigned int target_state) snd_hda_sync_power_state() argument 655 snd_hda_codec_init(struct hda_codec * codec) snd_hda_codec_init() argument 716 codec_err(codec,fmt,args...) global() argument 718 codec_warn(codec,fmt,args...) global() argument 720 codec_info(codec,fmt,args...) global() argument 722 codec_dbg(codec,fmt,args...) global() argument [all...] |
| H A D | hda_jack.h | 55 snd_hda_jack_tbl_get_mst(struct hda_codec *codec, hda_nid_t nid, int dev_id); 59 * @codec: the HDA codec 63 snd_hda_jack_tbl_get(struct hda_codec *codec, hda_nid_t nid) in snd_hda_jack_tbl_get() argument 65 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); 77 int snd_hda_jack_detect_enable(struct hda_codec *codec, hda_nid_ 95 snd_hda_jack_detect_enable_callback(struct hda_codec * codec,hda_nid_t nid,hda_jack_callback_fn cb) snd_hda_jack_detect_enable_callback() argument 130 snd_hda_jack_detect_state(struct hda_codec * codec,hda_nid_t nid) snd_hda_jack_detect_state() argument 142 snd_hda_jack_detect_mst(struct hda_codec * codec,hda_nid_t nid,int dev_id) snd_hda_jack_detect_mst() argument 154 snd_hda_jack_detect(struct hda_codec * codec,hda_nid_t nid) snd_hda_jack_detect() argument 178 snd_hda_jack_add_kctl(struct hda_codec * codec,hda_nid_t nid,const char * name,bool phantom_jack,int type,const struct hda_jack_keymap * keymap) snd_hda_jack_add_kctl() argument [all...] |
| H A D | proc.c | 3 * Universal Interface for Intel High Definition Audio Codec 19 MODULE_PARM_DESC(dump_coef, "Dump processing coefficients in codec proc file (-1=auto, 0=disable, 1… 22 #define param_read(codec, nid, parm) \ argument 23 snd_hdac_read_parm_uncached(&(codec)->core, nid, parm) 48 struct hda_codec *codec, hda_nid_t nid, in print_nid_array() argument 75 struct hda_codec *codec, hda_nid_t nid) in print_nid_pcms() argument 80 list_for_each_entry(cpcm, &codec->pcm_list_head, list) { in print_nid_pcms() 94 struct hda_codec *codec, hda_nid_t nid, int dir) in print_amp_caps() argument 97 caps = param_read(codec, nid, dir == HDA_OUTPUT ? in print_amp_caps() 112 static bool is_stereo_amps(struct hda_codec *codec, hda_nid_t nid, in is_stereo_amps() argument [all …]
|
| H A D | auto_parser.c | 56 static void add_auto_cfg_input_pin(struct hda_codec *codec, struct auto_pin_cfg *cfg, in add_auto_cfg_input_pin() argument 63 nid_has_volume(codec, nid, HDA_INPUT); 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() 129 static bool can_be_headset_mic(struct hda_codec *codec, in can_be_headset_mic() argument 141 def_conf = snd_hda_codec_get_pincfg(codec, item->pin); in can_be_headset_mic() 172 int snd_hda_parse_pin_defcfg(struct hda_codec *codec, in snd_hda_parse_pin_defcfg() argument 184 if (!snd_hda_get_int_hint(codec, "parser_flags", &i)) in snd_hda_parse_pin_defcfg() 194 for_each_hda_codec_node(nid, codec) { in snd_hda_parse_pin_defcfg() 195 unsigned int wid_caps = get_wcaps(codec, nid); in snd_hda_parse_pin_defcfg() [all …]
|
| /linux/sound/hda/codecs/realtek/ |
| H A D | realtek.c | 3 // Realtek HD-audio codec support code 10 static int __alc_read_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in __alc_read_coefex_idx() argument 15 snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_COEF_INDEX, coef_idx); in __alc_read_coefex_idx() 16 val = snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_PROC_COEF, 0); in __alc_read_coefex_idx() 20 int alc_read_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in alc_read_coefex_idx() argument 23 guard(coef_mutex)(codec); in alc_read_coefex_idx() 24 return __alc_read_coefex_idx(codec, nid, coef_idx); in alc_read_coefex_idx() 28 static void __alc_write_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in __alc_write_coefex_idx() argument 31 snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_COEF_INDEX, coef_idx); in __alc_write_coefex_idx() 32 snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_PROC_COEF, coef_val); in __alc_write_coefex_idx() [all …]
|
| /linux/sound/hda/codecs/hdmi/ |
| H A D | intelhdmi.c | 3 * Intel HDMI codec support 36 static void intel_haswell_enable_all_pins(struct hda_codec *codec, in intel_haswell_enable_all_pins() argument 40 struct hdmi_spec *spec = codec->spec; in intel_haswell_enable_all_pins() 42 vendor_param = snd_hda_codec_read(codec, spec->vendor_nid, 0, in intel_haswell_enable_all_pins() 48 vendor_param = snd_hda_codec_read(codec, spec->vendor_nid, 0, in intel_haswell_enable_all_pins() 54 snd_hda_codec_update_widgets(codec); in intel_haswell_enable_all_pins() 57 static void intel_haswell_fixup_enable_dp12(struct hda_codec *codec) in intel_haswell_fixup_enable_dp12() argument 60 struct hdmi_spec *spec = codec->spec; in intel_haswell_fixup_enable_dp12() 62 vendor_param = snd_hda_codec_read(codec, spec->vendor_nid, 0, in intel_haswell_fixup_enable_dp12() 69 snd_hdac_regmap_add_vendor_verb(&codec in intel_haswell_fixup_enable_dp12() 77 haswell_set_power_state(struct hda_codec * codec,hda_nid_t fg,unsigned int power_state) haswell_set_power_state() argument 103 intel_base_nid(struct hda_codec * codec) intel_base_nid() argument 117 struct hda_codec *codec = audio_ptr; intel_pin2port() local 141 intel_port2pin(struct hda_codec * codec,int port) intel_port2pin() argument 159 struct hda_codec *codec = audio_ptr; intel_pin_eld_notify() local 182 register_i915_notifier(struct hda_codec * codec) register_i915_notifier() argument 200 silent_stream_enable_i915(struct hda_codec * codec,struct hdmi_spec_per_pin * per_pin) silent_stream_enable_i915() argument 220 silent_stream_set_kae(struct hda_codec * codec,struct hdmi_spec_per_pin * per_pin,bool enable) silent_stream_set_kae() argument 239 i915_set_silent_stream(struct hda_codec * codec,struct hdmi_spec_per_pin * per_pin,bool enable) i915_set_silent_stream() argument 268 haswell_verify_D0(struct hda_codec * codec,hda_nid_t cvt_nid,hda_nid_t nid) haswell_verify_D0() argument 291 intel_verify_pin_cvt_connect(struct hda_codec * codec,struct hdmi_spec_per_pin * per_pin) intel_verify_pin_cvt_connect() argument 329 intel_not_share_assigned_cvt(struct hda_codec * codec,hda_nid_t pin_nid,int dev_id,int mux_idx) intel_not_share_assigned_cvt() argument 405 intel_not_share_assigned_cvt_nid(struct hda_codec * codec,hda_nid_t pin_nid,int dev_id,hda_nid_t cvt_nid) intel_not_share_assigned_cvt_nid() argument 422 i915_hsw_setup_stream(struct hda_codec * codec,hda_nid_t cvt_nid,hda_nid_t pin_nid,int dev_id,u32 stream_tag,int format) i915_hsw_setup_stream() argument 456 i915_pin_cvt_fixup(struct hda_codec * codec,struct hdmi_spec_per_pin * per_pin,hda_nid_t cvt_nid) i915_pin_cvt_fixup() argument 472 i915_hdmi_suspend(struct hda_codec * codec) i915_hdmi_suspend() argument 513 i915_hdmi_resume(struct hda_codec * codec) i915_hdmi_resume() argument 557 alloc_intel_hdmi(struct hda_codec * codec) alloc_intel_hdmi() argument 571 parse_intel_hdmi(struct hda_codec * codec) parse_intel_hdmi() argument 588 intel_hsw_common_init(struct hda_codec * codec,hda_nid_t vendor_nid,const int * port_map,int port_num,int dev_num,bool send_silent_stream) intel_hsw_common_init() argument 624 probe_i915_hsw_hdmi(struct hda_codec * codec) probe_i915_hsw_hdmi() argument 630 probe_i915_glk_hdmi(struct hda_codec * codec) probe_i915_glk_hdmi() argument 640 probe_i915_icl_hdmi(struct hda_codec * codec) probe_i915_icl_hdmi() argument 652 probe_i915_tgl_hdmi(struct hda_codec * codec) probe_i915_tgl_hdmi() argument 664 probe_i915_adlp_hdmi(struct hda_codec * codec) probe_i915_adlp_hdmi() argument 681 probe_i915_byt_hdmi(struct hda_codec * codec) probe_i915_byt_hdmi() argument 701 probe_i915_cpt_hdmi(struct hda_codec * codec) probe_i915_cpt_hdmi() argument 709 intelhdmi_probe(struct hda_codec * codec,const struct hda_device_id * id) intelhdmi_probe() argument [all...] |
| H A D | hdmi.c | 50 int snd_hda_hdmi_pin_id_to_pin_index(struct hda_codec *codec, in snd_hda_hdmi_pin_id_to_pin_index() argument 53 struct hdmi_spec *spec = codec->spec; in snd_hda_hdmi_pin_id_to_pin_index() 71 codec_warn(codec, "HDMI: pin NID 0x%x not registered\n", pin_nid); in snd_hda_hdmi_pin_id_to_pin_index() 76 static int hinfo_to_pcm_index(struct hda_codec *codec, in hinfo_to_pcm_index() argument 79 struct hdmi_spec *spec = codec->spec; in hinfo_to_pcm_index() 86 codec_warn(codec, "HDMI: hinfo %p not tied to a PCM\n", hinfo); in hinfo_to_pcm_index() 90 static int hinfo_to_pin_index(struct hda_codec *codec, in hinfo_to_pin_index() argument 93 struct hdmi_spec *spec = codec->spec; in hinfo_to_pin_index() 104 codec_dbg(codec, "HDMI: hinfo %p (pcm %d) not registered\n", hinfo, in hinfo_to_pin_index() 105 hinfo_to_pcm_index(codec, hinfo)); in hinfo_to_pin_index() [all …]
|
| /linux/sound/hda/codecs/ |
| H A D | generic.c | 3 * Universal Interface for Intel High Definition Audio Codec 105 static void parse_user_hints(struct hda_codec *codec) in parse_user_hints() argument 107 struct hda_gen_spec *spec = codec->spec; in parse_user_hints() 110 val = snd_hda_get_bool_hint(codec, "jack_detect"); in parse_user_hints() 112 codec->no_jack_detect = !val; in parse_user_hints() 113 val = snd_hda_get_bool_hint(codec, "inv_jack_detect"); in parse_user_hints() 115 codec->inv_jack_detect = !!val; in parse_user_hints() 116 val = snd_hda_get_bool_hint(codec, "trigger_sense"); in parse_user_hints() 118 codec->no_trigger_sense = !val; in parse_user_hints() 119 val = snd_hda_get_bool_hint(codec, "inv_eapd"); in parse_user_hints() [all …]
|
| H A D | ca0132.c | 3 * HD audio codec driver for Creative CA0132 chip 1135 struct hda_codec *codec; member 1181 #define ca0132_quirk(spec) ((spec)->codec->fixup_id) 1525 * CA0132 codec access 1527 static unsigned int codec_send_command(struct hda_codec *codec, hda_nid_t nid, in codec_send_command() argument 1531 response = snd_hda_codec_read(codec, nid, 0, verb, parm); in codec_send_command() 1537 static int codec_set_converter_format(struct hda_codec *codec, hda_nid_t nid, in codec_set_converter_format() argument 1540 return codec_send_command(codec, nid, VENDOR_CHIPIO_STREAM_FORMAT, in codec_set_converter_format() 1544 static int codec_set_converter_stream_channel(struct hda_codec *codec, in codec_set_converter_stream_channel() argument 1551 return codec_send_command(codec, nid, AC_VERB_SET_CHANNEL_STREAMID, in codec_set_converter_stream_channel() [all …]
|
| H A D | via.c | 3 * Universal Interface for Intel High Definition Audio Codec 5 * HD audio codec driver for VIA VT17xx/VT18xx/VT20xx codec 13 /* 2006-03-03 Lydia Wang Create the basic patch to support VT1708 codec */ 15 /* 2006-08-02 Lydia Wang Add support to VT1709 codec */ 18 /* 2007-09-17 Lydia Wang Add VT1708B codec support */ 19 /* 2007-11-14 Lydia Wang Add VT1708A codec HP and CD pin connect config */ 21 /* 2008-03-06 Lydia Wang Add VT1702 codec and VT1708S codec support */ 95 static enum VIA_HDA_CODEC get_codec_type(struct hda_codec *codec); 97 struct hda_codec *codec, 101 static struct via_spec *via_new_spec(struct hda_codec *codec) in via_new_spec() argument [all …]
|
| H A D | senarytech.c | 3 * HD audio codec driver for Senary HDA audio codec 64 static int senary_auto_parse_beep(struct hda_codec *codec) in senary_auto_parse_beep() argument 66 struct senary_spec *spec = codec->spec; in senary_auto_parse_beep() 69 for_each_hda_codec_node(nid, codec) in senary_auto_parse_beep() 70 if ((get_wcaps_type(get_wcaps(codec, nid)) == AC_WID_BEEP) && in senary_auto_parse_beep() 71 (get_wcaps(codec, nid) & (AC_WCAP_OUT_AMP | AC_WCAP_AMP_OVRD))) in senary_auto_parse_beep() 76 #define senary_auto_parse_beep(codec) 0 argument 80 static void senary_auto_parse_eapd(struct hda_codec *codec) in senary_auto_parse_eapd() argument 82 struct senary_spec *spec = codec->spec; in senary_auto_parse_eapd() 85 for_each_hda_codec_node(nid, codec) { in senary_auto_parse_eapd() [all …]
|
| H A D | conexant.c | 3 * HD audio codec driver for Conexant HDA audio codec 74 static int cx_auto_parse_beep(struct hda_codec *codec) in cx_auto_parse_beep() argument 76 struct conexant_spec *spec = codec->spec; in cx_auto_parse_beep() 79 for_each_hda_codec_node(nid, codec) in cx_auto_parse_beep() 80 if (get_wcaps_type(get_wcaps(codec, nid)) == AC_WID_BEEP) in cx_auto_parse_beep() 85 #define cx_auto_parse_beep(codec) 0 argument 93 static void cx_auto_parse_eapd(struct hda_codec *codec) in cx_auto_parse_eapd() argument 95 struct conexant_spec *spec = codec->spec; in cx_auto_parse_eapd() 98 for_each_hda_codec_node(nid, codec) { in cx_auto_parse_eapd() 99 if (get_wcaps_type(get_wcaps(codec, nid)) != AC_WID_PIN) in cx_auto_parse_eapd() [all …]
|
| H A D | si3054.c | 3 * Universal Interface for Intel High Definition Audio Codec 5 * HD audio codec driver for Silicon Labs 3054/5 modem codec 63 /* si3054 codec registers (nodes) access macros */ 64 #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 67 snd_hda_codec_write_cache(codec,reg,0,SI3054_VERB_WRITE_NODE,val) 88 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in si3054_switch_get() local 91 uvalue->value.integer.value[0] = (GET_REG(codec, reg)) & mask ? 1 : 0 ; in si3054_switch_get() 98 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in si3054_switch_put() local [all …]
|
| H A D | Kconfig | 8 tristate "Build Analog Devices HD-audio codec support" 11 Say Y or M here to include Analog Devices HD-audio codec support in 14 comment "Set to Y if you want auto-loading the codec driver" 18 tristate "Build IDT/Sigmatel HD-audio codec support" 22 Say Y or M here to include IDT (Sigmatel) HD-audio codec support in 25 comment "Set to Y if you want auto-loading the codec driver" 29 tristate "Build VIA HD-audio codec support" 32 Say Y or M here to include VIA HD-audio codec support in 35 comment "Set to Y if you want auto-loading the codec driver" 39 tristate "Build Conexant HD-audio codec support" [all …]
|
| H A D | cm9825.c | 3 * CM9825 HD-audio codec 50 struct hda_codec *codec; member 196 static void cm9825_update_jk_plug_status(struct hda_codec *codec, hda_nid_t nid) in cm9825_update_jk_plug_status() argument 198 struct cmi_spec *spec = codec->spec; in cm9825_update_jk_plug_status() 202 jack_plugin = snd_hda_jack_detect(spec->codec, nid); in cm9825_update_jk_plug_status() 203 jack = snd_hda_jack_tbl_get(spec->codec, nid); in cm9825_update_jk_plug_status() 206 snd_hda_jack_report_sync(spec->codec); in cm9825_update_jk_plug_status() 209 codec_dbg(spec->codec, in cm9825_update_jk_plug_status() 225 cm9825_update_jk_plug_status(spec->codec, in cm9825_unsol_inputs_delayed() 236 cm9825_update_jk_plug_status(spec->codec, in cm9825_unsol_lineout_delayed() [all …]
|
| H A D | analog.c | 3 * HD audio codec driver for AD1882, AD1884, AD1981HD, AD1983, AD1984, 59 static int create_beep_ctls(struct hda_codec *codec) in create_beep_ctls() argument 61 struct ad198x_spec *spec = codec->spec; in create_beep_ctls() 70 kctl = snd_ctl_new1(knew, codec); in create_beep_ctls() 74 err = snd_hda_ctl_add(codec, 0, kctl); in create_beep_ctls() 81 #define create_beep_ctls(codec) 0 argument 84 static void ad198x_power_eapd_write(struct hda_codec *codec, hda_nid_t front, in ad198x_power_eapd_write() argument 87 if (snd_hda_query_pin_caps(codec, front) & AC_PINCAP_EAPD) in ad198x_power_eapd_write() 88 snd_hda_codec_write(codec, front, 0, AC_VERB_SET_EAPD_BTLENABLE, in ad198x_power_eapd_write() 89 !codec->inv_eapd ? 0x00 : 0x02); in ad198x_power_eapd_write() [all …]
|
| /linux/Documentation/devicetree/bindings/pinctrl/ |
| H A D | cirrus,lochnagar.yaml | 14 Smart CODEC and Amp devices. It allows the connection of most Cirrus 72 enum: [ codec-aif1, codec-aif2, codec-aif3, dsp-aif1, 82 fpga-gpio5, fpga-gpio6, codec-gpio1, codec-gpio2, 83 codec-gpio3, codec-gpio4, codec-gpio5, codec-gpio6, 84 codec-gpio7, codec-gpio8, dsp-gpio1, dsp-gpio2, 86 gf-gpio2, gf-gpio3, gf-gpio7, codec-aif1-bclk, 87 codec-aif1-rxdat, codec-aif1-lrclk, codec-aif1-txdat, 88 codec-aif2-bclk, codec-aif2-rxdat, codec-aif2-lrclk, 89 codec-aif2-txdat, codec-aif3-bclk, codec-aif3-rxdat, 90 codec-aif3-lrclk, codec-aif3-txdat, dsp-aif1-bclk, [all …]
|
| /linux/drivers/media/pci/zoran/ |
| H A D | videocodec.c | 5 * Interface for MJPEG (and maybe later MPEG/WAVELETS) codec's 20 struct videocodec *codec; member 25 const struct videocodec *codec; member 42 struct videocodec *codec; in videocodec_attach() local 63 if ((master->flags & h->codec->flags) == master->flags) { in videocodec_attach() 64 zrdev_dbg(zr, "%s: try '%s'\n", __func__, h->codec->name); in videocodec_attach() 66 codec = kmemdup(h->codec, sizeof(struct videocodec), GFP_KERNEL); in videocodec_attach() 67 if (!codec) in videocodec_attach() 70 res = strlen(codec->name); in videocodec_attach() 71 snprintf(codec->name + res, sizeof(codec->name) - res, "[%d]", h->attached); in videocodec_attach() [all …]
|
| /linux/sound/soc/codecs/ |
| H A D | Kconfig | 3 # modular, meaning we can't build the codec driver in with I2C support. 12 menu "CODEC drivers" 15 tristate "Build all ASoC CODEC drivers" 368 Normally ASoC codec drivers are only built if a machine driver which 432 tristate "Build generic ASoC AC97 CODEC driver" 469 tristate "Analog Devices ADAU1372 CODEC (I2C)" 475 tristate "Analog Devices ADAU1372 CODEC (SPI)" 481 tristate "Analog Devices ADAU1373 CODEC" 486 tristate "Analog Devices ADAU1701 CODEC" 500 tristate "Analog Devices AU1761 CODEC [all...] |
| H A D | hda.c | 16 static int hda_codec_create_dais(struct hda_codec *codec, int pcm_count, in hda_codec_create_dais() argument 19 struct device *dev = &codec->core.dev; in hda_codec_create_dais() 28 pcm = list_first_entry(&codec->pcm_list_head, struct hda_pcm, list); in hda_codec_create_dais() 83 static int hda_codec_register_dais(struct hda_codec *codec, struct snd_soc_component *component) in hda_codec_register_dais() argument 90 if (list_empty(&codec->pcm_list_head)) in hda_codec_register_dais() 92 list_for_each_entry(pcm, &codec->pcm_list_head, list) in hda_codec_register_dais() 95 ret = hda_codec_create_dais(codec, pcm_count, &drvs); in hda_codec_register_dais() 101 list_for_each_entry(pcm, &codec->pcm_list_head, list) { in hda_codec_register_dais() 124 static void hda_codec_unregister_dais(struct hda_codec *codec, in hda_codec_unregister_dais() argument 133 list_for_each_entry(pcm, &codec in hda_codec_unregister_dais() 146 hda_codec_probe_complete(struct hda_codec * codec) hda_codec_probe_complete() argument 174 struct hda_codec *codec = dev_to_hda_codec(component->dev); hda_codec_probe() local 269 struct hda_codec *codec = dev_to_hda_codec(component->dev); hda_codec_remove() local 346 struct hda_codec *codec = dev_to_hda_codec(&hdev->dev); hda_hdev_attach() local 378 struct hda_codec *codec = dev_to_hda_codec(&hdev->dev); hda_hdev_detach() local [all...] |
| /linux/sound/hda/codecs/cirrus/ |
| H A D | cs8409.c | 3 * HD audio codec driver for Cirrus Logic CS8409 HDA bridge chip 27 static int cs8409_parse_auto_config(struct hda_codec *codec) in cs8409_parse_auto_config() argument 29 struct cs8409_spec *spec = codec->spec; in cs8409_parse_auto_config() 33 err = snd_hda_parse_pin_defcfg(codec, &spec->gen.autocfg, NULL, 0); in cs8409_parse_auto_config() 37 err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg); in cs8409_parse_auto_config() 50 snd_hda_gen_fix_pin_power(codec, spec->gen.adc_nids[idx]); in cs8409_parse_auto_config() 60 static struct cs8409_spec *cs8409_alloc_spec(struct hda_codec *codec) in cs8409_alloc_spec() argument 67 codec->spec = spec; in cs8409_alloc_spec() 68 spec->codec = codec; in cs8409_alloc_spec() 69 codec->power_save_node = 1; in cs8409_alloc_spec() [all …]
|
| /linux/sound/hda/core/ |
| H A D | sysfs.c | 24 struct hdac_device *codec = dev_to_hdac_dev(dev); \ 25 return sysfs_emit(buf, "0x%x\n", codec->type); \ 34 struct hdac_device *codec = dev_to_hdac_dev(dev); \ 36 codec->type ? codec->type : ""); \ 89 ssize_t (*show)(struct hdac_device *codec, hda_nid_t nid, 91 ssize_t (*store)(struct hdac_device *codec, hda_nid_t nid, 114 struct hdac_device *codec; in widget_attr_show() local 119 nid = get_codec_nid(kobj, &codec); in widget_attr_show() 122 return wid_attr->show(codec, nid, wid_attr, buf); in widget_attr_show() 130 struct hdac_device *codec; in widget_attr_store() local [all …]
|