Skip to content

Commit 6c17e9d

Browse files
mkumardtiwai
authored andcommitted
ASoC: hda/tegra: Set buffer alignment to 128 bytes
Set chip->align_buffer_size to 1 for Tegra platforms to make the buffer alignment to be multiple of 128 bytes. This fix is applied as gstreamer alsasink gets stuck with the default buffer-time and latency-time parameters with 4 byte buffer alignment. Signed-off-by: Mohan Kumar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent 80982c7 commit 6c17e9d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sound/pci/hda/hda_tegra.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,8 @@ static int hda_tegra_first_init(struct azx *chip, struct platform_device *pdev)
333333
gcap = azx_readw(chip, GCAP);
334334
dev_dbg(card->dev, "chipset global capabilities = 0x%x\n", gcap);
335335

336+
chip->align_buffer_size = 1;
337+
336338
/* read number of streams from GCAP register instead of using
337339
* hardcoded value
338340
*/

0 commit comments

Comments
 (0)