Home
last modified time | relevance | path

Searched refs:mgr (Results 1 – 25 of 27) sorted by relevance

12

/sound/pci/pcxhr/
Dpcxhr_hwdep.c25 static int pcxhr_sub_init(struct pcxhr_mgr *mgr);
29 static int pcxhr_init_board(struct pcxhr_mgr *mgr) in pcxhr_init_board() argument
36 if (mgr->mono_capture) in pcxhr_init_board()
37 card_streams = mgr->capture_chips * 2; in pcxhr_init_board()
39 card_streams = mgr->capture_chips; in pcxhr_init_board()
40 card_streams += mgr->playback_chips * PCXHR_PLAYBACK_STREAMS; in pcxhr_init_board()
43 pcxhr_enable_dsp(mgr); in pcxhr_init_board()
46 err = pcxhr_send_msg(mgr, &rmh); in pcxhr_init_board()
50 if ((rmh.stat[0] & MASK_FIRST_FIELD) < mgr->playback_chips * 2) in pcxhr_init_board()
54 mgr->capture_chips * 2) in pcxhr_init_board()
[all …]
Dpcxhr_core.c59 #define PCXHR_INPB(mgr,x) inb((mgr)->port[PCXHR_REG_TO_PORT(x)] + (x)) argument
60 #define PCXHR_INPL(mgr,x) inl((mgr)->port[PCXHR_REG_TO_PORT(x)] + (x)) argument
61 #define PCXHR_OUTPB(mgr,x,data) outb((data), (mgr)->port[PCXHR_REG_TO_PORT(x)] + (x)) argument
62 #define PCXHR_OUTPL(mgr,x,data) outl((data), (mgr)->port[PCXHR_REG_TO_PORT(x)] + (x)) argument
113 static int pcxhr_check_reg_bit(struct pcxhr_mgr *mgr, unsigned int reg, in pcxhr_check_reg_bit() argument
120 *read = PCXHR_INPB(mgr, reg); in pcxhr_check_reg_bit()
123 dev_dbg(&mgr->pci->dev, in pcxhr_check_reg_bit()
130 dev_err(&mgr->pci->dev, in pcxhr_check_reg_bit()
166 static int pcxhr_send_it_dsp(struct pcxhr_mgr *mgr, in pcxhr_send_it_dsp() argument
174 PCXHR_OUTPL(mgr, PCXHR_PLX_MBOX0, in pcxhr_send_it_dsp()
[all …]
Dpcxhr_mix22.c36 #define PCXHR_INPB(mgr, x) inb((mgr)->port[PCXHR_DSP] + (x)) argument
37 #define PCXHR_OUTPB(mgr, x, data) outb((data), (mgr)->port[PCXHR_DSP] + (x)) argument
206 static void hr222_config_akm(struct pcxhr_mgr *mgr, unsigned short data) in hr222_config_akm() argument
210 PCXHR_INPB(mgr, PCXHR_XLX_HIFREQ); in hr222_config_akm()
213 PCXHR_OUTPB(mgr, PCXHR_XLX_DATA, in hr222_config_akm()
218 PCXHR_INPB(mgr, PCXHR_XLX_RUER); in hr222_config_akm()
222 static int hr222_set_hw_playback_level(struct pcxhr_mgr *mgr, in hr222_set_hw_playback_level() argument
239 hr222_config_akm(mgr, cmd); in hr222_set_hw_playback_level()
244 static int hr222_set_hw_capture_level(struct pcxhr_mgr *mgr, in hr222_set_hw_capture_level() argument
251 if (!mgr->capture_chips) in hr222_set_hw_capture_level()
[all …]
Dpcxhr.c235 static int pcxhr_get_clock_reg(struct pcxhr_mgr *mgr, unsigned int rate, in pcxhr_get_clock_reg() argument
243 switch (mgr->use_clock_type) { in pcxhr_get_clock_reg()
272 err = pcxhr_send_msg(mgr, &rmh); in pcxhr_get_clock_reg()
274 dev_err(&mgr->pci->dev, in pcxhr_get_clock_reg()
308 static int pcxhr_sub_set_clock(struct pcxhr_mgr *mgr, in pcxhr_sub_set_clock() argument
316 err = pcxhr_get_clock_reg(mgr, rate, &val, &realfreq); in pcxhr_sub_set_clock()
327 if (mgr->codec_speed != speed) { in pcxhr_sub_set_clock()
330 if (DSP_EXT_CMD_SET(mgr)) { in pcxhr_sub_set_clock()
334 err = pcxhr_send_msg(mgr, &rmh); in pcxhr_sub_set_clock()
342 err = pcxhr_send_msg(mgr, &rmh); in pcxhr_sub_set_clock()
[all …]
Dpcxhr_mixer.c60 err = pcxhr_send_msg(chip->mgr, &rmh); in pcxhr_update_analog_audio_level()
82 if (chip->mgr->is_hr_stereo) { in pcxhr_analog_vol_info()
94 if (chip->mgr->is_hr_stereo) { in pcxhr_analog_vol_info()
113 mutex_lock(&chip->mgr->mixer_mutex); in pcxhr_analog_vol_get()
121 mutex_unlock(&chip->mgr->mixer_mutex); in pcxhr_analog_vol_get()
132 mutex_lock(&chip->mgr->mixer_mutex); in pcxhr_analog_vol_put()
140 if (chip->mgr->is_hr_stereo) { in pcxhr_analog_vol_put()
150 if (chip->mgr->is_hr_stereo) { in pcxhr_analog_vol_put()
163 if (chip->mgr->is_hr_stereo) in pcxhr_analog_vol_put()
171 mutex_unlock(&chip->mgr->mixer_mutex); in pcxhr_analog_vol_put()
[all …]
Dpcxhr_core.h17 void pcxhr_reset_xilinx_com(struct pcxhr_mgr *mgr);
18 void pcxhr_reset_dsp(struct pcxhr_mgr *mgr);
19 void pcxhr_enable_dsp(struct pcxhr_mgr *mgr);
20 int pcxhr_load_xilinx_binary(struct pcxhr_mgr *mgr, const struct firmware *xilinx, int second);
21 int pcxhr_load_eeprom_binary(struct pcxhr_mgr *mgr, const struct firmware *eeprom);
22 int pcxhr_load_boot_binary(struct pcxhr_mgr *mgr, const struct firmware *boot);
23 int pcxhr_load_dsp_binary(struct pcxhr_mgr *mgr, const struct firmware *dsp);
93 int pcxhr_send_msg(struct pcxhr_mgr *mgr, struct pcxhr_rmh *rmh);
138 int pcxhr_set_pipe_state(struct pcxhr_mgr *mgr, int playback_mask, int capture_mask, int start);
140 int pcxhr_write_io_num_reg_cont(struct pcxhr_mgr *mgr, unsigned int mask,
Dpcxhr_mix22.h15 int hr222_sub_init(struct pcxhr_mgr *mgr);
16 int hr222_sub_set_clock(struct pcxhr_mgr *mgr, unsigned int rate,
18 int hr222_get_external_clock(struct pcxhr_mgr *mgr,
22 int hr222_read_gpio(struct pcxhr_mgr *mgr, int is_gpi, int *value);
23 int hr222_write_gpo(struct pcxhr_mgr *mgr, int value);
24 int hr222_manage_timecode(struct pcxhr_mgr *mgr, int enable);
Dpcxhr_hwdep.h24 int pcxhr_setup_firmware(struct pcxhr_mgr *mgr);
25 void pcxhr_reset_board(struct pcxhr_mgr *mgr);
Dpcxhr.h155 struct pcxhr_mgr *mgr; member
194 int pcxhr_set_clock(struct pcxhr_mgr *mgr, unsigned int rate);
195 int pcxhr_get_external_clock(struct pcxhr_mgr *mgr,
Dpcxhr_mixer.h14 int pcxhr_create_mixer(struct pcxhr_mgr *mgr);
/sound/pci/mixart/
Dmixart_core.c36 static int retrieve_msg_frame(struct mixart_mgr *mgr, u32 *msg_frame) in retrieve_msg_frame() argument
41 tailptr = readl_be(MIXART_MEM(mgr, MSG_OUTBOUND_POST_TAIL)); in retrieve_msg_frame()
42 headptr = readl_be(MIXART_MEM(mgr, MSG_OUTBOUND_POST_HEAD)); in retrieve_msg_frame()
52 *msg_frame = readl_be(MIXART_MEM(mgr, tailptr)); in retrieve_msg_frame()
58 writel_be(tailptr, MIXART_MEM(mgr, MSG_OUTBOUND_POST_TAIL)); in retrieve_msg_frame()
63 static int get_msg(struct mixart_mgr *mgr, struct mixart_msg *resp, in get_msg() argument
76 …size = readl_be(MIXART_MEM(mgr, msg_frame_address)); /* size of descriptor +… in get_msg()
77 resp->message_id = readl_be(MIXART_MEM(mgr, msg_frame_address + 4)); /* dwMessageID */ in get_msg()
78 resp->uid.object_id = readl_be(MIXART_MEM(mgr, msg_frame_address + 8)); /* uidDest */ in get_msg()
79 resp->uid.desc = readl_be(MIXART_MEM(mgr, msg_frame_address + 12)); /* */ in get_msg()
[all …]
Dmixart_hwdep.c33 static int mixart_wait_nice_for_register_value(struct mixart_mgr *mgr, in mixart_wait_nice_for_register_value() argument
45 read = readl_be( MIXART_MEM( mgr, offset )); in mixart_wait_nice_for_register_value()
89 static int mixart_load_elf(struct mixart_mgr *mgr, const struct firmware *dsp ) in mixart_load_elf() argument
110 memcpy_toio( MIXART_MEM( mgr, be32_to_cpu(elf_programheader.p_vaddr)), in mixart_load_elf()
128 static int mixart_enum_connectors(struct mixart_mgr *mgr) in mixart_enum_connectors() argument
154 err = snd_mixart_send_msg(mgr, &request, sizeof(*connector), connector); in mixart_enum_connectors()
156 dev_err(&mgr->pci->dev, in mixart_enum_connectors()
166 pipe = &mgr->chip[k/2]->pipe_out_ana; in mixart_enum_connectors()
168 pipe = &mgr->chip[(k-MIXART_FIRST_DIG_AUDIO_ID)/2]->pipe_out_dig; in mixart_enum_connectors()
184 err = snd_mixart_send_msg(mgr, &request, sizeof(*audio_info), audio_info); in mixart_enum_connectors()
[all …]
Dmixart.c59 static int mixart_set_pipe_state(struct mixart_mgr *mgr, in mixart_set_pipe_state() argument
77 dev_err(&mgr->pci->dev, in mixart_set_pipe_state()
91 err = snd_mixart_send_msg_wait_notif(mgr, &request, system_msg_uid); in mixart_set_pipe_state()
93 dev_err(&mgr->pci->dev, in mixart_set_pipe_state()
113 err = snd_mixart_send_msg(mgr, &request, sizeof(group_state_resp), &group_state_resp); in mixart_set_pipe_state()
115 dev_err(&mgr->pci->dev, in mixart_set_pipe_state()
126 err = snd_mixart_send_msg(mgr, &request, sizeof(group_state_resp), &group_state_resp); in mixart_set_pipe_state()
128 dev_err(&mgr->pci->dev, in mixart_set_pipe_state()
141 err = snd_mixart_send_msg(mgr, &request, sizeof(stat), &stat); in mixart_set_pipe_state()
143 dev_err(&mgr->pci->dev, in mixart_set_pipe_state()
[all …]
Dmixart_mixer.c317 err = snd_mixart_send_msg(chip->mgr, &request, sizeof(resp), &resp); in mixart_update_analog_audio_level()
347 mutex_lock(&chip->mgr->mixer_mutex); in mixart_analog_vol_get()
355 mutex_unlock(&chip->mgr->mixer_mutex); in mixart_analog_vol_get()
365 mutex_lock(&chip->mgr->mixer_mutex); in mixart_analog_vol_put()
388 mutex_unlock(&chip->mgr->mixer_mutex); in mixart_analog_vol_put()
412 mutex_lock(&chip->mgr->mixer_mutex); in mixart_audio_sw_get()
415 mutex_unlock(&chip->mgr->mixer_mutex); in mixart_audio_sw_get()
423 mutex_lock(&chip->mgr->mixer_mutex); in mixart_audio_sw_put()
434 mutex_unlock(&chip->mgr->mixer_mutex); in mixart_audio_sw_put()
752 err = snd_mixart_send_msg(chip->mgr, &request, sizeof(status), &status); in mixart_update_playback_stream_level()
[all …]
Dmixart_hwdep.h31 #define MIXART_MEM(mgr,x) ((mgr)->mem[0].virt + (x)) argument
32 #define MIXART_REG(mgr,x) ((mgr)->mem[1].virt + (x)) argument
140 int snd_mixart_setup_firmware(struct mixart_mgr *mgr);
Dmixart_core.h546 void snd_mixart_init_mailbox(struct mixart_mgr *mgr);
547 void snd_mixart_exit_mailbox(struct mixart_mgr *mgr);
549 int snd_mixart_send_msg(struct mixart_mgr *mgr, struct mixart_msg *request, int max_resp_size, voi…
550 int snd_mixart_send_msg_wait_notif(struct mixart_mgr *mgr, struct mixart_msg *request, u32 notif_e…
551 int snd_mixart_send_msg_nonblock(struct mixart_mgr *mgr, struct mixart_msg *request);
556 void snd_mixart_reset_board(struct mixart_mgr *mgr);
Dmixart.h154 struct mixart_mgr *mgr; member
205 int snd_mixart_kill_ref_pipe(struct mixart_mgr *mgr, struct mixart_pipe *pipe, int monitoring);
/sound/pci/ctxfi/
Dctdaio.c173 dao->mgr->imap_add(dao->mgr, entry); in dao_set_left_input()
202 dao->mgr->imap_add(dao->mgr, entry); in dao_set_right_input()
224 dao->mgr->imap_delete(dao->mgr, entry); in dao_clear_left_input()
228 dao->mgr->imap_delete(dao->mgr, entry); in dao_clear_left_input()
248 dao->mgr->imap_delete(dao->mgr, entry); in dao_clear_right_input()
252 dao->mgr->imap_delete(dao->mgr, entry); in dao_clear_right_input()
387 struct daio_mgr *mgr) in dao_rsc_init() argument
389 struct hw *hw = mgr->mgr.hw; in dao_rsc_init()
393 err = daio_rsc_init(&dao->daio, desc, mgr->mgr.hw); in dao_rsc_init()
404 dao->mgr = mgr; in dao_rsc_init()
[all …]
Dctresource.c73 int mgr_get_resource(struct rsc_mgr *mgr, unsigned int n, unsigned int *ridx) in mgr_get_resource() argument
77 if (n > mgr->avail) in mgr_get_resource()
80 err = get_resource(mgr->rscs, mgr->amount, n, ridx); in mgr_get_resource()
82 mgr->avail -= n; in mgr_get_resource()
87 int mgr_put_resource(struct rsc_mgr *mgr, unsigned int n, unsigned int idx) in mgr_put_resource() argument
89 put_resource(mgr->rscs, n, idx); in mgr_put_resource()
90 mgr->avail += n; in mgr_put_resource()
204 int rsc_mgr_init(struct rsc_mgr *mgr, enum RSCTYP type, in rsc_mgr_init() argument
209 mgr->type = NUM_RSCTYP; in rsc_mgr_init()
211 mgr->rscs = kzalloc(((amount + 8 - 1) / 8), GFP_KERNEL); in rsc_mgr_init()
[all …]
Dctsrc.c357 const struct src_desc *desc, struct src_mgr *mgr) in src_rsc_init() argument
365 err = rsc_init(&p->rsc, idx + i, SRC, desc->msr, mgr->mgr.hw); in src_rsc_init()
374 mgr->src_enable(mgr, p); in src_rsc_init()
379 mgr->commit_write(mgr); in src_rsc_init()
385 mgr->src_disable(mgr, p); in src_rsc_init()
388 mgr->commit_write(mgr); in src_rsc_init()
392 static int src_rsc_uninit(struct src *src, struct src_mgr *mgr) in src_rsc_uninit() argument
399 mgr->src_disable(mgr, p); in src_rsc_uninit()
406 mgr->commit_write(mgr); in src_rsc_uninit()
412 get_src_rsc(struct src_mgr *mgr, const struct src_desc *desc, struct src **rsrc) in get_src_rsc() argument
[all …]
Dctamixer.c197 struct amixer_mgr *mgr) in amixer_rsc_init() argument
202 AMIXER, desc->msr, mgr->mgr.hw); in amixer_rsc_init()
227 static int get_amixer_rsc(struct amixer_mgr *mgr, in get_amixer_rsc() argument
246 spin_lock_irqsave(&mgr->mgr_lock, flags); in get_amixer_rsc()
248 err = mgr_get_resource(&mgr->mgr, 1, &idx); in get_amixer_rsc()
254 spin_unlock_irqrestore(&mgr->mgr_lock, flags); in get_amixer_rsc()
256 dev_err(mgr->card->dev, in get_amixer_rsc()
261 err = amixer_rsc_init(amixer, desc, mgr); in get_amixer_rsc()
270 spin_lock_irqsave(&mgr->mgr_lock, flags); in get_amixer_rsc()
272 mgr_put_resource(&mgr->mgr, 1, amixer->idx[i]); in get_amixer_rsc()
[all …]
Dctsrc.h84 struct rsc_mgr mgr; /* Basic resource manager info */ member
89 int (*get_src)(struct src_mgr *mgr,
92 int (*put_src)(struct src_mgr *mgr, struct src *src);
93 int (*src_enable_s)(struct src_mgr *mgr, struct src *src);
94 int (*src_enable)(struct src_mgr *mgr, struct src *src);
95 int (*src_disable)(struct src_mgr *mgr, struct src *src);
96 int (*commit_write)(struct src_mgr *mgr);
108 struct srcimp_mgr *mgr; member
123 struct rsc_mgr mgr; /* Basic resource manager info */ member
132 int (*get_srcimp)(struct srcimp_mgr *mgr,
[all …]
Dctdaio.h52 struct daio_mgr *mgr; member
97 struct rsc_mgr mgr; /* Basic resource manager info */ member
106 int (*get_daio)(struct daio_mgr *mgr,
109 int (*put_daio)(struct daio_mgr *mgr, struct daio *daio);
110 int (*daio_enable)(struct daio_mgr *mgr, struct daio *daio);
111 int (*daio_disable)(struct daio_mgr *mgr, struct daio *daio);
112 int (*imap_add)(struct daio_mgr *mgr, struct imapper *entry);
113 int (*imap_delete)(struct daio_mgr *mgr, struct imapper *entry);
114 int (*commit_write)(struct daio_mgr *mgr);
Dctamixer.h34 struct rsc_mgr mgr; /* Basic resource manager info */ member
39 int (*get_sum)(struct sum_mgr *mgr,
42 int (*put_sum)(struct sum_mgr *mgr, struct sum *sum);
79 struct rsc_mgr mgr; /* Basic resource manager info */ member
84 int (*get_amixer)(struct amixer_mgr *mgr,
88 int (*put_amixer)(struct amixer_mgr *mgr, struct amixer *amixer);
Dctresource.h63 int rsc_mgr_init(struct rsc_mgr *mgr, enum RSCTYP type,
65 int rsc_mgr_uninit(struct rsc_mgr *mgr);
66 int mgr_get_resource(struct rsc_mgr *mgr, unsigned int n, unsigned int *ridx);
67 int mgr_put_resource(struct rsc_mgr *mgr, unsigned int n, unsigned int idx);

12