Skip to contentSkip to conversation

audio/alsa: fix comparison between requested and obtained formats

PATCH In review Serge Ziryukin 2 participants 2 messages Apr 21, 2010 – May 18, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 audio/alsa: fix comparison between requested and obtained formats

Trivial patch which uses aud_to_alsafmt to fix comparison between alsa and internal audio pcm format enum.

---
 audio/alsaaudio.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
audio/alsaaudio.c +1 -1
index 88344ff..d784476 100644
@@ -666,7 +666,7 @@ static int alsa_open (int in, struct alsa_params_req *req,
     *handlep = handle;
 
     if (conf.verbose &&
-        (obt->fmt != req->fmt ||
+        (aud_to_alsafmt(obt->fmt) != req->fmt ||
          obt->nchannels != req->nchannels ||
          obt->freq != req->freq)) {
         dolog ("Audio parameters for %s\n", typ);
Signature · 1 line
1.7.0.5
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Serge Ziryukin

Trivial patch which uses aud_to_alsafmt to fix comparison between alsa and internal audio pcm format enum.

---
 audio/alsaaudio.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Quoted 16 lines
audio/alsaaudio.c +1 -1
index 88344ff..d784476 100644
@@ -666,7 +666,7 @@ static int alsa_open (int in, struct alsa_params_req *req,
     *handlep = handle;
 
     if (conf.verbose &&
-        (obt->fmt != req->fmt ||
+        (aud_to_alsafmt(obt->fmt) != req->fmt ||
          obt->nchannels != req->nchannels ||
          obt->freq != req->freq)) {
         dolog ("Audio parameters for %s\n", typ);
Signature · 1 line
1.7.0.5
Signature · 2 lines
Aurelien Jarno                          GPG: 1024D/F1BCDB73
[email protected]                 http://www.aurel32.net