]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda: add member to store ratio for stripe control
authorSameer Pujar <spujar@nvidia.com>
Mon, 4 May 2020 08:16:15 +0000 (13:46 +0530)
committerTakashi Iwai <tiwai@suse.de>
Mon, 4 May 2020 09:51:23 +0000 (11:51 +0200)
commit16fb08ab7ed9292ee0a74245f79d6de9a1597b5f
tree516c3ff2664459e741b39e5ddd8d5411a4d71f0b
parenta6895f1a3b2945fe07adab6dce03c9f3cccb048e
ALSA: hda: add member to store ratio for stripe control

Stripe control programming is governed by following formula, which is
referenced from the HD Audio specification(Revision 1.0a).
  { ((num_channels * bits_per_sample) / number of SDOs) >= 8 }

Currently above is implemented in snd_hdac_get_stream_stripe_ctl().
This patch introduces a structure member to store the default factor
of '8'. If any HW wants to use a different value, this member can be
easily updated.

Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Link: https://lore.kernel.org/r/1588580176-2801-3-git-send-email-spujar@nvidia.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/hdaudio.h
sound/hda/hdac_controller.c
sound/hda/hdac_stream.c