diff --git a/audio/avctp.c b/audio/avctp.c
index 0db6031..5f6a677 100644
--- a/audio/avctp.c
+++ b/audio/avctp.c
struct iovec iov[2];
int sk, err = 0;
- DBG("transaction %u", transaction);
-
iov[0].iov_base = control->buffer;
iov[0].iov_len = sizeof(*avctp) + sizeof(*avc);
iov[1].iov_base = operands;
goto failed;
avctp = (struct avctp_header *) buf;
- DBG("AVCTP transaction %u, packet type %u, C/R %u, IPID %u, "
- "PID 0x%04X",
- avctp->transaction, avctp->packet_type,
- avctp->cr, avctp->ipid, ntohs(avctp->pid));
if (avctp->packet_type != AVCTP_PACKET_SINGLE)
goto failed;
if (ret <= 0)
goto failed;
- DBG("Got %d bytes of data for AVCTP session %p", ret, session);
-
if ((unsigned int) ret < sizeof(struct avctp_header)) {
error("Too small AVCTP packet");
goto failed;
avctp = (struct avctp_header *) buf;
- DBG("AVCTP transaction %u, packet type %u, C/R %u, IPID %u, "
- "PID 0x%04X",
- avctp->transaction, avctp->packet_type,
- avctp->cr, avctp->ipid, ntohs(avctp->pid));
-
ret -= sizeof(struct avctp_header);
if ((unsigned int) ret < sizeof(struct avc_header)) {
error("Too small AVCTP packet");
operands = buf + sizeof(struct avctp_header) + sizeof(struct avc_header);
operand_count = ret;
- DBG("AV/C %s 0x%01X, subunit_type 0x%02X, subunit_id 0x%01X, "
- "opcode 0x%02X, %d operands",
- avctp->cr ? "response" : "command",
- avc->code, avc->subunit_type, avc->subunit_id,
- avc->opcode, operand_count);
-
if (avctp->cr == AVCTP_RESPONSE) {
control_response(control, avctp, avc, operands, operand_count);
return TRUE;
uint8_t subunit, uint8_t *operands,
size_t operand_count, void *user_data)
{
- DBG("code %u", code);
-
if (code != AVC_CTYPE_ACCEPTED)
return FALSE;
{
uint8_t operands[2];
- DBG("");
-
/* Button pressed */
operands[0] = op & 0x7f;
operands[1] = 0;