Lines Matching refs:rmh
32 struct pcxhr_rmh rmh; in pcxhr_init_board() local
45 pcxhr_init_rmh(&rmh, CMD_SUPPORTED); 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()
53 if (((rmh.stat[0] >> (2 * FIELD_SIZE)) & MASK_FIRST_FIELD) < in pcxhr_init_board()
57 if ((rmh.stat[1] & 0x5F) < card_streams) in pcxhr_init_board()
60 if (((rmh.stat[1] >> 7) & 0x5F) < PCXHR_PLAYBACK_STREAMS) in pcxhr_init_board()
64 rmh.stat[2], rmh.stat[3]); in pcxhr_init_board()
66 pcxhr_init_rmh(&rmh, CMD_VERSION); in pcxhr_init_board()
68 rmh.cmd[0] |= mgr->firmware_num; in pcxhr_init_board()
70 rmh.cmd[1] = (1<<23) + mgr->granularity; in pcxhr_init_board()
71 rmh.cmd_len = 2; in pcxhr_init_board()
72 err = pcxhr_send_msg(mgr, &rmh); in pcxhr_init_board()
76 "PCXHR DSP version is %d.%d.%d\n", (rmh.stat[0]>>16)&0xff, in pcxhr_init_board()
77 (rmh.stat[0]>>8)&0xff, rmh.stat[0]&0xff); in pcxhr_init_board()
78 mgr->dsp_version = rmh.stat[0]; in pcxhr_init_board()
90 struct pcxhr_rmh rmh; in pcxhr_sub_init() local
93 pcxhr_init_rmh(&rmh, CMD_ACCESS_IO_READ); in pcxhr_sub_init()
94 rmh.cmd[0] |= IO_NUM_REG_STATUS; in pcxhr_sub_init()
95 rmh.cmd[1] = REG_STATUS_OPTIONS; in pcxhr_sub_init()
96 rmh.cmd_len = 2; in pcxhr_sub_init()
97 err = pcxhr_send_msg(mgr, &rmh); in pcxhr_sub_init()
101 if ((rmh.stat[1] & REG_STATUS_OPT_DAUGHTER_MASK) == in pcxhr_sub_init()
111 pcxhr_init_rmh(&rmh, CMD_ACCESS_IO_READ); in pcxhr_sub_init()
112 rmh.cmd[0] |= IO_NUM_REG_MUTE_OUT; in pcxhr_sub_init()
114 rmh.cmd[1] = 1; /* unmute digital plugs */ in pcxhr_sub_init()
115 rmh.cmd_len = 2; in pcxhr_sub_init()
117 err = pcxhr_send_msg(mgr, &rmh); in pcxhr_sub_init()
123 struct pcxhr_rmh rmh; in pcxhr_reset_board() local
129 pcxhr_init_rmh(&rmh, CMD_ACCESS_IO_WRITE); in pcxhr_reset_board()
130 rmh.cmd[0] |= IO_NUM_REG_MUTE_OUT; in pcxhr_reset_board()
131 pcxhr_send_msg(mgr, &rmh); in pcxhr_reset_board()
159 struct pcxhr_rmh rmh; in pcxhr_dsp_allocate_pipe() local
176 pcxhr_init_rmh(&rmh, CMD_RES_PIPE); in pcxhr_dsp_allocate_pipe()
177 pcxhr_set_pipe_cmd_params(&rmh, is_capture, pin, in pcxhr_dsp_allocate_pipe()
179 rmh.cmd[1] |= 0x020000; /* add P_PCM_ONLY_MASK */ in pcxhr_dsp_allocate_pipe()
182 rmh.cmd[rmh.cmd_len++] = (audio_count == 1) ? 0x01 : 0x03; in pcxhr_dsp_allocate_pipe()
184 err = pcxhr_send_msg(mgr, &rmh); in pcxhr_dsp_allocate_pipe()
201 struct pcxhr_rmh rmh;
216 pcxhr_init_rmh(&rmh, CMD_FREE_PIPE);
217 pcxhr_set_pipe_cmd_params(&rmh, pipe->is_capture, pipe->first_audio,
219 err = pcxhr_send_msg(mgr, &rmh);