Home
last modified time | relevance | path

Searched +full:codec +full:- +full:driver (Results 1 – 25 of 847) sorted by relevance

12345678910>>...34

/linux/sound/hda/common/
H A Dbind.c1 // SPDX-License-Identifier: GPL-2.0-only
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
24 const struct hda_codec_driver *driver = 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()
31 for (list = driver->id; list->vendor_id; list++) { in hda_codec_match()
32 if (list->vendor_id == id && in hda_codec_match()
33 (!list->rev_id || list->rev_id == rev_id)) { in hda_codec_match()
[all …]
H A Dcodec.c1 // SPDX-License-Identifier: GPL-2.0-or-later
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()
[all …]
/linux/sound/hda/codecs/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
8 tristate "Build Analog Devices HD-audio codec support"
11 Say Y or M here to include Analog Devices HD-audio codec support in
12 snd-hda-intel driver, such as AD1986A.
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
23 snd-hda-intel driver, such as STAC9200.
25 comment "Set to Y if you want auto-loading the codec driver"
29 tristate "Build VIA HD-audio codec support"
[all …]
H A Dcmedia.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Universal codec driver for Intel High Definition Audio Codec
5 * HD audio codec driver fo
20 cmedia_probe(struct hda_codec * codec,const struct hda_device_id * id) cmedia_probe() argument
[all...]
H A Dca0110.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * HD audio codec driver for Creative X-Fi CA0110-IBG chip
18 static int ca0110_parse_auto_config(struct hda_codec *codec) in ca0110_parse_auto_config() argument
20 struct hda_gen_spec *spec = codec->spec; in ca0110_parse_auto_config()
23 err = snd_hda_parse_pin_defcfg(codec, &spec->autocfg, NULL, 0); in ca0110_parse_auto_config()
26 err = snd_hda_gen_parse_auto_config(codec, &spec->autocfg); in ca0110_parse_auto_config()
33 static int ca0110_probe(struct hda_codec *codec, const struct hda_device_id *id) in ca0110_probe() argument
40 return -ENOMEM; in ca0110_probe()
42 codec->spec = spec; in ca0110_probe()
44 spec->multi_cap_vol = 1; in ca0110_probe()
[all …]
/linux/sound/soc/codecs/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
3 # modular, meaning we can't build the codec driver in with I2C support.
5 # setting - SPI can't be modular so that case doesn't need to be covered.
12 menu "CODEC drivers"
15 tristate "Build all ASoC CODEC drivers"
368 Normally ASoC codec driver
[all...]
H A Dhda.c1 // SPDX-License-Identifier: GPL-2.0
3 // Copyright(c) 2021-2022 Intel Corporation
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()
26 return -ENOMEM; in hda_codec_create_dais()
28 pcm = list_first_entry(&codec->pcm_list_hea in hda_codec_create_dais()
83 hda_codec_register_dais(struct hda_codec * codec,struct snd_soc_component * component) hda_codec_register_dais() argument
124 hda_codec_unregister_dais(struct hda_codec * codec,struct snd_soc_component * component) hda_codec_unregister_dais() argument
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
175 struct hda_codec_driver *driver = hda_codec_to_driver(codec); hda_codec_probe() local
269 struct hda_codec *codec = dev_to_hda_codec(component->dev); hda_codec_remove() local
270 struct hda_codec_driver *driver = hda_codec_to_driver(codec); 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...]
H A Dhdac_hda.c1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright(c) 2015-18 Intel Corporation.
5 * hdac_hda.c - ASoC extensions to reuse the legacy HDA codec drivers
7 * codec drivers using hdac_ext_bus_ops ops.
43 MODULE_PARM_DESC(patch, "Patch file array for Intel HD audio interface. The array index is the codec address.");
74 .name = "Analog Codec DAI",
77 .stream_name = "Analog Codec Playbac
412 struct hda_codec_driver *driver = hda_codec_to_driver(hcodec); hdac_hda_codec_probe() local
550 struct hda_codec *codec = hda_pvt->codec; hdac_hda_codec_remove() local
551 struct hda_codec_driver *driver = hda_codec_to_driver(codec); hdac_hda_codec_remove() local
[all...]
H A Dcs40l50-codec.c1 // SPDX-License-Identifier: GPL-2.0
3 // CS40L50 Advanced Haptic Driver with waveform memory,
4 // integrated DSP, and closed-loop algorithms
74 return -EINVAL; in cs40l50_get_clk_config()
77 static int cs40l50_swap_ext_clk(struct cs40l50_codec *codec, const unsigned int clk_src) in cs40l50_swap_ext_clk() argument
84 ret = cs40l50_get_clk_config(codec->bclk_ratio * codec->rate, &cfg); in cs40l50_swap_ext_clk()
92 return -EINVAL; in cs40l50_swap_ext_clk()
95 ret = regmap_update_bits(codec->regmap, CS40L50_REFCLK_INPUT, in cs40l50_swap_ext_clk()
102 ret = regmap_update_bits(codec->regmap, CS40L50_REFCLK_INPUT, in cs40l50_swap_ext_clk()
109 return regmap_update_bits(codec->regmap, CS40L50_REFCLK_INPUT, in cs40l50_swap_ext_clk()
[all …]
/linux/sound/soc/intel/boards/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
54 tristate "Haswell with RT5640 I2S codec"
70 tristate "Broadwell with RT5650 codec"
76 This adds the ASoC machine driver for Intel Broadwell platforms with
77 the RT5650 codec.
82 tristate "Broadwell with RT5677 codec"
93 the RT5677 audio codec. This is a recommended option.
98 tristate "Broadwell with RT286 I2S codec"
113 tristate "Baytrail and Baytrail-CR with RT5640 codec"
120 This adds support for ASoC machine driver for Intel(R) Baytrail and Baytrail-CR
[all …]
H A Dcht_bsw_rt5672.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * cht_bsw_rt5672.c - ASoc Machine driver for Intel Cherryview-based platforms
4 * Cherrytrail and Braswell, with RT5672 codec.
22 #include <sound/soc-acpi.h>
24 #include "../atom/sst-ato
[all...]
/linux/sound/hda/codecs/side-codecs/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
6 tristate "KUnit test for Cirrus side-codec library" if !KUNIT_ALL_TESTS
10 This builds KUnit tests for the cirrus side-codec library.
13 Documentation/dev-tools/kunit/.
26 tristate "Build CS35L41 HD-audio side codec support for I2C Bus"
35 Say Y or M here to include CS35L41 I2C HD-audio side codec support
36 in snd-hda-intel driver, such as ALC287.
38 comment "Set to Y if you want auto-loading the side codec driver"
42 tristate "Build CS35L41 HD-audio codec support for SPI Bus"
51 Say Y or M here to include CS35L41 SPI HD-audio side codec support
[all …]
/linux/sound/soc/mediatek/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
13 This adds ASoC driver for Mediatek MT2701 boards
19 tristate "ASoc Audio driver for MT2701 with CS42448 codec"
24 This adds ASoC driver for Mediatek MT2701 boards
30 tristate "ASoc Audio driver for MT2701 with WM8960 codec"
[all...]
/linux/sound/soc/intel/avs/boards/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
21 This adds support for AVS with DA7219 I2S codec configuration.
39 This adds support for AVS with ES8336 I2S codec configuration.
44 tristate "HD-Audio generic board"
47 This adds support for AVS with HDAudio codec configuration.
54 This adds support for I2S test-board which can be used to verify
63 This adds support for AVS with MAX98927 I2S codec configuration.
73 This adds support for AVS with MAX98357A I2S codec configuration.
83 This adds support for AVS with MAX98373 I2S codec configuration.
93 This adds support for ASoC machine driver with NAU8825 I2S audio codec.
[all …]
/linux/sound/ac97/
H A Dbus.c1 // SPDX-License-Identifier: GPL-2.0-only
19 #include <sound/ac97/codec.h>
41 return -ENODEV; in ac97_unbound_ctrl_write()
47 return -ENODEV; in ac97_unbound_ctrl_read()
63 return ERR_PTR(-EINVAL); in ac97_codec_find()
65 return ac97_ctrl->codecs[codec_num]; in ac97_codec_find()
79 for_each_child_of_node(ac97_ctrl->parent->of_node, node) { in ac97_of_get_child_device()
95 ac97_ctrl = adev->ac97_ctrl; in ac97_codec_release()
96 ac97_ctrl->codecs[adev->num] = NULL; in ac97_codec_release()
97 of_node_put(dev->of_node); in ac97_codec_release()
[all …]
/linux/Documentation/sound/soc/
H A Doverview.rst6 provide better ALSA support for embedded system-on-chip processors (e.g.
9 had some limitations:-
11 * Codec drivers were often tightly coupled to the underlying SoC
12 CPU. This is not ideal and leads to code duplication - for example,
18 machine specific code to re-route audio, enable amps, etc., after such an
21 * Drivers tended to power up the entire codec when playing (or
24 power via changing codec oversampling rates, bias currents, etc.
31 features :-
33 * Codec independence. Allows reuse of codec drivers on other platforms
36 * Easy I2S/PCM audio interface setup between codec and SoC. Each SoC
[all …]
/linux/sound/hda/codecs/cirrus/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
4 tristate "Cirrus Logic HD-audio codec support"
6 Say Y or M here to include Cirrus Logic HD-audio codec support.
8 This will enable both CS420x and CS421x HD-audio codec driver
[all...]
/linux/sound/hda/codecs/hdmi/
H A Dintelhdmi.c1 // SPDX-License-Identifier: GPL-2.0-or-later
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, spe in intel_haswell_enable_all_pins()
57 intel_haswell_fixup_enable_dp12(struct hda_codec * codec) intel_haswell_fixup_enable_dp12() argument
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...]
/linux/sound/aoa/codecs/
H A Dtoonie.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Apple Onboard Audio driver for Toonie codec
7 * This is a driver for the toonie codec chip. This chip is present
15 MODULE_DESCRIPTION("toonie codec driver for snd-aoa");
21 #define PFX "snd-aoa-codec-toonie: "
24 struct aoa_codec codec; member
26 #define codec_to_toonie(c) container_of(c, struct toonie, codec)
85 static int toonie_init_codec(struct aoa_codec *codec) in toonie_init_codec() argument
87 struct toonie *toonie = codec_to_toonie(codec); in toonie_init_codec()
90 if (toonie->codec.connected != 1) in toonie_init_codec()
[all …]
/linux/include/sound/ac97/
H A Dcodec.h1 /* SPDX-License-Identifier: GPL-2.0
22 * struct ac97_id - matches a codec device and driver on an ac97 bus
23 * @id: The significant bits if the codec vendor ID1 and ID2
25 * matching. A driver binds to a device when :
27 * @data: Private data used by the driver.
36 * ac97_codec_device - a ac97 codec
38 * @vendor_id: the vendor_id of the codec, as sensed on the AC-link
39 * @num: the codec number, 0 is primary, 1 is first slave, etc ...
40 * @clk: the clock BIT_CLK provided by the codec
41 * @ac97_ctrl: ac97 digital controller on the same AC-link
[all …]
/linux/include/sound/
H A Dhdaudio.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * HD-audio core stuff
12 #include <linux/io-64-nonatomic-lo-hi.h>
23 /* codec node id */
50 * HD-audio codec base device
56 unsigned int addr; /* codec address */
73 const char *vendor_name; /* codec vendor name */
74 const char *chip_name; /* codec chip name */
98 unsigned int registered:1; /* codec was registered */
101 /* device/driver type used for matching */
[all …]
/linux/sound/soc/tegra/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
5 tristate "SoC Audio for the Tegra System-on-Chip"
85 Config to enable the Inter-IC Sound (I2S) Controller which
86 implements full-duplex and bidirectional and single direction
87 point-to-poin
[all...]
/linux/sound/hda/core/ext/
H A Dbus.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * hdac-ext-bus.c - HD-audio extended core bus functions.
5 * Copyright (C) 2014-2015 Intel Corp
21 * snd_hdac_ext_bus_init - initialize a HD-audio extended bus
25 * @ext_ops: operators used for ASoC HDA codec drivers
39 bus->ext_ops = ext_ops; in snd_hdac_ext_bus_init()
42 * buses, bus->idx should be greater than 0, but there needs to be a in snd_hdac_ext_bus_init()
45 bus->idx = 0; in snd_hdac_ext_bus_init()
46 bus->cmd_dma_state = true; in snd_hdac_ext_bus_init()
53 * snd_hdac_ext_bus_exit - clean up a HD-audio extended bus
[all …]
/linux/sound/aoa/core/
H A Dcore.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Apple Onboard Audio driver core
14 MODULE_DESCRIPTION("Apple Onboard Audio Sound Driver");
27 if (!try_module_get(c->owner)) in attach_codec_to_fabric()
28 return -EBUSY; in attach_codec_to_fabric()
30 err = -ENOENT; in attach_codec_to_fabric()
31 if (fabric->found_codec) in attach_codec_to_fabric()
32 err = fabric->found_codec(c); in attach_codec_to_fabric()
34 module_put(c->owner); in attach_codec_to_fabric()
35 printk(KERN_ERR "snd-aoa: fabric didn't like codec %s\n", in attach_codec_to_fabric()
[all …]
/linux/sound/soc/intel/atom/
H A Dsst-mfld-platform-compress.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * sst_mfld_platform.c - Intel MID Platform driver
5 * Copyright (C) 2010-2014 Intel Corp
22 #include "sst-mfld-platform.h"
29 pr_debug("fragment elapsed by driver\n"); in sst_compr_fragment_elapsed()
38 pr_debug("drain notify by driver\n"); in sst_drain_notify()
47 struct snd_compr_runtime *runtime = cstream->runtime; in sst_platform_compr_open()
52 return -ENOMEM; in sst_platform_compr_open()
54 spin_lock_init(&stream->status_lock); in sst_platform_compr_open()
57 if (!sst || !try_module_get(sst->dev->driver->owner)) { in sst_platform_compr_open()
[all …]

12345678910>>...34