Skip to content

Commit

Permalink
ALSA: hdspm - Fix S/PDIF Sync status and frequency on RME AIO
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
adiknoth authored and tiwai committed Jul 5, 2013
1 parent 3de9db2 commit 1cb7dbf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sound/pci/rme9652/hdspm.c
Original file line number Diff line number Diff line change
Expand Up @@ -2312,7 +2312,7 @@ static int snd_hdspm_get_autosync_sample_rate(struct snd_kcontrol *kcontrol,
default:
ucontrol->value.enumerated.item[0] =
hdspm_get_s1_sample_rate(hdspm,
ucontrol->id.index-1);
kcontrol->private_value-1);
}
break;

Expand Down Expand Up @@ -3930,7 +3930,8 @@ static int snd_hdspm_get_sync_check(struct snd_kcontrol *kcontrol,
case 5: /* SYNC IN */
val = hdspm_sync_in_sync_check(hdspm); break;
default:
val = hdspm_s1_sync_check(hdspm, ucontrol->id.index-1);
val = hdspm_s1_sync_check(hdspm,
kcontrol->private_value-1);
}
break;

Expand Down

0 comments on commit 1cb7dbf

Please sign in to comment.