Home
last modified time | relevance | path

Searched refs:audio (Results 1 – 25 of 248) sorted by relevance

12345678910

/drivers/usb/gadget/function/
Df_audio_source.c337 static void audio_req_put(struct audio_dev *audio, struct usb_request *req) in audio_req_put() argument
341 spin_lock_irqsave(&audio->lock, flags); in audio_req_put()
342 list_add_tail(&req->list, &audio->idle_reqs); in audio_req_put()
343 spin_unlock_irqrestore(&audio->lock, flags); in audio_req_put()
346 static struct usb_request *audio_req_get(struct audio_dev *audio) in audio_req_get() argument
351 spin_lock_irqsave(&audio->lock, flags); in audio_req_get()
352 if (list_empty(&audio->idle_reqs)) { in audio_req_get()
355 req = list_first_entry(&audio->idle_reqs, struct usb_request, in audio_req_get()
359 spin_unlock_irqrestore(&audio->lock, flags); in audio_req_get()
364 static void audio_send(struct audio_dev *audio) in audio_send() argument
[all …]
Df_uac1_legacy.c303 struct f_audio *audio = container_of(data, struct f_audio, in f_audio_playback_work() local
307 spin_lock_irq(&audio->lock); in f_audio_playback_work()
308 if (list_empty(&audio->play_queue)) { in f_audio_playback_work()
309 spin_unlock_irq(&audio->lock); in f_audio_playback_work()
312 play_buf = list_first_entry(&audio->play_queue, in f_audio_playback_work()
315 spin_unlock_irq(&audio->lock); in f_audio_playback_work()
317 u_audio_playback(&audio->card, play_buf->buf, play_buf->actual); in f_audio_playback_work()
323 struct f_audio *audio = req->context; in f_audio_out_ep_complete() local
324 struct usb_composite_dev *cdev = audio->card.func.config->cdev; in f_audio_out_ep_complete()
325 struct f_audio_buf *copy_buf = audio->copy_buf; in f_audio_out_ep_complete()
[all …]
Df_uac1.c52 static inline struct f_uac1_opts *g_audio_to_uac1_opts(struct g_audio *audio) in g_audio_to_uac1_opts() argument
54 return container_of(audio->func.fi, struct f_uac1_opts, func_inst); in g_audio_to_uac1_opts()
338 struct g_audio *audio = req->context; in audio_notify_complete() local
339 struct f_uac1 *uac1 = func_to_uac1(&audio->func); in audio_notify_complete()
346 static int audio_notify(struct g_audio *audio, int unit_id, int cs) in audio_notify() argument
348 struct f_uac1 *uac1 = func_to_uac1(&audio->func); in audio_notify()
379 req->context = audio; in audio_notify()
403 struct g_audio *audio = func_to_g_audio(fn); in in_rq_cur() local
404 struct f_uac1_opts *opts = g_audio_to_uac1_opts(audio); in in_rq_cur()
422 u_audio_get_mute(audio, is_playback, &mute); in in_rq_cur()
[all …]
/drivers/gpu/drm/radeon/
Dradeon_audio.c208 if (rdev->audio.funcs->enable) in radeon_audio_enable()
209 rdev->audio.funcs->enable(rdev, pin, enable_mask); in radeon_audio_enable()
215 rdev->audio.funcs = &dce6_funcs; in radeon_audio_interface_init()
216 rdev->audio.hdmi_funcs = &dce6_hdmi_funcs; in radeon_audio_interface_init()
217 rdev->audio.dp_funcs = &dce6_dp_funcs; in radeon_audio_interface_init()
219 rdev->audio.funcs = &dce4_funcs; in radeon_audio_interface_init()
220 rdev->audio.hdmi_funcs = &dce4_hdmi_funcs; in radeon_audio_interface_init()
221 rdev->audio.dp_funcs = &dce4_dp_funcs; in radeon_audio_interface_init()
223 rdev->audio.funcs = &dce32_funcs; in radeon_audio_interface_init()
224 rdev->audio.hdmi_funcs = &dce32_hdmi_funcs; in radeon_audio_interface_init()
[all …]
Dr600_hdmi.c124 if (rdev->audio.pin[0].channels != audio_status.channels || in r600_audio_update_hdmi()
125 rdev->audio.pin[0].rate != audio_status.rate || in r600_audio_update_hdmi()
126 rdev->audio.pin[0].bits_per_sample != audio_status.bits_per_sample || in r600_audio_update_hdmi()
127 rdev->audio.pin[0].status_bits != audio_status.status_bits || in r600_audio_update_hdmi()
128 rdev->audio.pin[0].category_code != audio_status.category_code) { in r600_audio_update_hdmi()
129 rdev->audio.pin[0] = audio_status; in r600_audio_update_hdmi()
175 return &rdev->audio.pin[0]; in r600_audio_get_pin()
418 struct r600_audio_pin audio = r600_audio_status(rdev); in r600_hdmi_update_audio_settings() local
431 audio.channels, audio.rate, audio.bits_per_sample); in r600_hdmi_update_audio_settings()
433 (int)audio.status_bits, (int)audio.category_code); in r600_hdmi_update_audio_settings()
[all …]
Ddce6_afmt.c67 for (i = 0; i < rdev->audio.num_pins; i++) { in dce6_afmt_get_connected_pins()
68 offset = rdev->audio.pin[i].offset; in dce6_afmt_get_connected_pins()
72 rdev->audio.pin[i].connected = false; in dce6_afmt_get_connected_pins()
74 rdev->audio.pin[i].connected = true; in dce6_afmt_get_connected_pins()
88 for (i = 0; i < rdev->audio.num_pins; i++) { in dce6_audio_get_pin()
89 if (rdev->audio.pin[i].connected) { in dce6_audio_get_pin()
90 pin = &rdev->audio.pin[i]; in dce6_audio_get_pin()
/drivers/mfd/
Dtwl4030-audio.c46 struct twl4030_audio *audio = platform_get_drvdata(twl4030_audio_dev); in twl4030_audio_set_resource() local
50 audio->resource[id].reg); in twl4030_audio_set_resource()
53 val |= audio->resource[id].mask; in twl4030_audio_set_resource()
55 val &= ~audio->resource[id].mask; in twl4030_audio_set_resource()
58 val, audio->resource[id].reg); in twl4030_audio_set_resource()
65 struct twl4030_audio *audio = platform_get_drvdata(twl4030_audio_dev); in twl4030_audio_get_resource() local
69 audio->resource[id].reg); in twl4030_audio_get_resource()
80 struct twl4030_audio *audio = platform_get_drvdata(twl4030_audio_dev); in twl4030_audio_enable_resource() local
89 mutex_lock(&audio->mutex); in twl4030_audio_enable_resource()
90 if (!audio->resource[id].request_count) in twl4030_audio_enable_resource()
[all …]
/drivers/staging/media/av7110/
Daudio_function_calls.rst12 audio-fopen
13 audio-fclose
14 audio-fwrite
15 audio-stop
16 audio-play
17 audio-pause
18 audio-continue
19 audio-select-source
20 audio-set-mute
21 audio-set-av-sync
[all …]
Daudio.rst9 The Digital TV audio device controls the MPEG2 audio decoder of the Digital
10 TV hardware. It can be accessed through ``/dev/dvb/adapter?/audio?``. Data
12 ``linux/dvb/audio.h`` in your application.
15 results in the omission of the audio and video device.
Daudio_data_types.rst10 talking to the audio device.
14 The audio stream source is set through the AUDIO_SELECT_SOURCE call
35 representing the state of audio playback.
49 The audio channel selected via AUDIO_CHANNEL_SELECT is determined by
86 audio volume.
99 audio encodings
Daudio-fclose.rst2 .. c:namespace:: DTV.audio
7 Digital TV audio close()
13 Digital TV audio close()
38 This system call closes a previously opened audio device.
Daudio-fopen.rst2 .. c:namespace:: DTV.audio
7 Digital TV audio open()
13 Digital TV audio open()
33 - Name of specific audio device.
64 This system call opens a named audio device (e.g.
Daudio-set-id.rst2 .. c:namespace:: DTV.audio
41 - audio sub-stream id
47 system stream is sent to the video device. If no audio stream type is
51 substream id of the audio stream and only the first 5 bits are
/drivers/gpu/drm/amd/display/dc/dce/
Ddce_audio.c33 #define DCE_AUD(audio)\ argument
34 container_of(audio, struct dce_audio, base)
52 read_indirect_azalia_reg(audio, IX_REG(reg_name))
55 write_indirect_azalia_reg(audio, IX_REG(reg_name), value)
57 static void write_indirect_azalia_reg(struct audio *audio, in write_indirect_azalia_reg() argument
61 struct dce_audio *aud = DCE_AUD(audio); in write_indirect_azalia_reg()
75 static uint32_t read_indirect_azalia_reg(struct audio *audio, uint32_t reg_index) in read_indirect_azalia_reg() argument
77 struct dce_audio *aud = DCE_AUD(audio); in read_indirect_azalia_reg()
296 struct audio *audio, in set_high_bit_rate_capable() argument
313 struct audio *audio, in set_video_latency() argument
[all …]
Ddce_audio.h139 struct audio base;
145 struct audio *dce_audio_create(
153 struct audio *dce60_audio_create(
161 void dce_aud_destroy(struct audio **audio);
163 void dce_aud_hw_init(struct audio *audio);
165 void dce_aud_az_enable(struct audio *audio);
166 void dce_aud_az_disable(struct audio *audio);
168 void dce_aud_az_configure(struct audio *audio,
173 void dce_aud_wall_dto_setup(struct audio *audio,
/drivers/gpu/drm/amd/display/dc/inc/hw/
Daudio.h31 struct audio;
35 bool (*endpoint_valid)(struct audio *audio);
37 void (*hw_init)(struct audio *audio);
39 void (*az_enable)(struct audio *audio);
41 void (*az_disable)(struct audio *audio);
43 void (*az_configure)(struct audio *audio,
48 void (*wall_dto_setup)(struct audio *audio,
53 void (*destroy)(struct audio **audio);
56 struct audio { struct
/drivers/gpu/drm/msm/hdmi/
Dhdmi_audio.c76 struct hdmi_audio *audio = &hdmi->audio; in msm_hdmi_audio_update() local
77 struct hdmi_audio_infoframe *info = &audio->infoframe; in msm_hdmi_audio_update()
79 bool enabled = audio->enabled; in msm_hdmi_audio_update()
85 audio->enabled, info->channels, info->channel_allocation, in msm_hdmi_audio_update()
86 info->level_shift_value, info->downmix_inhibit, audio->rate); in msm_hdmi_audio_update()
118 n = arcs->lut[audio->rate].n; in msm_hdmi_audio_update()
119 cts = arcs->lut[audio->rate].cts; in msm_hdmi_audio_update()
121 if ((MSM_HDMI_SAMPLE_RATE_192KHZ == audio->rate) || in msm_hdmi_audio_update()
122 (MSM_HDMI_SAMPLE_RATE_176_4KHZ == audio->rate)) { in msm_hdmi_audio_update()
125 } else if ((MSM_HDMI_SAMPLE_RATE_96KHZ == audio->rate) || in msm_hdmi_audio_update()
[all …]
/drivers/gpu/drm/msm/dp/
Ddp_audio.c125 static void dp_audio_stream_sdp(struct dp_audio_private *audio) in dp_audio_stream_sdp() argument
127 struct dp_catalog *catalog = audio->catalog; in dp_audio_stream_sdp()
161 new_value = audio->channels - 1; in dp_audio_stream_sdp()
172 static void dp_audio_timestamp_sdp(struct dp_audio_private *audio) in dp_audio_timestamp_sdp() argument
174 struct dp_catalog *catalog = audio->catalog; in dp_audio_timestamp_sdp()
218 static void dp_audio_infoframe_sdp(struct dp_audio_private *audio) in dp_audio_infoframe_sdp() argument
220 struct dp_catalog *catalog = audio->catalog; in dp_audio_infoframe_sdp()
264 static void dp_audio_copy_management_sdp(struct dp_audio_private *audio) in dp_audio_copy_management_sdp() argument
266 struct dp_catalog *catalog = audio->catalog; in dp_audio_copy_management_sdp()
310 static void dp_audio_isrc_sdp(struct dp_audio_private *audio) in dp_audio_isrc_sdp() argument
[all …]
/drivers/gpu/drm/bridge/synopsys/
Ddw-hdmi-i2s-audio.c22 static inline void hdmi_write(struct dw_hdmi_i2s_audio_data *audio, in hdmi_write() argument
25 struct dw_hdmi *hdmi = audio->hdmi; in hdmi_write()
27 audio->write(hdmi, val, offset); in hdmi_write()
30 static inline u8 hdmi_read(struct dw_hdmi_i2s_audio_data *audio, int offset) in hdmi_read() argument
32 struct dw_hdmi *hdmi = audio->hdmi; in hdmi_read()
34 return audio->read(hdmi, offset); in hdmi_read()
41 struct dw_hdmi_i2s_audio_data *audio = data; in dw_hdmi_i2s_hw_params() local
42 struct dw_hdmi *hdmi = audio->hdmi; in dw_hdmi_i2s_hw_params()
54 hdmi_write(audio, HDMI_AUD_CONF0_SW_RESET, HDMI_AUD_CONF0); in dw_hdmi_i2s_hw_params()
55 hdmi_write(audio, (u8)~HDMI_MC_SWRSTZ_I2SSWRST_REQ, HDMI_MC_SWRSTZ); in dw_hdmi_i2s_hw_params()
[all …]
/drivers/ps3/
Dps3av_cmd.c666 void ps3av_cmd_set_audio_mode(struct ps3av_pkt_audio_mode *audio, u32 avport, in ps3av_cmd_set_audio_mode() argument
682 memset(audio, 0, sizeof(*audio)); in ps3av_cmd_set_audio_mode()
683 ps3av_set_hdr(PS3AV_CID_AUDIO_MODE, sizeof(*audio), &audio->send_hdr); in ps3av_cmd_set_audio_mode()
685 audio->avport = (u8) avport; in ps3av_cmd_set_audio_mode()
686 audio->mask = 0x0FFF; /* XXX set all */ in ps3av_cmd_set_audio_mode()
687 audio->audio_num_of_ch = ch; in ps3av_cmd_set_audio_mode()
688 audio->audio_fs = fs; in ps3av_cmd_set_audio_mode()
689 audio->audio_word_bits = word_bits; in ps3av_cmd_set_audio_mode()
690 audio->audio_format = format; in ps3av_cmd_set_audio_mode()
691 audio->audio_source = source; in ps3av_cmd_set_audio_mode()
[all …]
/drivers/staging/greybus/
DMakefile30 gb-audio-module-y := audio_module.o audio_topology.o
31 gb-audio-codec-y := audio_codec.o audio_helper.o
32 gb-audio-gb-y := audio_gb.o
33 gb-audio-apbridgea-y := audio_apbridgea.o
34 gb-audio-manager-y := audio_manager.o audio_manager_module.o
43 obj-$(CONFIG_GREYBUS_AUDIO_APB_CODEC) += gb-audio-codec.o
44 obj-$(CONFIG_GREYBUS_AUDIO_APB_CODEC) += gb-audio-module.o
45 obj-$(CONFIG_GREYBUS_AUDIO) += gb-audio-gb.o
46 obj-$(CONFIG_GREYBUS_AUDIO) += gb-audio-apbridgea.o
47 obj-$(CONFIG_GREYBUS_AUDIO) += gb-audio-manager.o
/drivers/media/pci/saa7134/
Dsaa7134-tvaudio.c240 struct saa7134_tvaudio *audio, in tvaudio_setmode() argument
255 note, audio->name, in tvaudio_setmode()
256 audio->carr1 / 1000, audio->carr1 % 1000, in tvaudio_setmode()
257 audio->carr2 / 1000, audio->carr2 % 1000, in tvaudio_setmode()
264 tvaudio_setcarrier(dev,audio->carr1,audio->carr2); in tvaudio_setmode()
266 switch (audio->mode) { in tvaudio_setmode()
366 static int tvaudio_getstereo(struct saa7134_dev *dev, struct saa7134_tvaudio *audio) in tvaudio_getstereo() argument
371 switch (audio->mode) { in tvaudio_getstereo()
421 static int tvaudio_setstereo(struct saa7134_dev *dev, struct saa7134_tvaudio *audio, in tvaudio_setstereo() argument
440 switch (audio->mode) { in tvaudio_setstereo()
[all …]
/drivers/media/usb/go7007/
Ds2250-board.c122 struct i2c_client *audio; member
431 write_reg(state->audio, 0x08, 0x02); /* Line In */ in s2250_s_audio_routing()
434 write_reg(state->audio, 0x08, 0x04); /* Mic */ in s2250_s_audio_routing()
437 write_reg(state->audio, 0x08, 0x05); /* Mic Boost */ in s2250_s_audio_routing()
490 .audio = &s2250_audio_ops,
500 struct i2c_client *audio; in s2250_probe() local
509 audio = i2c_new_dummy_device(adapter, TLV320_ADDRESS >> 1); in s2250_probe()
510 if (IS_ERR(audio)) in s2250_probe()
511 return PTR_ERR(audio); in s2250_probe()
515 i2c_unregister_device(audio); in s2250_probe()
[all …]
/drivers/gpu/drm/rockchip/
Dcdn-dp-reg.c784 int cdn_dp_audio_stop(struct cdn_dp_device *dp, struct audio_info *audio) in cdn_dp_audio_stop() argument
811 if (audio->format == AFMT_SPDIF) in cdn_dp_audio_stop()
829 struct audio_info *audio) in cdn_dp_audio_config_i2s() argument
834 if (audio->channels == 2) { in cdn_dp_audio_config_i2s()
841 } else if (audio->channels == 4) { in cdn_dp_audio_config_i2s()
849 val = MAX_NUM_CH(audio->channels); in cdn_dp_audio_config_i2s()
850 val |= NUM_OF_I2S_PORTS(audio->channels); in cdn_dp_audio_config_i2s()
855 if (audio->sample_width == 16) in cdn_dp_audio_config_i2s()
857 else if (audio->sample_width == 24) in cdn_dp_audio_config_i2s()
862 val |= AUDIO_CH_NUM(audio->channels); in cdn_dp_audio_config_i2s()
[all …]
/drivers/gpu/drm/bridge/
Dsii902x.c182 } audio; member
576 ret = clk_prepare_enable(sii902x->audio.mclk); in sii902x_audio_hw_params()
582 if (sii902x->audio.mclk) { in sii902x_audio_hw_params()
583 mclk_rate = clk_get_rate(sii902x->audio.mclk); in sii902x_audio_hw_params()
604 for (i = 0; i < ARRAY_SIZE(sii902x->audio.i2s_fifo_sequence) && in sii902x_audio_hw_params()
605 sii902x->audio.i2s_fifo_sequence[i]; i++) in sii902x_audio_hw_params()
608 sii902x->audio.i2s_fifo_sequence[i]); in sii902x_audio_hw_params()
655 clk_disable_unprepare(sii902x->audio.mclk); in sii902x_audio_hw_params()
674 clk_disable_unprepare(sii902x->audio.mclk); in sii902x_audio_shutdown()
785 sii902x->audio.i2s_fifo_sequence[i] |= audio_fifo_id[i] | in sii902x_audio_codec_init()
[all …]

12345678910