diff options
author | Adrian Knoth <adi@drcomp.erfurt.thur.de> | 2013-07-05 05:28:03 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-07-05 08:51:12 -0400 |
commit | 1cb7dbf489f9985b7a117e34d00f20799adb138a (patch) | |
tree | 4d4e43af9883c74fd329198fd962e2c119344610 /sound/pci/rme9652 | |
parent | 3de9db264cef4bc984f928e08cccf36304f30d0a (diff) |
ALSA: hdspm - Fix S/PDIF Sync status and frequency on RME AIO
This is a left-over mistake from old code, the correct register offset is
provided in kcontrol->private_value, not in the index.
Cf. RayDAT case, where it has already been corrected.
Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/rme9652')
-rw-r--r-- | sound/pci/rme9652/hdspm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/pci/rme9652/hdspm.c b/sound/pci/rme9652/hdspm.c index ad416365dc68..06e69de0801e 100644 --- a/sound/pci/rme9652/hdspm.c +++ b/sound/pci/rme9652/hdspm.c | |||
@@ -2312,7 +2312,7 @@ static int snd_hdspm_get_autosync_sample_rate(struct snd_kcontrol *kcontrol, | |||
2312 | default: | 2312 | default: |
2313 | ucontrol->value.enumerated.item[0] = | 2313 | ucontrol->value.enumerated.item[0] = |
2314 | hdspm_get_s1_sample_rate(hdspm, | 2314 | hdspm_get_s1_sample_rate(hdspm, |
2315 | ucontrol->id.index-1); | 2315 | kcontrol->private_value-1); |
2316 | } | 2316 | } |
2317 | break; | 2317 | break; |
2318 | 2318 | ||
@@ -3930,7 +3930,8 @@ static int snd_hdspm_get_sync_check(struct snd_kcontrol *kcontrol, | |||
3930 | case 5: /* SYNC IN */ | 3930 | case 5: /* SYNC IN */ |
3931 | val = hdspm_sync_in_sync_check(hdspm); break; | 3931 | val = hdspm_sync_in_sync_check(hdspm); break; |
3932 | default: | 3932 | default: |
3933 | val = hdspm_s1_sync_check(hdspm, ucontrol->id.index-1); | 3933 | val = hdspm_s1_sync_check(hdspm, |
3934 | kcontrol->private_value-1); | ||
3934 | } | 3935 | } |
3935 | break; | 3936 | break; |
3936 | 3937 | ||