]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda: avoid reset of sdo_limit
authorSameer Pujar <spujar@nvidia.com>
Wed, 19 Aug 2020 15:32:10 +0000 (21:02 +0530)
committerTakashi Iwai <tiwai@suse.de>
Wed, 19 Aug 2020 15:37:06 +0000 (17:37 +0200)
commit9ba77a317d63f0393ccc47c3f0686ab2eb6eb3f1
treeb98f35f4bd2e2b318c7750a694d073a214209f99
parent8db3925049a6584afc760fd26413083828a12f10
ALSA: hda: avoid reset of sdo_limit

By default 'sdo_limit' is initialized with a default value of '8'
as per spec. This is overridden in cases where a different value is
required. However this is getting reset when snd_hdac_bus_init_chip()
is called again, which happens during runtime PM cycle.

Avoid this reset by moving 'sdo_limit' setup to 'snd_hdac_bus_init()'
function which would be called only once.

Fixes: 16fb08ab7ed9 ("ALSA: hda: add member to store ratio for stripe control")
Cc: <stable@vger.kernel.org>
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Link: https://lore.kernel.org/r/1597851130-6765-1-git-send-email-spujar@nvidia.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/hda/hdac_bus.c
sound/hda/hdac_controller.c