diff mbox

audio/alsa: fix comparison between requested and obtained formats

Message ID 20100421110126.GA30150@ftrvxmtrx
State New
Headers show

Commit Message

Serge Ziryukin April 21, 2010, 11:01 a.m. UTC
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(-)

Comments

malc April 21, 2010, 11:41 a.m. UTC | #1
On Wed, 21 Apr 2010, Serge Ziryukin wrote:

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

I've commited slightly different patch, thanks for spotting this.
diff mbox

Patch

diff --git a/audio/alsaaudio.c b/audio/alsaaudio.c
index 88344ff..d784476 100644
--- a/audio/alsaaudio.c
+++ b/audio/alsaaudio.c
@@ -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);