Searched refs:codec (Results 101 - 125 of 321) sorted by relevance

1234567891011>>

/linux-master/sound/pci/oxygen/
H A Doxygen.h194 u16 oxygen_read_ac97(struct oxygen *chip, unsigned int codec,
196 void oxygen_write_ac97(struct oxygen *chip, unsigned int codec,
198 void oxygen_write_ac97_masked(struct oxygen *chip, unsigned int codec,
246 static inline void oxygen_ac97_set_bits(struct oxygen *chip, unsigned int codec, argument
249 oxygen_write_ac97_masked(chip, codec, index, value, value);
253 unsigned int codec,
256 oxygen_write_ac97_masked(chip, codec, index, 0, value);
252 oxygen_ac97_clear_bits(struct oxygen *chip, unsigned int codec, unsigned int index, u16 value) argument
/linux-master/sound/soc/qcom/
H A Dcommon.c19 struct device_node *codec = NULL; local
90 dev_err(card->dev, "error getting codec dai_link name\n");
96 codec = of_get_child_by_name(np, "codec");
126 if (codec) {
127 ret = snd_soc_of_get_dai_link_codecs(dev, codec, link);
130 "%s: codec dai not found\n", link->name);
146 if (platform || !codec) {
157 of_node_put(codec);
169 of_node_put(codec);
[all...]
/linux-master/sound/aoa/soundbus/i2sbus/
H A Dpcm.c101 struct transfer_info *ti = cii->codec->transfers;
102 bus_factor = cii->codec->bus_factor;
103 sysclock_factor = cii->codec->sysclock_factor;
107 && cii->codec->usable(cii, ti, &v)) {
144 /* well. the codec might want 24 bits only, and we'll
158 * doubt there's a codec that would be able to use that,
202 if (cii->codec->open) {
203 err = cii->codec->open(cii, pi->substream);
210 if (found_this && rev->codec->close) {
211 rev->codec
[all...]
/linux-master/sound/pci/hda/
H A Dcs35l56_hda.h23 struct hda_codec *codec; member in struct:cs35l56_hda
H A Dhda_controller.c74 codec_frames = hinfo->ops.get_delay(hinfo, apcm->codec, substream);
99 hinfo->ops.close(hinfo, apcm->codec, substream);
100 snd_hda_power_down(apcm->codec);
148 snd_hda_codec_cleanup(apcm->codec, hinfo, substream);
165 snd_hda_spdif_out_of_nid(apcm->codec, hinfo->nid);
198 err = snd_hda_codec_prepare(apcm->codec, hinfo, stream_tag,
319 delay += hinfo->ops.get_delay(hinfo, apcm->codec,
637 snd_hda_power_up(apcm->codec);
639 err = hinfo->ops.open(hinfo, apcm->codec, substream);
654 hinfo->ops.close(hinfo, apcm->codec, substrea
701 snd_hda_attach_pcm_stream(struct hda_bus *_bus, struct hda_codec *codec, struct hda_pcm *cpcm) argument
961 snd_hda_codec_load_dsp_prepare(struct hda_codec *codec, unsigned int format, unsigned int byte_size, struct snd_dma_buffer *bufp) argument
995 snd_hda_codec_load_dsp_trigger(struct hda_codec *codec, bool start) argument
1005 snd_hda_codec_load_dsp_cleanup(struct hda_codec *codec, struct snd_dma_buffer *dmab) argument
1238 struct hda_codec *codec; local
1259 struct hda_codec *codec, *next; local
[all...]
/linux-master/drivers/gpu/drm/msm/dp/
H A Ddp_display.h10 #include <sound/hdmi-codec.h>
/linux-master/include/sound/
H A Des1688.h43 #define ES1688P(codec, x) ((codec)->port + e_s_s_ESS1688##x)
/linux-master/include/uapi/sound/
H A Dcompress_offload.h31 * @codec: codec parameters
36 struct snd_codec codec; member in struct:snd_compr_params
97 * struct snd_compr_codec_caps - query capability of codec
98 * @codec: codec for which capability is queried
99 * @num_descriptors: number of codec descriptors
100 * @descriptor: array of codec capability descriptor
103 __u32 codec; member in struct:snd_compr_codec_caps
133 * SNDRV_COMPRESS_GET_CODEC_CAPS: Query capability of a codec
[all...]
/linux-master/sound/hda/
H A Dhdac_component.c23 * snd_hdac_set_codec_wakeup - Enable / disable HDMI/DP codec wakeup
45 dev_dbg(bus->dev, "%s codec wakeup\n",
57 * @idx: HDA codec address, pass HDA_CODEC_IDX_CONTROLLER for controller
60 * This function is used by either HD-audio controller or codec driver that
64 * put_power() ops accordingly, toggling the codec wakeup, too.
110 * @codec: HDA codec
121 int snd_hdac_sync_audio_rate(struct hdac_device *codec, hda_nid_t nid, argument
124 struct hdac_bus *bus = codec->bus;
132 port = acomp->audio_ops->pin2port(codec, ni
162 snd_hdac_acomp_get_eld(struct hdac_device *codec, hda_nid_t nid, int dev_id, bool *audio_enabled, char *buffer, int max_bytes) argument
[all...]
/linux-master/sound/mips/
H A Dhal2.c314 static int hal2_compute_rate(struct hal2_codec *codec, unsigned int rate) argument
320 codec->master = 44100;
323 codec->master = 48000;
326 codec->inc = 4;
327 codec->mod = mod;
328 rate = 4 * codec->master / mod;
444 static int hal2_alloc_dmabuf(struct snd_hal2 *hal2, struct hal2_codec *codec, argument
453 codec->buffer = dma_alloc_noncoherent(dev, H2_BUF_SIZE, &buffer_dma,
455 if (!codec->buffer)
460 dma_free_noncoherent(dev, H2_BUF_SIZE, codec
481 hal2_free_dmabuf(struct snd_hal2 *hal2, struct hal2_codec *codec, enum dma_data_direction buffer_dir) argument
735 hal2_init_codec(struct hal2_codec *codec, struct hpc3_regs *hpc3, int index) argument
[all...]
/linux-master/sound/isa/opti9xx/
H A Dopti92x-ad1848.c123 struct snd_wss *codec; member in struct:snd_opti9xx
638 struct snd_wss *codec = chip->codec; local
641 if (!codec)
645 if ((status & OPTi93X_IRQ_PLAYBACK) && codec->playback_substream)
646 snd_pcm_period_elapsed(codec->playback_substream);
647 if ((status & OPTi93X_IRQ_CAPTURE) && codec->capture_substream) {
648 snd_wss_overrange(codec);
649 snd_pcm_period_elapsed(codec->capture_substream);
651 outb(0x00, OPTi93X_PORT(codec, STATU
801 struct snd_wss *codec; local
[all...]
/linux-master/sound/soc/loongson/
H A Dloongson_card.c95 /* fixup codec name based on reference node */
97 ret = acpi_node_get_property_reference(fwnode, "codec", 0, &args);
107 device_property_read_string(card->dev, "codec-dai-name",
117 struct device_node *cpu, *codec; local
127 codec = of_get_child_by_name(dev->of_node, "codec");
128 if (!codec) {
129 dev_err(dev, "audio-codec property missing or invalid\n");
141 ret = snd_soc_of_get_dlc(codec, NULL, loongson_dai_links[i].codecs, 0);
143 dev_err(dev, "getting codec dl
[all...]
/linux-master/sound/soc/intel/boards/
H A Dbdw_rt286.c64 struct snd_soc_component *codec = snd_soc_rtd_to_codec(rtd, 0)->component; local
73 return snd_soc_component_set_jack(codec, &card_headset, NULL);
78 struct snd_soc_component *codec = snd_soc_rtd_to_codec(rtd, 0)->component; local
80 snd_soc_component_set_jack(codec, NULL, NULL);
107 dev_err(rtd->dev, "set codec sysclk failed: %d\n", ret);
125 SND_SOC_DAILINK_DEF(codec, DAILINK_COMP_ARRAY(COMP_CODEC("i2c-INT343A:00", "rt286-aif1")));
182 SND_SOC_DAILINK_REG(ssp0_port, codec, platform),
221 /* Use space before codec name to simplify card ID, and simplify driver name. */
H A Dsof_pcm512x.c5 * Intel SOF Machine Driver for Intel platforms with TI PCM512x codec,
92 struct snd_soc_component *codec = snd_soc_rtd_to_codec(rtd, 0)->component; local
94 snd_soc_component_update_bits(codec, PCM512x_GPIO_EN, 0x08, 0x08);
95 snd_soc_component_update_bits(codec, PCM512x_GPIO_OUTPUT_4, 0x0f, 0x02);
96 snd_soc_component_update_bits(codec, PCM512x_GPIO_CONTROL_1,
105 struct snd_soc_component *codec = snd_soc_rtd_to_codec(rtd, 0)->component; local
107 snd_soc_component_update_bits(codec, PCM512x_GPIO_CONTROL_1,
116 struct snd_soc_component *codec = snd_soc_rtd_to_codec(rtd, 0)->component; local
118 snd_soc_component_update_bits(codec, PCM512x_GPIO_CONTROL_1,
199 /* sof audio machine driver for pcm512x codec */
[all...]
/linux-master/sound/soc/qcom/qdsp6/
H A Dq6asm-dai.c54 struct snd_codec codec; member in struct:q6asm_dai_rtd
697 struct snd_codec *codec,
715 codec_options = &(prtd->codec.options);
717 memcpy(&prtd->codec, codec, sizeof(*codec));
719 switch (codec->id) {
725 flac_cfg.ch_cfg = codec->ch_in;
726 flac_cfg.sample_rate = codec->sample_rate;
748 wma_cfg.sample_rate = codec
695 __q6asm_dai_compr_set_codec_params(struct snd_soc_component *component, struct snd_compr_stream *stream, struct snd_codec *codec, int stream_id) argument
1151 q6asm_dai_compr_get_codec_caps(struct snd_soc_component *component, struct snd_compr_stream *stream, struct snd_compr_codec_caps *codec) argument
[all...]
H A Dq6apm-dai.c61 struct snd_codec codec; member in struct:q6apm_dai_rtd
557 struct snd_compr_codec_caps *codec)
559 switch (codec->codec) {
561 *codec = q6apm_compr_caps;
641 struct snd_codec *codec = &params->codec; local
657 memcpy(&prtd->codec, codec, sizeof(*codec));
555 q6apm_dai_compr_get_codec_caps(struct snd_soc_component *component, struct snd_compr_stream *stream, struct snd_compr_codec_caps *codec) argument
[all...]
/linux-master/sound/soc/amd/acp/acp3x-es83xx/
H A Dacp3x-es83xx.c3 // Machine driver for AMD ACP Audio engine using ES8336 codec.
36 struct snd_soc_component *codec; member in struct:acp3x_es83xx_private
86 dev_err(rtd->dev, "can't set codec sysclk: %d\n", ret);
207 snd_soc_component_set_jack(priv->codec, NULL, NULL);
219 snd_soc_component_set_jack(priv->codec, &es83xx_jack, NULL);
274 struct snd_soc_component *codec = snd_soc_rtd_to_codec(runtime, 0)->component; local
291 snd_soc_component_set_jack(codec, &es83xx_jack, NULL);
293 priv->codec = codec;
329 SND_SOC_DAILINK_DEF(codec,
[all...]
/linux-master/sound/soc/intel/skylake/
H A Dskl.c567 pdev = platform_device_alloc("dmic-codec", -1);
666 * load the legacy codec driver
668 static void load_codec_module(struct hda_codec *codec) argument
674 snd_hdac_codec_modalias(&codec->core, modalias, sizeof(modalias));
676 dev_dbg(&codec->core.dev, "loading %s codec module\n", mod);
685 struct hda_codec *codec; local
688 codec = snd_hda_codec_device_init(to_hda_bus(bus), addr, "ehdaudio%dD%d", bus->idx, addr);
689 if (IS_ERR(codec)) {
691 return codec;
718 struct hda_codec *codec; local
[all...]
/linux-master/sound/soc/codecs/
H A Dhdac_hda.c5 * 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.");
259 snd_hda_codec_cleanup(hda_pvt->codec, hda_stream, substream);
285 ret = snd_hda_codec_prepare(hda_pvt->codec, hda_stream,
311 ret = hda_stream->ops.open(hda_stream, hda_pvt->codec, substream);
333 hda_stream->ops.close(hda_stream, hda_pvt->codec, substream);
341 struct hda_codec *hcodec = hda_pvt->codec;
347 * scheme used by hda-codec snd_hda_gen_build_pcms() and for
410 struct hdac_device *hdev = &hda_pvt->codec
550 struct hda_codec *codec = hda_pvt->codec; local
[all...]
/linux-master/sound/soc/uniphier/
H A Daio-compress.c129 *params = sub->cparams.codec;
143 if (params->codec.id != SND_AUDIOCODEC_IEC61937) {
145 params->codec.id);
148 if (params->codec.profile != SND_AUDIOPROFILE_IEC61937_SPDIF) {
150 params->codec.profile);
413 struct snd_compr_codec_caps *codec)
415 if (codec->codec == SND_AUDIOCODEC_IEC61937)
416 *codec = caps_iec;
411 uniphier_aio_compr_get_codec_caps(struct snd_soc_component *component, struct snd_compr_stream *stream, struct snd_compr_codec_caps *codec) argument
/linux-master/sound/soc/samsung/
H A Dmidas_wm1811.c153 struct snd_soc_component *codec = snd_soc_dapm_to_component(w->dapm); local
158 ret = snd_soc_component_update_bits(codec, WM8994_SPKOUT_MIXERS,
163 ret = snd_soc_component_update_bits(codec, WM8994_SPKOUT_MIXERS,
432 struct device_node *cpu = NULL, *codec = NULL; local
491 codec = of_get_child_by_name(dev->of_node, "codec");
492 if (!codec) {
501 of_node_put(codec);
505 codec_dai_node = of_parse_phandle(codec, "sound-dai", 0);
506 of_node_put(codec);
[all...]
H A Dodroid.c201 struct device_node *cpu, *codec; local
243 codec = of_get_child_by_name(dev->of_node, "codec");
275 ret = snd_soc_of_get_dai_link_codecs(dev, codec, codec_link);
304 of_node_put(codec);
315 of_node_put(codec);
/linux-master/sound/soc/amd/
H A Dacp-es8336.c63 struct snd_soc_component *codec; local
65 codec = snd_soc_rtd_to_codec(rtd, 0)->component;
76 ret = snd_soc_component_set_jack(codec, &st_jack, NULL);
120 dev_err(rtd->dev, "can't set codec sysclk: %d\n", ret);
141 SND_SOC_DAILINK_DEF(codec,
157 SND_SOC_DAILINK_REG(designware1, codec, platform),
207 dev_err(card->dev, "can not find codec dev\n");
/linux-master/sound/soc/intel/atom/
H A Dsst-mfld-platform.h69 u16 codec; /* codec type */ member in struct:sst_pcm_params
82 u8 codec; member in struct:sst_stream_params
113 int (*get_codec_caps)(struct snd_compr_codec_caps *codec);
/linux-master/lib/reed_solomon/
H A Dtest_rslib.c154 int nroots = rs->codec->nroots;
158 int nn = rs->codec->nn;
232 struct rs_codec *rs = rsc->codec;
264 int dlen = len - rs->codec->nroots;
323 int nroots = rs->codec->nroots;
370 int nroots = rs->codec->nroots;
411 int nroots = rs->codec->nroots;
457 ws = alloc_ws(rsc->codec);

Completed in 582 milliseconds

1234567891011>>