ALSA: hda: avoid reset of sdo_limit
authorSameer Pujar <spujar@nvidia.com>
Wed, 19 Aug 2020 15:32:10 +0000 (21:02 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Aug 2020 09:48:57 +0000 (11:48 +0200)
commit44d8f487a7d688c268bf4aa6569d6b249271524d
treefa2ea4e63c967f6ef164a86bc8412fee0d009ef6
parent6a1624ca6229571cd985df3bd9d4d849fd263074
ALSA: hda: avoid reset of sdo_limit

commit b90b925fd52c75ee7531df739d850a1f7c58ef06 upstream.

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: 67ae482a59e9 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/hda/hdac_bus.c
sound/hda/hdac_controller.c