mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
alsa: use debug types instead of custom function
This commit is contained in:
parent
e8fcaa5157
commit
9c02a1df17
1 changed files with 2 additions and 22 deletions
|
|
@ -227,7 +227,6 @@ static inline bool is_following(struct impl *this);
|
|||
static int do_start(struct impl *this);
|
||||
static void do_stop(struct impl *this);
|
||||
static int write_queued_output_buffers(struct impl *this);
|
||||
static const char * spa_command_to_string(const struct spa_command *command);
|
||||
|
||||
/* Node and port functions */
|
||||
|
||||
|
|
@ -1051,26 +1050,6 @@ again:
|
|||
}
|
||||
|
||||
|
||||
static const char * spa_command_to_string(const struct spa_command *command)
|
||||
{
|
||||
switch (SPA_NODE_COMMAND_ID(command)) {
|
||||
case SPA_NODE_COMMAND_Suspend: return "Suspend";
|
||||
case SPA_NODE_COMMAND_Pause: return "Pause";
|
||||
case SPA_NODE_COMMAND_Start: return "Start";
|
||||
case SPA_NODE_COMMAND_Enable: return "Enable";
|
||||
case SPA_NODE_COMMAND_Disable: return "Disable";
|
||||
case SPA_NODE_COMMAND_Flush: return "Flush";
|
||||
case SPA_NODE_COMMAND_Drain: return "Drain";
|
||||
case SPA_NODE_COMMAND_Marker: return "Marker";
|
||||
case SPA_NODE_COMMAND_ParamBegin: return "ParamBegin";
|
||||
case SPA_NODE_COMMAND_ParamEnd: return "ParamEnd";
|
||||
case SPA_NODE_COMMAND_RequestProcess: return "RequestProcess";
|
||||
default: return "<unknown>";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Node and port functions */
|
||||
|
||||
static const struct spa_dict_item node_info_items[] = {
|
||||
|
|
@ -1341,7 +1320,8 @@ static int impl_node_send_command(void *object, const struct spa_command *comman
|
|||
spa_return_val_if_fail(this != NULL, -EINVAL);
|
||||
spa_return_val_if_fail(command != NULL, -EINVAL);
|
||||
|
||||
spa_log_debug(this->log, "%p: got new command: %s", this, spa_command_to_string(command));
|
||||
spa_log_debug(this->log, "%p: got new command: %s", this,
|
||||
spa_debug_type_find_name(spa_type_node_command_id, SPA_NODE_COMMAND_ID(command)));
|
||||
|
||||
switch (SPA_NODE_COMMAND_ID(command)) {
|
||||
case SPA_NODE_COMMAND_ParamBegin:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue