mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
alsa: improve debug
This commit is contained in:
parent
935093e4a2
commit
7b756c9090
1 changed files with 2 additions and 2 deletions
|
|
@ -2319,7 +2319,7 @@ static int do_prepare(struct state *state)
|
|||
static inline int do_drop(struct state *state)
|
||||
{
|
||||
int res;
|
||||
spa_log_debug(state->log, "%p: snd_pcm_drop %u", state, state->linked);
|
||||
spa_log_debug(state->log, "%p: snd_pcm_drop linked:%u", state, state->linked);
|
||||
if (!state->linked && (res = snd_pcm_drop(state->hndl)) < 0) {
|
||||
spa_log_error(state->log, "%s: snd_pcm_drop: %s",
|
||||
state->name, snd_strerror(res));
|
||||
|
|
@ -2332,7 +2332,7 @@ static inline int do_start(struct state *state)
|
|||
{
|
||||
int res;
|
||||
if (SPA_UNLIKELY(!state->alsa_started)) {
|
||||
spa_log_debug(state->log, "%p: snd_pcm_start %u", state, state->linked);
|
||||
spa_log_debug(state->log, "%p: snd_pcm_start linked:%u", state, state->linked);
|
||||
if (!state->linked && (res = snd_pcm_start(state->hndl)) < 0) {
|
||||
spa_log_error(state->log, "%s: snd_pcm_start: %s",
|
||||
state->name, snd_strerror(res));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue