mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-07 13:30:07 -05:00
topology: fix the TPLG_DEBUG compilation
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
2947d83c13
commit
1482d1f254
3 changed files with 6 additions and 3 deletions
|
|
@ -129,7 +129,7 @@ int tplg_parse_channel(snd_tplg_t *tplg, snd_config_t *cfg,
|
|||
else if (strcmp(id, "shift") == 0)
|
||||
channel->shift = value;
|
||||
|
||||
tplg_dbg("\t\t%s = %s\n", id, value);
|
||||
tplg_dbg("\t\t%s = %d\n", id, value);
|
||||
}
|
||||
|
||||
tplg->channel_idx++;
|
||||
|
|
|
|||
|
|
@ -230,9 +230,11 @@ err:
|
|||
return ret;
|
||||
}
|
||||
|
||||
static void dump_priv_data(struct tplg_elem *elem)
|
||||
static void dump_priv_data(struct tplg_elem *elem ATTRIBUTE_UNUSED)
|
||||
{
|
||||
#ifdef TPLG_DEBUG
|
||||
struct snd_soc_tplg_private *priv = elem->data;
|
||||
unsigned char *p = (unsigned char *)priv->data;
|
||||
unsigned int i;
|
||||
|
||||
tplg_dbg(" elem size = %d, priv data size = %d\n",
|
||||
|
|
@ -246,6 +248,7 @@ static void dump_priv_data(struct tplg_elem *elem)
|
|||
}
|
||||
|
||||
tplg_dbg("\n\n");
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline int check_nibble(unsigned char c)
|
||||
|
|
|
|||
|
|
@ -881,7 +881,7 @@ int tplg_parse_pcm(snd_tplg_t *tplg, snd_config_t *cfg,
|
|||
|
||||
pcm->compress = ival;
|
||||
|
||||
tplg_dbg("\t%s: %s\n", id, val);
|
||||
tplg_dbg("\t%s: %d\n", id, ival);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue