aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
authorAdrian Knoth <adi@drcomp.erfurt.thur.de>2013-08-19 11:20:30 -0400
committerTakashi Iwai <tiwai@suse.de>2013-08-19 14:08:57 -0400
commit17d2f00836cce9b1a24e65670ad78dbab275777b (patch)
tree2456e55eb419a4351ce2a66ca4a0a18483bc15e3 /sound/pci
parent74d779ab7c9f9024cfead259206e0e0b20ee37e4 (diff)
ALSA: hdspm - Fix default value in SNDRV_HDSPM_IOCTL_GET_LTC
Use enum hdspm_ltc_format's fps_30 (corresponds to 4) instead of 30, Other case branches return 1, 2 or 3 respectively, so 30 obviously is wrong. Since SNDRV_HDSPM_IOCTL_GET_LTC had never been working due to a copy&paste error in hdspm.h, this change doesn't break userspace. Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/rme9652/hdspm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/rme9652/hdspm.c b/sound/pci/rme9652/hdspm.c
index ec6335e2fda0..e4d76a6a7960 100644
--- a/sound/pci/rme9652/hdspm.c
+++ b/sound/pci/rme9652/hdspm.c
@@ -6311,7 +6311,7 @@ static int snd_hdspm_hwdep_ioctl(struct snd_hwdep *hw, struct file *file,
6311 ltc.format = fps_2997; 6311 ltc.format = fps_2997;
6312 break; 6312 break;
6313 default: 6313 default:
6314 ltc.format = 30; 6314 ltc.format = fps_30;
6315 break; 6315 break;
6316 } 6316 }
6317 if (i & HDSPM_TCO1_set_drop_frame_flag) { 6317 if (i & HDSPM_TCO1_set_drop_frame_flag) {