summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZefan Li <lizefan@huawei.com>2015-06-17 22:19:30 +0800
committerZefan Li <lizefan@huawei.com>2015-06-17 22:19:30 +0800
commitcb1a6805418872e0c86b87b23858f18e3c765786 (patch)
tree4a38ed9b36e19cbe2da227564a4dc473155a93ab
parent2269a92ca93ad6419bff6bc1df81cf99738bf1f4 (diff)
downloadlinux-3.4.y-queue-cb1a6805418872e0c86b87b23858f18e3c765786.tar.gz
Fix alsa-hdspm-constrain-periods-to-2-on-older-cards.patch
-rw-r--r--patches/alsa-hdspm-constrain-periods-to-2-on-older-cards.patch9
1 files changed, 8 insertions, 1 deletions
diff --git a/patches/alsa-hdspm-constrain-periods-to-2-on-older-cards.patch b/patches/alsa-hdspm-constrain-periods-to-2-on-older-cards.patch
index 33db4fc..d0476d2 100644
--- a/patches/alsa-hdspm-constrain-periods-to-2-on-older-cards.patch
+++ b/patches/alsa-hdspm-constrain-periods-to-2-on-older-cards.patch
@@ -22,13 +22,20 @@ Signed-off-by: Zefan Li <lizefan@huawei.com>
--- a/sound/pci/rme9652/hdspm.c
+++ b/sound/pci/rme9652/hdspm.c
-@@ -6042,6 +6042,12 @@ static int snd_hdspm_capture_open(struct
+@@ -5968,6 +5968,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;
+ }
+
+@@ -6042,6 +6045,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);