From: Serge Ziryukin <ftrvxmtrx@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] audio/alsa: fix comparison between requested and obtained formats
Date: Wed, 21 Apr 2010 11:20:10 +0300 [thread overview]
Message-ID: <20100421082010.GA22649@ftrvxmtrx> (raw)
[-- Attachment #1: Type: text/plain, Size: 703 bytes --]
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(-)
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);
--
1.7.0.5
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
next reply other threads:[~2010-04-21 8:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-21 8:20 Serge Ziryukin [this message]
2010-05-18 18:40 ` [Qemu-devel] [PATCH] audio/alsa: fix comparison between requested and obtained formats Aurelien Jarno
-- strict thread matches above, loose matches on Subject: below --
2010-04-21 11:01 Serge Ziryukin
2010-04-21 11:41 ` malc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100421082010.GA22649@ftrvxmtrx \
--to=ftrvxmtrx@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).