wm8960: Add missing self reference for sample table.

Found by Ruff checking F821.

Signed-off-by: Angus Gratton <angus@redyak.com.au>
pull/714/head
Angus Gratton 2023-08-09 18:52:50 +10:00 zatwierdzone przez Damien George
rodzic 2d16f210b9
commit 1f3002b537
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -683,7 +683,7 @@ class WM8960:
)
self.regs[_ALC3] = (_ALC_MODE_MASK, mode << _ALC_MODE_SHIFT)
try:
rate = _alc_sample_rate_table[self.sample_rate]
rate = self._alc_sample_rate_table[self.sample_rate]
except:
rate = 0
self.regs[_ADDCTL3] = (_DACCTL3_ALCSR_MASK, rate)