/sound/pci/lx6464es/ |
D | lx_core.c | 223 static void lx_message_init(struct lx_rmh *rmh, enum cmd_mb_opcodes cmd) in lx_message_init() argument 227 rmh->cmd[0] = dsp_commands[cmd].dcCodeOp; in lx_message_init() 228 rmh->cmd_len = dsp_commands[cmd].dcCmdLength; in lx_message_init() 229 rmh->stat_len = dsp_commands[cmd].dcStatusLength; in lx_message_init() 230 rmh->dsp_stat = dsp_commands[cmd].dcStatusType; in lx_message_init() 231 rmh->cmd_idx = cmd; in lx_message_init() 232 memset(&rmh->cmd[1], 0, (REG_CRM_NUMBER - 1) * sizeof(u32)); in lx_message_init() 235 memset(rmh->stat, 0, REG_CRM_NUMBER * sizeof(u32)); in lx_message_init() 238 rmh->cmd_idx = cmd; in lx_message_init() 244 static void lx_message_dump(struct lx_rmh *rmh) in lx_message_dump() argument [all …]
|
D | lx6464es.h | 87 struct lx_rmh rmh; member
|
/sound/pci/pcxhr/ |
D | pcxhr_hwdep.c | 45 struct pcxhr_rmh rmh; in pcxhr_init_board() local 58 pcxhr_init_rmh(&rmh, CMD_SUPPORTED); 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() 66 if (((rmh.stat[0] >> (2 * FIELD_SIZE)) & MASK_FIRST_FIELD) < in pcxhr_init_board() 70 if ((rmh.stat[1] & 0x5F) < card_streams) in pcxhr_init_board() 73 if (((rmh.stat[1] >> 7) & 0x5F) < PCXHR_PLAYBACK_STREAMS) in pcxhr_init_board() 77 rmh.stat[2], rmh.stat[3]); in pcxhr_init_board() 79 pcxhr_init_rmh(&rmh, CMD_VERSION); in pcxhr_init_board() 81 rmh.cmd[0] |= mgr->firmware_num; in pcxhr_init_board() [all …]
|
D | pcxhr.c | 252 struct pcxhr_rmh rmh; in pcxhr_get_clock_reg() local 280 pcxhr_init_rmh(&rmh, CMD_ACCESS_IO_WRITE); in pcxhr_get_clock_reg() 281 rmh.cmd[0] |= IO_NUM_REG_GENCLK; in pcxhr_get_clock_reg() 282 rmh.cmd[1] = pllreg & MASK_DSP_WORD; in pcxhr_get_clock_reg() 283 rmh.cmd[2] = pllreg >> 24; in pcxhr_get_clock_reg() 284 rmh.cmd_len = 3; in pcxhr_get_clock_reg() 285 err = pcxhr_send_msg(mgr, &rmh); in pcxhr_get_clock_reg() 326 struct pcxhr_rmh rmh; in pcxhr_sub_set_clock() local 341 pcxhr_init_rmh(&rmh, CMD_ACCESS_IO_WRITE); /* mute outputs */ in pcxhr_sub_set_clock() 342 rmh.cmd[0] |= IO_NUM_REG_MUTE_OUT; in pcxhr_sub_set_clock() [all …]
|
D | pcxhr_mixer.c | 56 struct pcxhr_rmh rmh; in pcxhr_update_analog_audio_level() local 58 pcxhr_init_rmh(&rmh, CMD_ACCESS_IO_WRITE); in pcxhr_update_analog_audio_level() 60 rmh.cmd[0] |= IO_NUM_REG_IN_ANA_LEVEL; in pcxhr_update_analog_audio_level() 61 rmh.cmd[2] = chip->analog_capture_volume[channel]; in pcxhr_update_analog_audio_level() 63 rmh.cmd[0] |= IO_NUM_REG_OUT_ANA_LEVEL; in pcxhr_update_analog_audio_level() 69 rmh.cmd[2] = PCXHR_LINE_PLAYBACK_LEVEL_MAX - vol; in pcxhr_update_analog_audio_level() 71 rmh.cmd[1] = 1 << ((2 * chip->chip_idx) + channel); /* audio mask */ in pcxhr_update_analog_audio_level() 72 rmh.cmd_len = 3; in pcxhr_update_analog_audio_level() 73 err = pcxhr_send_msg(chip->mgr, &rmh); in pcxhr_update_analog_audio_level() 262 struct pcxhr_rmh rmh; in pcxhr_update_playback_stream_level() local [all …]
|
D | pcxhr_core.c | 545 static int pcxhr_read_rmh_status(struct pcxhr_mgr *mgr, struct pcxhr_rmh *rmh) in pcxhr_read_rmh_status() argument 554 if (rmh->stat_len < PCXHR_SIZE_MAX_STATUS) in pcxhr_read_rmh_status() 556 else max_stat_len = rmh->stat_len; in pcxhr_read_rmh_status() 558 for (i = 0; i < rmh->stat_len; i++) { in pcxhr_read_rmh_status() 577 if (rmh->dsp_stat != RMH_SSIZE_FIXED) { in pcxhr_read_rmh_status() 578 if (rmh->dsp_stat == RMH_SSIZE_ARG) { in pcxhr_read_rmh_status() 579 rmh->stat_len = (data & 0x0000ff) + 1; in pcxhr_read_rmh_status() 583 rmh->stat_len = 1; in pcxhr_read_rmh_status() 587 rmh->stat_len++; in pcxhr_read_rmh_status() 594 if (rmh->cmd_idx < CMD_LAST_INDEX) in pcxhr_read_rmh_status() [all …]
|
D | pcxhr_core.h | 96 void pcxhr_init_rmh(struct pcxhr_rmh *rmh, int cmd); 98 void pcxhr_set_pipe_cmd_params(struct pcxhr_rmh* rmh, int capture, unsigned int param1, 106 int pcxhr_send_msg(struct pcxhr_mgr *mgr, struct pcxhr_rmh *rmh);
|
/sound/drivers/vx/ |
D | vx_pcm.c | 105 static int vx_set_differed_time(struct vx_core *chip, struct vx_rmh *rmh, in vx_set_differed_time() argument 113 rmh->Cmd[0] |= DSP_DIFFERED_COMMAND_MASK; in vx_set_differed_time() 116 vx_set_pcx_time(chip, &pipe->pcx_time, &rmh->Cmd[1]); in vx_set_differed_time() 120 rmh->Cmd[1] |= NOTIFY_MASK_TIME_HIGH ; in vx_set_differed_time() 124 rmh->Cmd[1] |= MULTIPLE_MASK_TIME_HIGH; in vx_set_differed_time() 128 rmh->Cmd[1] |= STREAM_MASK_TIME_HIGH; in vx_set_differed_time() 130 rmh->LgCmd += 2; in vx_set_differed_time() 142 struct vx_rmh rmh; in vx_set_stream_format() local 144 vx_init_rmh(&rmh, pipe->is_capture ? in vx_set_stream_format() 146 rmh.Cmd[0] |= pipe->number << FIELD_SIZE; in vx_set_stream_format() [all …]
|
D | vx_core.c | 160 static int vx_read_status(struct vx_core *chip, struct vx_rmh *rmh) in vx_read_status() argument 165 if (rmh->DspStat == RMH_SSIZE_FIXED && rmh->LgStat == 0) in vx_read_status() 181 switch (rmh->DspStat) { in vx_read_status() 184 rmh->Stat[0] = val & 0xffff00; in vx_read_status() 185 rmh->LgStat = size + 1; in vx_read_status() 189 rmh->Stat[0] = val; in vx_read_status() 196 rmh->LgStat = size + 1; in vx_read_status() 200 size = rmh->LgStat; in vx_read_status() 201 rmh->Stat[0] = val; /* Val is the status 1st word */ in vx_read_status() 220 rmh->Stat[i] = vx_inb(chip, RXH) << 16; in vx_read_status() [all …]
|
D | vx_cmd.h | 212 void vx_init_rmh(struct vx_rmh *rmh, unsigned int cmd); 221 static inline void vx_set_pipe_cmd_params(struct vx_rmh *rmh, int is_capture, in vx_set_pipe_cmd_params() argument 225 rmh->Cmd[0] |= COMMAND_RECORD_MASK; in vx_set_pipe_cmd_params() 226 rmh->Cmd[0] |= (((u32)param1 & MASK_FIRST_FIELD) << FIELD_SIZE) & MASK_DSP_WORD; in vx_set_pipe_cmd_params() 229 rmh->Cmd[0] |= ((u32)param2 & MASK_FIRST_FIELD) & MASK_DSP_WORD; in vx_set_pipe_cmd_params() 239 static inline void vx_set_stream_cmd_params(struct vx_rmh *rmh, int is_capture, int pipe) in vx_set_stream_cmd_params() argument 242 rmh->Cmd[0] |= COMMAND_RECORD_MASK; in vx_set_stream_cmd_params() 243 rmh->Cmd[0] |= (((u32)pipe & MASK_FIRST_FIELD) << FIELD_SIZE) & MASK_DSP_WORD; in vx_set_stream_cmd_params()
|
D | vx_mixer.c | 220 struct vx_rmh rmh; in vx_adjust_audio_level() local 225 vx_init_rmh(&rmh, CMD_AUDIO_LEVEL_ADJUST); in vx_adjust_audio_level() 227 rmh.Cmd[0] |= COMMAND_RECORD_MASK; in vx_adjust_audio_level() 229 rmh.Cmd[1] = 1 << audio; in vx_adjust_audio_level() 230 rmh.Cmd[2] = 0; in vx_adjust_audio_level() 232 rmh.Cmd[0] |= VALID_AUDIO_IO_DIGITAL_LEVEL; in vx_adjust_audio_level() 233 rmh.Cmd[2] |= info->level; in vx_adjust_audio_level() 236 rmh.Cmd[0] |= VALID_AUDIO_IO_MONITORING_LEVEL; in vx_adjust_audio_level() 237 rmh.Cmd[2] |= ((unsigned int)info->monitor_level << 10); in vx_adjust_audio_level() 240 rmh.Cmd[0] |= VALID_AUDIO_IO_MUTE_LEVEL; in vx_adjust_audio_level() [all …]
|
D | vx_uer.c | 35 struct vx_rmh rmh; in vx_modify_board_clock() local 37 vx_init_rmh(&rmh, CMD_MODIFY_CLOCK); in vx_modify_board_clock() 40 rmh.Cmd[0] |= CMD_MODIFY_CLOCK_S_BIT; in vx_modify_board_clock() 41 return vx_send_msg(chip, &rmh); in vx_modify_board_clock() 49 struct vx_rmh rmh; in vx_modify_board_inputs() local 51 vx_init_rmh(&rmh, CMD_RESYNC_AUDIO_INPUTS); in vx_modify_board_inputs() 52 rmh.Cmd[0] |= 1 << 0; /* reference: AUDIO 0 */ in vx_modify_board_inputs() 53 return vx_send_msg(chip, &rmh); in vx_modify_board_inputs()
|
D | vx_cmd.c | 100 void vx_init_rmh(struct vx_rmh *rmh, unsigned int cmd) in vx_init_rmh() argument 104 rmh->LgCmd = vx_dsp_cmds[cmd].length; in vx_init_rmh() 105 rmh->LgStat = vx_dsp_cmds[cmd].st_length; in vx_init_rmh() 106 rmh->DspStat = vx_dsp_cmds[cmd].st_type; in vx_init_rmh() 107 rmh->Cmd[0] = vx_dsp_cmds[cmd].opcode; in vx_init_rmh()
|