Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: SOF: add mt8188 audio support

Merge series from Trevor Wu <trevor.wu@mediatek.com>:

This adds mt8188 audio support.

+60 -1
+60 -1
sound/soc/sof/mediatek/mt8186/mt8186.c
··· 594 594 .ops = &sof_mt8186_ops, 595 595 }; 596 596 597 + /* 598 + * DL2, DL3, UL4, UL5 are registered as SOF FE, so creating the corresponding 599 + * SOF BE to complete the pipeline. 600 + */ 601 + static struct snd_soc_dai_driver mt8188_dai[] = { 602 + { 603 + .name = "SOF_DL2", 604 + .playback = { 605 + .channels_min = 1, 606 + .channels_max = 2, 607 + }, 608 + }, 609 + { 610 + .name = "SOF_DL3", 611 + .playback = { 612 + .channels_min = 1, 613 + .channels_max = 2, 614 + }, 615 + }, 616 + { 617 + .name = "SOF_UL4", 618 + .capture = { 619 + .channels_min = 1, 620 + .channels_max = 2, 621 + }, 622 + }, 623 + { 624 + .name = "SOF_UL5", 625 + .capture = { 626 + .channels_min = 1, 627 + .channels_max = 2, 628 + }, 629 + }, 630 + }; 631 + 632 + /* mt8188 ops */ 633 + static struct snd_sof_dsp_ops sof_mt8188_ops; 634 + 635 + static int sof_mt8188_ops_init(struct snd_sof_dev *sdev) 636 + { 637 + /* common defaults */ 638 + memcpy(&sof_mt8188_ops, &sof_mt8186_ops, sizeof(sof_mt8188_ops)); 639 + 640 + sof_mt8188_ops.drv = mt8188_dai; 641 + sof_mt8188_ops.num_drv = ARRAY_SIZE(mt8188_dai); 642 + 643 + return 0; 644 + } 645 + 646 + static struct snd_sof_of_mach sof_mt8188_machs[] = { 647 + { 648 + .compatible = "mediatek,mt8188", 649 + .sof_tplg_filename = "sof-mt8188.tplg", 650 + }, 651 + {} 652 + }; 653 + 597 654 static const struct sof_dev_desc sof_of_mt8188_desc = { 655 + .of_machines = sof_mt8188_machs, 598 656 .ipc_supported_mask = BIT(SOF_IPC), 599 657 .ipc_default = SOF_IPC, 600 658 .default_fw_path = { ··· 665 607 [SOF_IPC] = "sof-mt8188.ri", 666 608 }, 667 609 .nocodec_tplg_filename = "sof-mt8188-nocodec.tplg", 668 - .ops = &sof_mt8186_ops, 610 + .ops = &sof_mt8188_ops, 611 + .ops_init = sof_mt8188_ops_init, 669 612 }; 670 613 671 614 static const struct of_device_id sof_of_mt8186_ids[] = {