]> git.alsa-project.org Git - alsa-lib.git/commitdiff
pcm: pass hw_params flags to slave
authorClemens Ladisch <clemens@ladisch.de>
Mon, 15 Nov 2010 09:33:35 +0000 (10:33 +0100)
committerClemens Ladisch <clemens@ladisch.de>
Mon, 15 Nov 2010 09:33:35 +0000 (10:33 +0100)
Fix required before interrupt disabling routines patch can be applied.
Without this fix, the interrupts are only disabled when directly
accessing hw devices.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@intel.com>
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
src/pcm/pcm_params.c

index 3a90bcd8a9653f57c91c47b4d875eaa9b7bb3ccf..b085d42dbc7ca941fee6dacbb7b3c341cb8764a1 100644 (file)
@@ -2126,6 +2126,7 @@ int _snd_pcm_hw_params_refine(snd_pcm_hw_params_t *params,
                        err = changed;
        }
        params->info &= src->info;
+       params->flags = src->flags; /* propagate all flags to slave */
        return err;
 }