Commit 2e0452f544758d798ba76016c00783f654b43fe3

Authored by Adrian Knoth
Committed by Takashi Iwai
1 parent b8812c55c5

ALSA: hdspm - Fix sync_in reporting on RME MADI cards

In contrast to AES32, MADI uses the first status register to report the
sync_in status.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

Showing 1 changed file with 5 additions and 0 deletions Side-by-side Diff

sound/pci/rme9652/hdspm.c
... ... @@ -3885,6 +3885,11 @@
3885 3885 break;
3886 3886  
3887 3887 case MADI:
  3888 + status = hdspm_read(hdspm, HDSPM_statusRegister);
  3889 + lock = (status & HDSPM_syncInLock) ? 1 : 0;
  3890 + sync = (status & HDSPM_syncInSync) ? 1 : 0;
  3891 + break;
  3892 +
3888 3893 case AES32:
3889 3894 status = hdspm_read(hdspm, HDSPM_statusRegister2);
3890 3895 lock = (status & HDSPM_syncInLock) ? 1 : 0;