| 523 | } |
| 524 | |
| 525 | void execute(vuart_av_thread &vuart, const void *pkt_buf) override { |
| 526 | const auto pkt = static_cast<const ps3av_pkt_add_signal_ctl *>(pkt_buf); |
| 527 | |
| 528 | if (vuart.get_reply_buf_free_size() < sizeof(ps3av_pkt_reply_hdr)) { |
| 529 | vuart.write_resp(pkt->hdr.cid, PS3AV_STATUS_BUFFER_OVERFLOW); |
| 530 | return; |
| 531 | } |
| 532 | |
| 533 | if (pkt->avport != static_cast<u16>(UartAudioAvport::AVMULTI_0)) { |
| 534 | vuart.write_resp(pkt->hdr.cid, PS3AV_STATUS_INVALID_PORT); |
| 535 | return; |
| 536 | } |
| 537 | |
| 538 | sys_uart.notice("[av_add_signal_ctl_cmd] signal_ctl=0x%04x", |
| 539 | pkt->signal_ctl); |
| 540 | |
| 541 | vuart.write_resp(pkt->hdr.cid, PS3AV_STATUS_SUCCESS); |
| 542 | } |
| 543 | }; |
| 544 | |
| 545 | struct av_set_cgms_wss_cmd : public ps3av_cmd { |
nothing calls this directly
no test coverage detected