Home
last modified time | relevance | path

Searched full:codec (Results 1 – 25 of 1555) sorted by relevance

12345678910>>...63

/linux/sound/hda/common/
H A Dbind.c3 * 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 Djack.c21 * @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 Dhda_local.h3 * 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, char *name,
[all …]
H A Dhda_jack.h55 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_t nid,
81 snd_hda_jack_detect_enable_callback_mst(struct hda_codec *codec, hda_nid_t nid,
[all …]
H A Dauto_parser.c56 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 …]
H A Dbeep.c3 * Digital Beep Input Interface for HD-audio codec
26 struct hda_codec *codec = beep->codec; in generate_tone() local
29 snd_hda_power_up(codec); in generate_tone()
34 if (!codec->beep_just_power_on) in generate_tone()
35 snd_hda_codec_write(codec, beep->nid, 0, in generate_tone()
41 snd_hda_power_down(codec); in generate_tone()
125 snd_hda_power_up_pm(beep->codec); in turn_on_beep()
136 snd_hda_power_down_pm(beep->codec); in turn_off_beep()
141 * @codec: the HDA codec
144 int snd_hda_enable_beep_device(struct hda_codec *codec, int enable) in snd_hda_enable_beep_device() argument
[all …]
/linux/sound/hda/codecs/hdmi/
H A Dintelhdmi.c3 * 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 Dhdmi.c50 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 …]
H A Dsimplehdmi.c3 * Non-generic simple HDMI codec support
11 int snd_hda_hdmi_simple_build_pcms(struct hda_codec *codec) in snd_hda_hdmi_simple_build_pcms() argument
13 struct hdmi_spec *spec = codec->spec; in snd_hda_hdmi_simple_build_pcms()
20 chans = get_wcaps(codec, per_cvt->cvt_nid); in snd_hda_hdmi_simple_build_pcms()
23 info = snd_hda_codec_pcm_new(codec, "HDMI 0"); in snd_hda_hdmi_simple_build_pcms()
39 void snd_hda_hdmi_simple_unsol_event(struct hda_codec *codec, in snd_hda_hdmi_simple_unsol_event() argument
42 snd_hda_jack_set_dirty_all(codec); in snd_hda_hdmi_simple_unsol_event()
43 snd_hda_jack_report_sync(codec); in snd_hda_hdmi_simple_unsol_event()
54 static int simple_hdmi_build_jack(struct hda_codec *codec) in simple_hdmi_build_jack() argument
57 struct hdmi_spec *spec = codec->spec; in simple_hdmi_build_jack()
[all …]
H A Dhdmi_local.h3 * HD-audio HDMI codec driver
41 struct hda_codec *codec; member
60 /* operations used by generic code that can be overridden by codec drivers */
62 int (*pin_get_eld)(struct hda_codec *codec, hda_nid_t pin_nid,
65 void (*pin_setup_infoframe)(struct hda_codec *codec, hda_nid_t pin_nid,
70 int (*pin_hbr_setup)(struct hda_codec *codec, hda_nid_t pin_nid,
73 int (*setup_stream)(struct hda_codec *codec, hda_nid_t cvt_nid,
77 void (*pin_cvt_fixup)(struct hda_codec *codec,
81 void (*silent_stream)(struct hda_codec *codec,
99 struct hda_codec *codec; member
[all …]
H A Dtegrahdmi.c3 * Nvidia Tegra HDMI codec support
22 * The HDA codec on NVIDIA Tegra contains two scratch registers that are
31 * The SCRATCH0 register is used to notify the HDMI codec of changes in audio
33 * be raised in the HDMI codec. The remainder of the bits is arbitrary. This
64 * the format is invalidated so that the HDMI codec can be disabled.
66 static void tegra_hdmi_set_format(struct hda_codec *codec, in tegra_hdmi_set_format() argument
72 struct hdmi_spec *spec = codec->spec; in tegra_hdmi_set_format()
75 * Tegra HDA codec design from TEGRA234 chip onwards support DP MST. in tegra_hdmi_set_format()
78 * scratch register read/write for DP MST supported Tegra HDA codec. in tegra_hdmi_set_format()
80 if (codec->dp_mst) in tegra_hdmi_set_format()
[all …]
/linux/Documentation/devicetree/bindings/pinctrl/
H A Dcirrus,lochnagar.yaml14 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/sound/hda/codecs/
H A Dvia.c3 * 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 Dsenarytech.c3 * HD audio codec driver for Senary HDA audio codec
66 static int senary_auto_parse_beep(struct hda_codec *codec) in senary_auto_parse_beep()
68 struct senary_spec *spec = codec->spec; in senary_auto_parse_beep()
71 for_each_hda_codec_node(nid, codec) in senary_auto_parse_beep()
72 if ((get_wcaps_type(get_wcaps(codec, nid)) == AC_WID_BEEP) && in senary_auto_parse_beep()
73 (get_wcaps(codec, nid) & (AC_WCAP_OUT_AMP | AC_WCAP_AMP_OVRD))) in senary_auto_parse_beep()
78 #define senary_auto_parse_beep(codec) 0
82 static void senary_auto_parse_eapd(struct hda_codec *codec) in senary_auto_parse_eapd()
84 struct senary_spec *spec = codec in senary_auto_parse_eapd()
63 senary_auto_parse_beep(struct hda_codec * codec) senary_auto_parse_beep() argument
75 senary_auto_parse_beep(codec) global() argument
79 senary_auto_parse_eapd(struct hda_codec * codec) senary_auto_parse_eapd() argument
95 senary_auto_turn_eapd(struct hda_codec * codec,int num_pins,const hda_nid_t * pins,bool on) senary_auto_turn_eapd() argument
111 struct hda_codec *codec = private_data; senary_auto_vmaster_hook() local
117 senary_init_gpio_led(struct hda_codec * codec) senary_init_gpio_led() argument
132 senary_init(struct hda_codec * codec) senary_init() argument
141 senary_shutdown(struct hda_codec * codec) senary_shutdown() argument
151 senary_remove(struct hda_codec * codec) senary_remove() argument
157 senary_suspend(struct hda_codec * codec) senary_suspend() argument
163 senary_probe(struct hda_codec * codec,const struct hda_device_id * id) senary_probe() argument
[all...]
H A Dsi3054.c3 * 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 DKconfig8 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 DMakefile4 snd-hda-codec-generic-y := generic.o
5 snd-hda-codec-cmedia-y := cmedia.o
6 snd-hda-codec-cm9825-y := cm9825.o
7 snd-hda-codec-analog-y := analog.o
8 snd-hda-codec-ca0110-y := ca0110.o
9 snd-hda-codec-ca0132-y := ca0132.o
10 snd-hda-codec-cmedia-y := cmedia.o
11 snd-hda-codec-conexant-y := conexant.o
12 snd-hda-codec-idt-y := sigmatel.o
13 snd-hda-codec-senarytech-y := senarytech.o
[all …]
H A Dcm9825.c3 * CM9825 HD-audio codec
44 struct hda_codec *codec; member
123 hp_jack_plugin = snd_hda_jack_detect(spec->codec, hp_pin); in cm9825_unsol_hp_delayed()
125 codec_dbg(spec->codec, "hp_jack_plugin %d, hp_pin 0x%X\n", in cm9825_unsol_hp_delayed()
130 snd_hda_codec_write(spec->codec, 0x42, 0, in cm9825_unsol_hp_delayed()
133 codec_dbg(spec->codec, "codec_write err %d\n", err); in cm9825_unsol_hp_delayed()
135 snd_hda_sequence_write(spec->codec, spec->chip_hp_remove_verbs); in cm9825_unsol_hp_delayed()
137 snd_hda_sequence_write(spec->codec, in cm9825_unsol_hp_delayed()
141 jack = snd_hda_jack_tbl_get(spec->codec, hp_pin); in cm9825_unsol_hp_delayed()
144 snd_hda_jack_report_sync(spec->codec); in cm9825_unsol_hp_delayed()
[all …]
/linux/drivers/media/pci/zoran/
H A Dvideocodec.c5 * 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 DKconfig3 # 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 - I2C"
[all …]
H A Dhda.c16 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/core/
H A Dsysfs.c24 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 …]
/linux/sound/hda/codecs/cirrus/
H A Dcs421x.c3 * Cirrus Logic CS421x HD-audio codec
105 static inline int cs_vendor_coef_get(struct hda_codec *codec, unsigned int idx) in cs_vendor_coef_get() argument
107 struct cs_spec *spec = codec->spec; in cs_vendor_coef_get()
109 snd_hda_codec_write(codec, spec->vendor_nid, 0, in cs_vendor_coef_get()
111 return snd_hda_codec_read(codec, spec->vendor_nid, 0, in cs_vendor_coef_get()
115 static inline void cs_vendor_coef_set(struct hda_codec *codec, unsigned int idx, in cs_vendor_coef_set() argument
118 struct cs_spec *spec = codec->spec; in cs_vendor_coef_set()
120 snd_hda_codec_write(codec, spec->vendor_nid, 0, in cs_vendor_coef_set()
122 snd_hda_codec_write(codec, spec->vendor_nid, 0, in cs_vendor_coef_set()
132 static void cs_automute(struct hda_codec *codec) in cs_automute() argument
[all …]
H A Dcs420x.c3 * Cirrus Logic CS420x HD-audio codec
94 static inline int cs_vendor_coef_get(struct hda_codec *codec, unsigned int idx) in cs_vendor_coef_get() argument
96 struct cs_spec *spec = codec->spec; in cs_vendor_coef_get()
98 snd_hda_codec_write(codec, spec->vendor_nid, 0, in cs_vendor_coef_get()
100 return snd_hda_codec_read(codec, spec->vendor_nid, 0, in cs_vendor_coef_get()
104 static inline void cs_vendor_coef_set(struct hda_codec *codec, unsigned int idx, in cs_vendor_coef_set() argument
107 struct cs_spec *spec = codec->spec; in cs_vendor_coef_set()
109 snd_hda_codec_write(codec, spec->vendor_nid, 0, in cs_vendor_coef_set()
111 snd_hda_codec_write(codec, spec->vendor_nid, 0, in cs_vendor_coef_set()
121 static void cs_automute(struct hda_codec *codec) in cs_automute() argument
[all …]
/linux/include/sound/
H A Dhda_regmap.h15 int snd_hdac_regmap_init(struct hdac_device *codec);
16 void snd_hdac_regmap_exit(struct hdac_device *codec);
17 int snd_hdac_regmap_add_vendor_verb(struct hdac_device *codec,
19 int snd_hdac_regmap_read_raw(struct hdac_device *codec, unsigned int reg,
21 int snd_hdac_regmap_read_raw_uncached(struct hdac_device *codec,
23 int snd_hdac_regmap_write_raw(struct hdac_device *codec, unsigned int reg,
25 int snd_hdac_regmap_update_raw(struct hdac_device *codec, unsigned int reg,
27 int snd_hdac_regmap_update_raw_once(struct hdac_device *codec, unsigned int reg,
29 void snd_hdac_regmap_sync(struct hdac_device *codec);
34 * @verb: codec verb
[all …]

12345678910>>...63