From b1df213042ef14c24b6d370e5fe16c681508af8b Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 30 Aug 2007 21:36:25 +0000 Subject: Fix use of = instead of == to compare audio mode. --- audio/pcm_bluetooth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'audio/pcm_bluetooth.c') diff --git a/audio/pcm_bluetooth.c b/audio/pcm_bluetooth.c index 9fed93a8..b99f4ccd 100644 --- a/audio/pcm_bluetooth.c +++ b/audio/pcm_bluetooth.c @@ -788,7 +788,7 @@ static int bluetooth_a2dp_hw_constraint(snd_pcm_ioplug_t *io) return err; /* supported channels */ - channels = cfg.mode = CFG_MODE_MONO ? 1 : 2; + channels = cfg.mode == CFG_MODE_MONO ? 1 : 2; err = snd_pcm_ioplug_set_param_minmax(io, SND_PCM_IOPLUG_HW_CHANNELS, channels, channels); if (err < 0) -- cgit