diff options
author | Sameer Pujar <spujar@nvidia.com> | 2020-05-04 13:46:15 +0530 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-05-04 11:51:23 +0200 |
commit | 67ae482a59e951c346b5a55a756504bc58ce7cfa (patch) | |
tree | 516c3ff2664459e741b39e5ddd8d5411a4d71f0b /include/sound | |
parent | bb9b02a4589cee66cdb92eb9b7191d6557afdd6f (diff) |
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>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/hdaudio.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sound/hdaudio.h b/include/sound/hdaudio.h index affedc2801c4..d365297b3698 100644 --- a/include/sound/hdaudio.h +++ b/include/sound/hdaudio.h @@ -364,6 +364,9 @@ struct hdac_bus { /* link management */ struct list_head hlink_list; bool cmd_dma_state; + + /* factor used to derive STRIPE control value */ + unsigned int sdo_limit; }; int snd_hdac_bus_init(struct hdac_bus *bus, struct device *dev, |