diff options
author | Cezary Rojewski <cezary.rojewski@intel.com> | 2023-10-06 12:28:56 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2023-10-06 14:30:19 +0200 |
commit | 956b610c4974c99a55c95542c4fca6025dee579f (patch) | |
tree | 216e1ab22ab9cb34e65905dadeabfe6472fd051b /sound/hda | |
parent | f93dc90c2e8ed664985e366aa6459ac83cdab236 (diff) | |
download | linux-956b610c4974c99a55c95542c4fca6025dee579f.tar.gz linux-956b610c4974c99a55c95542c4fca6025dee579f.tar.bz2 linux-956b610c4974c99a55c95542c4fca6025dee579f.zip |
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/hda')
-rw-r--r-- | sound/hda/hdac_stream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/hda/hdac_stream.c b/sound/hda/hdac_stream.c index a132108fba40..a784fd77cd4b 100644 --- a/sound/hda/hdac_stream.c +++ b/sound/hda/hdac_stream.c @@ -308,7 +308,7 @@ int snd_hdac_stream_setup(struct hdac_stream *azx_dev) if (ret) dev_dbg(bus->dev, "polling SD_FIFOSIZE 0x%04x failed: %d\n", AZX_REG_SD_FIFOSIZE, ret); - azx_dev->fifo_size = snd_hdac_stream_readw(azx_dev, SD_FIFOSIZE) + 1; + azx_dev->fifo_size = snd_hdac_stream_readw(azx_dev, SD_FIFOSIZE); /* when LPIB delay correction gives a small negative value, * we ignore it; currently set the threshold statically to |