]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
fix queue-3.10/alsa-hdspm-constrain-periods-to-2-on-older-cards.patch
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Mar 2015 18:19:56 +0000 (10:19 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Mar 2015 18:19:56 +0000 (10:19 -0800)
queue-3.10/alsa-hdspm-constrain-periods-to-2-on-older-cards.patch

index 3d9fd4025ab8fb33a02a9fe537ce6ab9d1da3ba0..34a65a282ae3f3f0097e6e01d2e6fddcbbe7f98c 100644 (file)
@@ -25,13 +25,20 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 
 --- a/sound/pci/rme9652/hdspm.c
 +++ b/sound/pci/rme9652/hdspm.c
-@@ -5863,6 +5863,12 @@ static int snd_hdspm_capture_open(struct
+@@ -5789,6 +5789,9 @@ static int snd_hdspm_playback_open(struc
                snd_pcm_hw_constraint_minmax(runtime,
                                             SNDRV_PCM_HW_PARAM_PERIOD_SIZE,
                                             64, 8192);
 +              snd_pcm_hw_constraint_minmax(runtime,
 +                                           SNDRV_PCM_HW_PARAM_PERIODS,
 +                                           2, 2);
+               break;
+       }
+@@ -5863,6 +5866,9 @@ static int snd_hdspm_capture_open(struct
+               snd_pcm_hw_constraint_minmax(runtime,
+                                            SNDRV_PCM_HW_PARAM_PERIOD_SIZE,
+                                            64, 8192);
 +              snd_pcm_hw_constraint_minmax(runtime,
 +                                           SNDRV_PCM_HW_PARAM_PERIODS,
 +                                           2, 2);