diff options
author | Cezary Rojewski <cezary.rojewski@intel.com> | 2023-10-06 13:28:56 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2023-10-06 15:30:19 +0300 |
commit | 956b610c4974c99a55c95542c4fca6025dee579f (patch) | |
tree | 216e1ab22ab9cb34e65905dadeabfe6472fd051b /sound/pci/hda | |
parent | f93dc90c2e8ed664985e366aa6459ac83cdab236 (diff) | |
download | linux-956b610c4974c99a55c95542c4fca6025dee579f.tar.xz |
ALSA: hda: Fix stream fifo_size initialization
SDxFIFOS register indicates the fifo size directly. There is no need to
modify the value after reading the register.
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20231006102857.749143-3-cezary.rojewski@intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda')
-rw-r--r-- | sound/pci/hda/hda_intel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index ca765ac4765f..e19274fd990d 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c @@ -806,7 +806,7 @@ static unsigned int azx_via_get_position(struct azx *chip, mod_dma_pos = le32_to_cpu(*azx_dev->core.posbuf); mod_dma_pos %= azx_dev->core.period_bytes; - fifo_size = azx_stream(azx_dev)->fifo_size - 1; + fifo_size = azx_stream(azx_dev)->fifo_size; if (azx_dev->insufficient) { /* Link position never gather than FIFO size */ |