ALSA: hda: Set fifo_size for both playback and capture streams
authorTakashi Iwai <tiwai@suse.de>
Mon, 12 Aug 2019 16:01:47 +0000 (18:01 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 12 Aug 2019 16:01:47 +0000 (18:01 +0200)
commit7da20788d3ff59506aebd946d8a424f01f2c1c66
treeebebf848ede28a7ee23c5353d9709cee32547dac
parenta2ef03fe617a8365fb7794531b11ba587509a9b9
ALSA: hda: Set fifo_size for both playback and capture streams

Currently we set hdac_stream.fifo_size field only for the playback
stream by some odd reason I forgot, while this field isn't referred in
any places.  Actually this fifo_size field would have been required in
the position report correction for VIA chipset, but due to the lack of
the fifo_size set for capture streams, snd-hda-intel driver fetches
the register by itself.

This patch straightens and simplifies the code by setting the
fifo_size field for both playback and capture streams, and use it in
the HD-audio controller driver.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/hda/hdac_stream.c
sound/pci/hda/hda_intel.c