Home
last modified time | relevance | path

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

12

/sound/pci/pcxhr/
Dpcxhr_hwdep.c38 static int pcxhr_sub_init(struct pcxhr_mgr *mgr);
42 static int pcxhr_init_board(struct pcxhr_mgr *mgr) in pcxhr_init_board() argument
49 if (mgr->mono_capture) in pcxhr_init_board()
50 card_streams = mgr->capture_chips * 2; in pcxhr_init_board()
52 card_streams = mgr->capture_chips; in pcxhr_init_board()
53 card_streams += mgr->playback_chips * PCXHR_PLAYBACK_STREAMS; in pcxhr_init_board()
56 pcxhr_enable_dsp(mgr); in pcxhr_init_board()
59 err = pcxhr_send_msg(mgr, &rmh); in pcxhr_init_board()
63 if ((rmh.stat[0] & MASK_FIRST_FIELD) < mgr->playback_chips * 2) in pcxhr_init_board()
67 mgr->capture_chips * 2) in pcxhr_init_board()
[all …]
Dpcxhr_core.c72 #define PCXHR_INPB(mgr,x) inb((mgr)->port[PCXHR_REG_TO_PORT(x)] + (x)) argument
73 #define PCXHR_INPL(mgr,x) inl((mgr)->port[PCXHR_REG_TO_PORT(x)] + (x)) argument
74 #define PCXHR_OUTPB(mgr,x,data) outb((data), (mgr)->port[PCXHR_REG_TO_PORT(x)] + (x)) argument
75 #define PCXHR_OUTPL(mgr,x,data) outl((data), (mgr)->port[PCXHR_REG_TO_PORT(x)] + (x)) argument
126 static int pcxhr_check_reg_bit(struct pcxhr_mgr *mgr, unsigned int reg, in pcxhr_check_reg_bit() argument
133 *read = PCXHR_INPB(mgr, reg); in pcxhr_check_reg_bit()
136 dev_dbg(&mgr->pci->dev, in pcxhr_check_reg_bit()
143 dev_err(&mgr->pci->dev, in pcxhr_check_reg_bit()
179 static int pcxhr_send_it_dsp(struct pcxhr_mgr *mgr, in pcxhr_send_it_dsp() argument
187 PCXHR_OUTPL(mgr, PCXHR_PLX_MBOX0, in pcxhr_send_it_dsp()
[all …]
Dpcxhr_mix22.c49 #define PCXHR_INPB(mgr, x) inb((mgr)->port[PCXHR_DSP] + (x)) argument
50 #define PCXHR_OUTPB(mgr, x, data) outb((data), (mgr)->port[PCXHR_DSP] + (x)) argument
219 static void hr222_config_akm(struct pcxhr_mgr *mgr, unsigned short data) in hr222_config_akm() argument
223 PCXHR_INPB(mgr, PCXHR_XLX_HIFREQ); in hr222_config_akm()
226 PCXHR_OUTPB(mgr, PCXHR_XLX_DATA, in hr222_config_akm()
231 PCXHR_INPB(mgr, PCXHR_XLX_RUER); in hr222_config_akm()
235 static int hr222_set_hw_playback_level(struct pcxhr_mgr *mgr, in hr222_set_hw_playback_level() argument
252 hr222_config_akm(mgr, cmd); in hr222_set_hw_playback_level()
257 static int hr222_set_hw_capture_level(struct pcxhr_mgr *mgr, in hr222_set_hw_capture_level() argument
264 if (!mgr->capture_chips) in hr222_set_hw_capture_level()
[all …]
Dpcxhr.c248 static int pcxhr_get_clock_reg(struct pcxhr_mgr *mgr, unsigned int rate, in pcxhr_get_clock_reg() argument
256 switch (mgr->use_clock_type) { in pcxhr_get_clock_reg()
285 err = pcxhr_send_msg(mgr, &rmh); in pcxhr_get_clock_reg()
287 dev_err(&mgr->pci->dev, in pcxhr_get_clock_reg()
321 static int pcxhr_sub_set_clock(struct pcxhr_mgr *mgr, in pcxhr_sub_set_clock() argument
329 err = pcxhr_get_clock_reg(mgr, rate, &val, &realfreq); in pcxhr_sub_set_clock()
340 if (mgr->codec_speed != speed) { in pcxhr_sub_set_clock()
343 if (DSP_EXT_CMD_SET(mgr)) { in pcxhr_sub_set_clock()
347 err = pcxhr_send_msg(mgr, &rmh); in pcxhr_sub_set_clock()
355 err = pcxhr_send_msg(mgr, &rmh); in pcxhr_sub_set_clock()
[all …]
Dpcxhr_mixer.c73 err = pcxhr_send_msg(chip->mgr, &rmh); in pcxhr_update_analog_audio_level()
95 if (chip->mgr->is_hr_stereo) { in pcxhr_analog_vol_info()
107 if (chip->mgr->is_hr_stereo) { in pcxhr_analog_vol_info()
126 mutex_lock(&chip->mgr->mixer_mutex); in pcxhr_analog_vol_get()
134 mutex_unlock(&chip->mgr->mixer_mutex); in pcxhr_analog_vol_get()
145 mutex_lock(&chip->mgr->mixer_mutex); in pcxhr_analog_vol_put()
153 if (chip->mgr->is_hr_stereo) { in pcxhr_analog_vol_put()
163 if (chip->mgr->is_hr_stereo) { in pcxhr_analog_vol_put()
176 if (chip->mgr->is_hr_stereo) in pcxhr_analog_vol_put()
184 mutex_unlock(&chip->mgr->mixer_mutex); in pcxhr_analog_vol_put()
[all …]
Dpcxhr_core.h30 void pcxhr_reset_xilinx_com(struct pcxhr_mgr *mgr);
31 void pcxhr_reset_dsp(struct pcxhr_mgr *mgr);
32 void pcxhr_enable_dsp(struct pcxhr_mgr *mgr);
33 int pcxhr_load_xilinx_binary(struct pcxhr_mgr *mgr, const struct firmware *xilinx, int second);
34 int pcxhr_load_eeprom_binary(struct pcxhr_mgr *mgr, const struct firmware *eeprom);
35 int pcxhr_load_boot_binary(struct pcxhr_mgr *mgr, const struct firmware *boot);
36 int pcxhr_load_dsp_binary(struct pcxhr_mgr *mgr, const struct firmware *dsp);
106 int pcxhr_send_msg(struct pcxhr_mgr *mgr, struct pcxhr_rmh *rmh);
151 int pcxhr_set_pipe_state(struct pcxhr_mgr *mgr, int playback_mask, int capture_mask, int start);
153 int pcxhr_write_io_num_reg_cont(struct pcxhr_mgr *mgr, unsigned int mask,
Dpcxhr_mix22.h28 int hr222_sub_init(struct pcxhr_mgr *mgr);
29 int hr222_sub_set_clock(struct pcxhr_mgr *mgr, unsigned int rate,
31 int hr222_get_external_clock(struct pcxhr_mgr *mgr,
35 int hr222_read_gpio(struct pcxhr_mgr *mgr, int is_gpi, int *value);
36 int hr222_write_gpo(struct pcxhr_mgr *mgr, int value);
37 int hr222_manage_timecode(struct pcxhr_mgr *mgr, int enable);
Dpcxhr_hwdep.h37 int pcxhr_setup_firmware(struct pcxhr_mgr *mgr);
38 void pcxhr_reset_board(struct pcxhr_mgr *mgr);
Dpcxhr.h169 struct pcxhr_mgr *mgr; member
208 int pcxhr_set_clock(struct pcxhr_mgr *mgr, unsigned int rate);
209 int pcxhr_get_external_clock(struct pcxhr_mgr *mgr,
Dpcxhr_mixer.h27 int pcxhr_create_mixer(struct pcxhr_mgr *mgr);
/sound/pci/mixart/
Dmixart_core.c49 static int retrieve_msg_frame(struct mixart_mgr *mgr, u32 *msg_frame) in retrieve_msg_frame() argument
54 tailptr = readl_be(MIXART_MEM(mgr, MSG_OUTBOUND_POST_TAIL)); in retrieve_msg_frame()
55 headptr = readl_be(MIXART_MEM(mgr, MSG_OUTBOUND_POST_HEAD)); in retrieve_msg_frame()
65 *msg_frame = readl_be(MIXART_MEM(mgr, tailptr)); in retrieve_msg_frame()
71 writel_be(tailptr, MIXART_MEM(mgr, MSG_OUTBOUND_POST_TAIL)); in retrieve_msg_frame()
76 static int get_msg(struct mixart_mgr *mgr, struct mixart_msg *resp, in get_msg() argument
89 …size = readl_be(MIXART_MEM(mgr, msg_frame_address)); /* size of descriptor +… in get_msg()
90 resp->message_id = readl_be(MIXART_MEM(mgr, msg_frame_address + 4)); /* dwMessageID */ in get_msg()
91 resp->uid.object_id = readl_be(MIXART_MEM(mgr, msg_frame_address + 8)); /* uidDest */ in get_msg()
92 resp->uid.desc = readl_be(MIXART_MEM(mgr, msg_frame_address + 12)); /* */ in get_msg()
[all …]
Dmixart_hwdep.c46 static int mixart_wait_nice_for_register_value(struct mixart_mgr *mgr, in mixart_wait_nice_for_register_value() argument
58 read = readl_be( MIXART_MEM( mgr, offset )); in mixart_wait_nice_for_register_value()
102 static int mixart_load_elf(struct mixart_mgr *mgr, const struct firmware *dsp ) in mixart_load_elf() argument
123 memcpy_toio( MIXART_MEM( mgr, be32_to_cpu(elf_programheader.p_vaddr)), in mixart_load_elf()
141 static int mixart_enum_connectors(struct mixart_mgr *mgr) in mixart_enum_connectors() argument
167 err = snd_mixart_send_msg(mgr, &request, sizeof(*connector), connector); in mixart_enum_connectors()
169 dev_err(&mgr->pci->dev, in mixart_enum_connectors()
179 pipe = &mgr->chip[k/2]->pipe_out_ana; in mixart_enum_connectors()
181 pipe = &mgr->chip[(k-MIXART_FIRST_DIG_AUDIO_ID)/2]->pipe_out_dig; in mixart_enum_connectors()
197 err = snd_mixart_send_msg(mgr, &request, sizeof(*audio_info), audio_info); in mixart_enum_connectors()
[all …]
Dmixart.c72 static int mixart_set_pipe_state(struct mixart_mgr *mgr, in mixart_set_pipe_state() argument
90 dev_err(&mgr->pci->dev, in mixart_set_pipe_state()
104 err = snd_mixart_send_msg_wait_notif(mgr, &request, system_msg_uid); in mixart_set_pipe_state()
106 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()
139 err = snd_mixart_send_msg(mgr, &request, sizeof(group_state_resp), &group_state_resp); in mixart_set_pipe_state()
141 dev_err(&mgr->pci->dev, in mixart_set_pipe_state()
154 err = snd_mixart_send_msg(mgr, &request, sizeof(stat), &stat); in mixart_set_pipe_state()
156 dev_err(&mgr->pci->dev, in mixart_set_pipe_state()
[all …]
Dmixart_mixer.c330 err = snd_mixart_send_msg(chip->mgr, &request, sizeof(resp), &resp); in mixart_update_analog_audio_level()
360 mutex_lock(&chip->mgr->mixer_mutex); in mixart_analog_vol_get()
368 mutex_unlock(&chip->mgr->mixer_mutex); in mixart_analog_vol_get()
378 mutex_lock(&chip->mgr->mixer_mutex); in mixart_analog_vol_put()
401 mutex_unlock(&chip->mgr->mixer_mutex); in mixart_analog_vol_put()
425 mutex_lock(&chip->mgr->mixer_mutex); in mixart_audio_sw_get()
428 mutex_unlock(&chip->mgr->mixer_mutex); in mixart_audio_sw_get()
436 mutex_lock(&chip->mgr->mixer_mutex); in mixart_audio_sw_put()
447 mutex_unlock(&chip->mgr->mixer_mutex); in mixart_audio_sw_put()
765 err = snd_mixart_send_msg(chip->mgr, &request, sizeof(status), &status); in mixart_update_playback_stream_level()
[all …]
Dmixart_hwdep.h44 #define MIXART_MEM(mgr,x) ((mgr)->mem[0].virt + (x)) argument
45 #define MIXART_REG(mgr,x) ((mgr)->mem[1].virt + (x)) argument
153 int snd_mixart_setup_firmware(struct mixart_mgr *mgr);
Dmixart_core.h559 void snd_mixart_init_mailbox(struct mixart_mgr *mgr);
560 void snd_mixart_exit_mailbox(struct mixart_mgr *mgr);
562 int snd_mixart_send_msg(struct mixart_mgr *mgr, struct mixart_msg *request, int max_resp_size, voi…
563 int snd_mixart_send_msg_wait_notif(struct mixart_mgr *mgr, struct mixart_msg *request, u32 notif_e…
564 int snd_mixart_send_msg_nonblock(struct mixart_mgr *mgr, struct mixart_msg *request);
569 void snd_mixart_reset_board(struct mixart_mgr *mgr);
Dmixart.h171 struct mixart_mgr *mgr; member
222 int snd_mixart_kill_ref_pipe(struct mixart_mgr *mgr, struct mixart_pipe *pipe, int monitoring);
/sound/pci/ctxfi/
Dctdaio.c177 dao->mgr->imap_add(dao->mgr, entry); in dao_set_left_input()
206 dao->mgr->imap_add(dao->mgr, entry); in dao_set_right_input()
228 dao->mgr->imap_delete(dao->mgr, entry); in dao_clear_left_input()
232 dao->mgr->imap_delete(dao->mgr, entry); in dao_clear_left_input()
252 dao->mgr->imap_delete(dao->mgr, entry); in dao_clear_right_input()
256 dao->mgr->imap_delete(dao->mgr, entry); in dao_clear_right_input()
391 struct daio_mgr *mgr) in dao_rsc_init() argument
393 struct hw *hw = mgr->mgr.hw; in dao_rsc_init()
397 err = daio_rsc_init(&dao->daio, desc, mgr->mgr.hw); in dao_rsc_init()
407 dao->mgr = mgr; in dao_rsc_init()
[all …]
Dctresource.c77 int mgr_get_resource(struct rsc_mgr *mgr, unsigned int n, unsigned int *ridx) in mgr_get_resource() argument
81 if (n > mgr->avail) in mgr_get_resource()
84 err = get_resource(mgr->rscs, mgr->amount, n, ridx); in mgr_get_resource()
86 mgr->avail -= n; in mgr_get_resource()
91 int mgr_put_resource(struct rsc_mgr *mgr, unsigned int n, unsigned int idx) in mgr_put_resource() argument
93 put_resource(mgr->rscs, n, idx); in mgr_put_resource()
94 mgr->avail += n; in mgr_put_resource()
208 int rsc_mgr_init(struct rsc_mgr *mgr, enum RSCTYP type, in rsc_mgr_init() argument
213 mgr->type = NUM_RSCTYP; in rsc_mgr_init()
215 mgr->rscs = kzalloc(((amount + 8 - 1) / 8), GFP_KERNEL); in rsc_mgr_init()
[all …]
Dctsrc.c361 const struct src_desc *desc, struct src_mgr *mgr) in src_rsc_init() argument
369 err = rsc_init(&p->rsc, idx + i, SRC, desc->msr, mgr->mgr.hw); in src_rsc_init()
378 mgr->src_enable(mgr, p); in src_rsc_init()
383 mgr->commit_write(mgr); in src_rsc_init()
389 mgr->src_disable(mgr, p); in src_rsc_init()
392 mgr->commit_write(mgr); in src_rsc_init()
396 static int src_rsc_uninit(struct src *src, struct src_mgr *mgr) in src_rsc_uninit() argument
403 mgr->src_disable(mgr, p); in src_rsc_uninit()
410 mgr->commit_write(mgr); in src_rsc_uninit()
416 get_src_rsc(struct src_mgr *mgr, const struct src_desc *desc, struct src **rsrc) in get_src_rsc() argument
[all …]
Dctamixer.c201 struct amixer_mgr *mgr) in amixer_rsc_init() argument
206 AMIXER, desc->msr, mgr->mgr.hw); in amixer_rsc_init()
231 static int get_amixer_rsc(struct amixer_mgr *mgr, in get_amixer_rsc() argument
250 spin_lock_irqsave(&mgr->mgr_lock, flags); in get_amixer_rsc()
252 err = mgr_get_resource(&mgr->mgr, 1, &idx); in get_amixer_rsc()
258 spin_unlock_irqrestore(&mgr->mgr_lock, flags); in get_amixer_rsc()
260 dev_err(mgr->card->dev, in get_amixer_rsc()
265 err = amixer_rsc_init(amixer, desc, mgr); in get_amixer_rsc()
274 spin_lock_irqsave(&mgr->mgr_lock, flags); in get_amixer_rsc()
276 mgr_put_resource(&mgr->mgr, 1, amixer->idx[i]); in get_amixer_rsc()
[all …]
Dctsrc.h88 struct rsc_mgr mgr; /* Basic resource manager info */ member
93 int (*get_src)(struct src_mgr *mgr,
96 int (*put_src)(struct src_mgr *mgr, struct src *src);
97 int (*src_enable_s)(struct src_mgr *mgr, struct src *src);
98 int (*src_enable)(struct src_mgr *mgr, struct src *src);
99 int (*src_disable)(struct src_mgr *mgr, struct src *src);
100 int (*commit_write)(struct src_mgr *mgr);
112 struct srcimp_mgr *mgr; member
127 struct rsc_mgr mgr; /* Basic resource manager info */ member
136 int (*get_srcimp)(struct srcimp_mgr *mgr,
[all …]
Dctdaio.h56 struct daio_mgr *mgr; member
101 struct rsc_mgr mgr; /* Basic resource manager info */ member
110 int (*get_daio)(struct daio_mgr *mgr,
113 int (*put_daio)(struct daio_mgr *mgr, struct daio *daio);
114 int (*daio_enable)(struct daio_mgr *mgr, struct daio *daio);
115 int (*daio_disable)(struct daio_mgr *mgr, struct daio *daio);
116 int (*imap_add)(struct daio_mgr *mgr, struct imapper *entry);
117 int (*imap_delete)(struct daio_mgr *mgr, struct imapper *entry);
118 int (*commit_write)(struct daio_mgr *mgr);
Dctamixer.h38 struct rsc_mgr mgr; /* Basic resource manager info */ member
43 int (*get_sum)(struct sum_mgr *mgr,
46 int (*put_sum)(struct sum_mgr *mgr, struct sum *sum);
83 struct rsc_mgr mgr; /* Basic resource manager info */ member
88 int (*get_amixer)(struct amixer_mgr *mgr,
92 int (*put_amixer)(struct amixer_mgr *mgr, struct amixer *amixer);
Dctresource.h67 int rsc_mgr_init(struct rsc_mgr *mgr, enum RSCTYP type,
69 int rsc_mgr_uninit(struct rsc_mgr *mgr);
70 int mgr_get_resource(struct rsc_mgr *mgr, unsigned int n, unsigned int *ridx);
71 int mgr_put_resource(struct rsc_mgr *mgr, unsigned int n, unsigned int idx);

12