Home
last modified time | relevance | path

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

12345678910>>...109

/kernel/linux/linux-5.10/sound/pci/hda/
Dhda_bind.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
47 if (codec->bus->shutdown) in hda_codec_unsol_event()
51 if (codec->core.dev.power.power_state.event != PM_EVENT_ON) in hda_codec_unsol_event()
54 if (codec->patch_ops.unsol_event) in hda_codec_unsol_event()
[all …]
Dhda_codec.c3 * Universal Interface for Intel High Definition Audio Codec
27 #define codec_in_pm(codec) snd_hdac_is_in_pm(&codec->core) argument
28 #define hda_codec_is_power_on(codec) snd_hdac_is_power_on(&codec->core) argument
29 #define codec_has_epss(codec) \ argument
30 ((codec)->core.power_caps & AC_PWRST_EPSS)
31 #define codec_has_clkstop(codec) \ argument
32 ((codec)->core.power_caps & AC_PWRST_CLKSTOP)
40 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in codec_exec_verb() local
41 struct hda_bus *bus = codec->bus; in codec_exec_verb()
48 snd_hda_power_up_pm(codec); in codec_exec_verb()
[all …]
Dhda_generic.c3 * Universal Interface for Intel High Definition Audio Codec
99 static void parse_user_hints(struct hda_codec *codec) in parse_user_hints() argument
101 struct hda_gen_spec *spec = codec->spec; in parse_user_hints()
104 val = snd_hda_get_bool_hint(codec, "jack_detect"); in parse_user_hints()
106 codec->no_jack_detect = !val; in parse_user_hints()
107 val = snd_hda_get_bool_hint(codec, "inv_jack_detect"); in parse_user_hints()
109 codec->inv_jack_detect = !!val; in parse_user_hints()
110 val = snd_hda_get_bool_hint(codec, "trigger_sense"); in parse_user_hints()
112 codec->no_trigger_sense = !val; in parse_user_hints()
113 val = snd_hda_get_bool_hint(codec, "inv_eapd"); in parse_user_hints()
[all …]
Dpatch_via.c3 * Universal Interface for Intel High Definition Audio Codec
5 * HD audio interface patch 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 */
92 static enum VIA_HDA_CODEC get_codec_type(struct hda_codec *codec);
94 struct hda_codec *codec,
100 static struct via_spec *via_new_spec(struct hda_codec *codec) in via_new_spec() argument
[all …]
Dhda_jack.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 …]
Dpatch_ca0132.c1101 struct hda_codec *codec; member
1477 * CA0132 codec access
1479 static unsigned int codec_send_command(struct hda_codec *codec, hda_nid_t nid, in codec_send_command() argument
1483 response = snd_hda_codec_read(codec, nid, 0, verb, parm); in codec_send_command()
1489 static int codec_set_converter_format(struct hda_codec *codec, hda_nid_t nid, in codec_set_converter_format() argument
1492 return codec_send_command(codec, nid, VENDOR_CHIPIO_STREAM_FORMAT, in codec_set_converter_format()
1496 static int codec_set_converter_stream_channel(struct hda_codec *codec, in codec_set_converter_stream_channel() argument
1503 return codec_send_command(codec, nid, AC_VERB_SET_CHANNEL_STREAMID, in codec_set_converter_stream_channel()
1508 static int chipio_send(struct hda_codec *codec, in chipio_send() argument
1517 res = snd_hda_codec_read(codec, WIDGET_CHIP_CTRL, 0, in chipio_send()
[all …]
Dpatch_hdmi.c73 struct hda_codec *codec; member
93 int (*pin_get_eld)(struct hda_codec *codec, hda_nid_t pin_nid,
96 void (*pin_setup_infoframe)(struct hda_codec *codec, hda_nid_t pin_nid,
101 int (*pin_hbr_setup)(struct hda_codec *codec, hda_nid_t pin_nid,
104 int (*setup_stream)(struct hda_codec *codec, hda_nid_t cvt_nid,
108 void (*pin_cvt_fixup)(struct hda_codec *codec,
120 struct hda_codec *codec; member
181 static inline bool codec_has_acomp(struct hda_codec *codec) in codec_has_acomp() argument
183 struct hdmi_spec *spec = codec->spec; in codec_has_acomp()
187 #define codec_has_acomp(codec) false argument
[all …]
/kernel/linux/linux-4.19/sound/pci/hda/
Dhda_bind.c2 * HD-audio codec driver binding
18 * find a matching codec id
22 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in hda_codec_match() local
27 u32 id = codec->probe_id ? codec->probe_id : codec->core.vendor_id; in hda_codec_match()
28 u32 rev_id = codec->core.revision_id; in hda_codec_match()
33 codec->preset = list; in hda_codec_match()
43 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in hda_codec_unsol_event() local
46 if (codec->bus->shutdown) in hda_codec_unsol_event()
49 if (codec->patch_ops.unsol_event) in hda_codec_unsol_event()
50 codec->patch_ops.unsol_event(codec, ev); in hda_codec_unsol_event()
[all …]
Dhda_codec.c2 * Universal Interface for Intel High Definition Audio Codec
40 #define codec_in_pm(codec) snd_hdac_is_in_pm(&codec->core) argument
41 #define hda_codec_is_power_on(codec) snd_hdac_is_power_on(&codec->core) argument
42 #define codec_has_epss(codec) \ argument
43 ((codec)->core.power_caps & AC_PWRST_EPSS)
44 #define codec_has_clkstop(codec) \ argument
45 ((codec)->core.power_caps & AC_PWRST_CLKSTOP)
53 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in codec_exec_verb() local
54 struct hda_bus *bus = codec->bus; in codec_exec_verb()
61 snd_hda_power_up_pm(codec); in codec_exec_verb()
[all …]
Dhda_generic.c2 * Universal Interface for Intel High Definition Audio Codec
111 static void parse_user_hints(struct hda_codec *codec) in parse_user_hints() argument
113 struct hda_gen_spec *spec = codec->spec; in parse_user_hints()
116 val = snd_hda_get_bool_hint(codec, "jack_detect"); in parse_user_hints()
118 codec->no_jack_detect = !val; in parse_user_hints()
119 val = snd_hda_get_bool_hint(codec, "inv_jack_detect"); in parse_user_hints()
121 codec->inv_jack_detect = !!val; in parse_user_hints()
122 val = snd_hda_get_bool_hint(codec, "trigger_sense"); in parse_user_hints()
124 codec->no_trigger_sense = !val; in parse_user_hints()
125 val = snd_hda_get_bool_hint(codec, "inv_eapd"); in parse_user_hints()
[all …]
Dhda_jack.c25 * @codec: the HDA codec
30 * detection is prohibited in the codec level, the pin config has
33 bool is_jack_detectable(struct hda_codec *codec, hda_nid_t nid) in is_jack_detectable() argument
35 if (codec->no_jack_detect) in is_jack_detectable()
37 if (!(snd_hda_query_pin_caps(codec, nid) & AC_PINCAP_PRES_DETECT)) in is_jack_detectable()
39 if (get_defcfg_misc(snd_hda_codec_get_pincfg(codec, nid)) & in is_jack_detectable()
42 if (!(get_wcaps(codec, nid) & AC_WCAP_UNSOL_CAP) && in is_jack_detectable()
43 !codec->jackpoll_interval) in is_jack_detectable()
50 static u32 read_pin_sense(struct hda_codec *codec, hda_nid_t nid) in read_pin_sense() argument
55 if (!codec->no_trigger_sense) { in read_pin_sense()
[all …]
Dpatch_via.c2 * Universal Interface for Intel High Definition Audio Codec
4 * HD audio interface patch for VIA VT17xx/VT18xx/VT20xx codec
26 /* 2006-03-03 Lydia Wang Create the basic patch to support VT1708 codec */
28 /* 2006-08-02 Lydia Wang Add support to VT1709 codec */
31 /* 2007-09-17 Lydia Wang Add VT1708B codec support */
32 /* 2007-11-14 Lydia Wang Add VT1708A codec HP and CD pin connect config */
34 /* 2008-03-06 Lydia Wang Add VT1702 codec and VT1708S codec support */
105 static enum VIA_HDA_CODEC get_codec_type(struct hda_codec *codec);
107 struct hda_codec *codec,
113 static struct via_spec *via_new_spec(struct hda_codec *codec) in via_new_spec() argument
[all …]
Dpatch_ca0132.c961 struct hda_codec *codec; member
1078 * CA0132 codec access
1080 static unsigned int codec_send_command(struct hda_codec *codec, hda_nid_t nid, in codec_send_command() argument
1084 response = snd_hda_codec_read(codec, nid, 0, verb, parm); in codec_send_command()
1090 static int codec_set_converter_format(struct hda_codec *codec, hda_nid_t nid, in codec_set_converter_format() argument
1093 return codec_send_command(codec, nid, VENDOR_CHIPIO_STREAM_FORMAT, in codec_set_converter_format()
1097 static int codec_set_converter_stream_channel(struct hda_codec *codec, in codec_set_converter_stream_channel() argument
1104 return codec_send_command(codec, nid, AC_VERB_SET_CHANNEL_STREAMID, in codec_set_converter_stream_channel()
1109 static int chipio_send(struct hda_codec *codec, in chipio_send() argument
1118 res = snd_hda_codec_read(codec, WIDGET_CHIP_CTRL, 0, in chipio_send()
[all …]
Dpatch_hdmi.c52 #define is_haswell(codec) ((codec)->core.vendor_id == 0x80862807) argument
53 #define is_broadwell(codec) ((codec)->core.vendor_id == 0x80862808) argument
54 #define is_skylake(codec) ((codec)->core.vendor_id == 0x80862809) argument
55 #define is_broxton(codec) ((codec)->core.vendor_id == 0x8086280a) argument
56 #define is_kabylake(codec) ((codec)->core.vendor_id == 0x8086280b) argument
57 #define is_geminilake(codec) (((codec)->core.vendor_id == 0x8086280d) || \ argument
58 ((codec)->core.vendor_id == 0x80862800))
59 #define is_cannonlake(codec) ((codec)->core.vendor_id == 0x8086280c) argument
60 #define is_haswell_plus(codec) (is_haswell(codec) || is_broadwell(codec) \ argument
61 || is_skylake(codec) || is_broxton(codec) \
[all …]
Dhda_codec.h2 * Universal Interface for Intel High Definition Audio Codec
45 * codec bus
66 /* status for codec/controller */
74 unsigned int mixer_assigned; /* codec addr for mixer name */
81 * codec preset
115 int (*build_controls)(struct hda_codec *codec);
116 int (*build_pcms)(struct hda_codec *codec);
117 int (*init)(struct hda_codec *codec);
118 void (*free)(struct hda_codec *codec);
119 void (*unsol_event)(struct hda_codec *codec, unsigned int res);
[all …]
/kernel/linux/linux-5.10/sound/pci/ali5451/
Dali5451.c142 #define ALI_REG(codec, x) ((codec)->port + x) argument
181 struct snd_ali *codec; member
267 static inline unsigned int snd_ali_5451_peek(struct snd_ali *codec, in snd_ali_5451_peek() argument
270 return (unsigned int)inl(ALI_REG(codec, port)); in snd_ali_5451_peek()
273 static inline void snd_ali_5451_poke(struct snd_ali *codec, in snd_ali_5451_poke() argument
277 outl((unsigned int)val, ALI_REG(codec, port)); in snd_ali_5451_poke()
280 static int snd_ali_codec_ready(struct snd_ali *codec, in snd_ali_codec_ready() argument
289 res = snd_ali_5451_peek(codec,port); in snd_ali_codec_ready()
297 snd_ali_5451_poke(codec, port, res & ~0x8000); in snd_ali_codec_ready()
298 dev_dbg(codec->card->dev, "ali_codec_ready: codec is not ready.\n "); in snd_ali_codec_ready()
[all …]
/kernel/linux/linux-4.19/sound/pci/ali5451/
Dali5451.c156 #define ALI_REG(codec, x) ((codec)->port + x) argument
195 struct snd_ali *codec; member
281 static inline unsigned int snd_ali_5451_peek(struct snd_ali *codec, in snd_ali_5451_peek() argument
284 return (unsigned int)inl(ALI_REG(codec, port)); in snd_ali_5451_peek()
287 static inline void snd_ali_5451_poke(struct snd_ali *codec, in snd_ali_5451_poke() argument
291 outl((unsigned int)val, ALI_REG(codec, port)); in snd_ali_5451_poke()
294 static int snd_ali_codec_ready(struct snd_ali *codec, in snd_ali_codec_ready() argument
303 res = snd_ali_5451_peek(codec,port); in snd_ali_codec_ready()
311 snd_ali_5451_poke(codec, port, res & ~0x8000); in snd_ali_codec_ready()
312 dev_dbg(codec->card->dev, "ali_codec_ready: codec is not ready.\n "); in snd_ali_codec_ready()
[all …]
/kernel/linux/linux-5.10/sound/hda/
Dhdac_device.c3 * HD-audio codec core device
18 static void setup_fg_nodes(struct hdac_device *codec);
19 static int get_codec_vendor_name(struct hdac_device *codec);
27 * snd_hdac_device_init - initialize the HD-audio codec base device
28 * @codec: device to initialize
31 * @addr: codec address
40 int snd_hdac_device_init(struct hdac_device *codec, struct hdac_bus *bus, in snd_hdac_device_init() argument
47 dev = &codec->dev; in snd_hdac_device_init()
56 codec->bus = bus; in snd_hdac_device_init()
57 codec->addr = addr; in snd_hdac_device_init()
[all …]
Dhdac_regmap.c26 static int codec_pm_lock(struct hdac_device *codec) in codec_pm_lock() argument
28 return snd_hdac_keep_power_up(codec); in codec_pm_lock()
31 static void codec_pm_unlock(struct hdac_device *codec, int lock) in codec_pm_unlock() argument
34 snd_hdac_power_down_pm(codec); in codec_pm_unlock()
41 struct hdac_device *codec = dev_to_hdac_dev(dev); in hda_volatile_reg() local
46 return !codec->cache_coef; in hda_volatile_reg()
68 struct hdac_device *codec = dev_to_hdac_dev(dev); in hda_writeable_reg() local
73 snd_array_for_each(&codec->vendor_verbs, i, v) { in hda_writeable_reg()
78 if (codec->caps_overwriting) in hda_writeable_reg()
86 return codec->cache_coef; in hda_writeable_reg()
[all …]
/kernel/linux/linux-4.19/sound/hda/
Dhdac_device.c2 * HD-audio codec core device
17 static void setup_fg_nodes(struct hdac_device *codec);
18 static int get_codec_vendor_name(struct hdac_device *codec);
26 * snd_hdac_device_init - initialize the HD-audio codec base device
27 * @codec: device to initialize
30 * @addr: codec address
39 int snd_hdac_device_init(struct hdac_device *codec, struct hdac_bus *bus, in snd_hdac_device_init() argument
46 dev = &codec->dev; in snd_hdac_device_init()
55 codec->bus = bus; in snd_hdac_device_init()
56 codec->addr = addr; in snd_hdac_device_init()
[all …]
Dhdac_regmap.c24 static int codec_pm_lock(struct hdac_device *codec) in codec_pm_lock() argument
26 return snd_hdac_keep_power_up(codec); in codec_pm_lock()
29 static void codec_pm_unlock(struct hdac_device *codec, int lock) in codec_pm_unlock() argument
32 snd_hdac_power_down_pm(codec); in codec_pm_unlock()
39 struct hdac_device *codec = dev_to_hdac_dev(dev); in hda_volatile_reg() local
44 return !codec->cache_coef; in hda_volatile_reg()
66 struct hdac_device *codec = dev_to_hdac_dev(dev); in hda_writeable_reg() local
71 snd_array_for_each(&codec->vendor_verbs, i, v) { in hda_writeable_reg()
76 if (codec->caps_overwriting) in hda_writeable_reg()
84 return codec->cache_coef; in hda_writeable_reg()
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/pinctrl/
Dcirrus,lochnagar.yaml14 Smart CODEC and Amp devices. It allows the connection of most Cirrus
81 enum: [ codec-aif1, codec-aif2, codec-aif3, dsp-aif1,
91 fpga-gpio5, fpga-gpio6, codec-gpio1, codec-gpio2,
92 codec-gpio3, codec-gpio4, codec-gpio5, codec-gpio6,
93 codec-gpio7, codec-gpio8, dsp-gpio1, dsp-gpio2,
95 gf-gpio2, gf-gpio3, gf-gpio7, codec-aif1-bclk,
96 codec-aif1-rxdat, codec-aif1-lrclk, codec-aif1-txdat,
97 codec-aif2-bclk, codec-aif2-rxdat, codec-aif2-lrclk,
98 codec-aif2-txdat, codec-aif3-bclk, codec-aif3-rxdat,
99 codec-aif3-lrclk, codec-aif3-txdat, dsp-aif1-bclk,
[all …]
/kernel/linux/linux-5.10/include/sound/
Dhda_codec.h3 * Universal Interface for Intel High Definition Audio Codec
35 * codec bus
55 /* status for codec/controller */
64 unsigned int mixer_assigned; /* codec addr for mixer name */
71 * codec preset
105 int (*build_controls)(struct hda_codec *codec);
106 int (*build_pcms)(struct hda_codec *codec);
107 int (*init)(struct hda_codec *codec);
108 void (*free)(struct hda_codec *codec);
109 void (*unsol_event)(struct hda_codec *codec, unsigned int res);
[all …]
/kernel/linux/linux-5.10/sound/soc/codecs/
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"
283 Normally ASoC codec drivers are only built if a machine driver which
334 tristate "Build generic ASoC AC97 CODEC driver"
372 tristate "Analog Devices ADAU1701 CODEC"
386 tristate "Analog Devices AU1761 CODEC - I2C"
392 tristate "Analog Devices AU1761 CODEC - SPI"
475 tristate "AKM AK4104 CODEC"
479 tristate "AKM AK4118 CODEC"
[all …]
/kernel/linux/linux-5.10/drivers/staging/media/zoran/
Dvideocodec.c5 * Interface for MJPEG (and maybe later MPEG/WAVELETS) codec's
40 struct videocodec *codec; member
45 const struct videocodec *codec; member
61 struct videocodec *codec; in videocodec_attach() local
80 if ((master->flags & h->codec->flags) == master->flags) { in videocodec_attach()
81 dprintk(4, "%s: try '%s'\n", __func__, h->codec->name); in videocodec_attach()
83 if (!try_module_get(h->codec->owner)) in videocodec_attach()
86 codec = kmemdup(h->codec, sizeof(struct videocodec), GFP_KERNEL); in videocodec_attach()
87 if (!codec) in videocodec_attach()
90 res = strlen(codec->name); in videocodec_attach()
[all …]

12345678910>>...109