Public bug reported:

[ Impact ]

 * The MediaTek MT8391-EVK platform lacks ALSA UCM configuration files,
   preventing proper audio device management through PulseAudio/PipeWire.

 * Without UCM, users cannot use standard audio controls for device
   switching, and jack detection for headphones/headset doesn't work.

 * This adds UCM configuration files (backported from upstream v1.2.15.3)
   that enable proper audio device enumeration, jack detection, and
   automatic device switching for MT8391-EVK hardware.

[ Test Plan ]

 * Hardware required: MediaTek MT8391-EVK (e.g., Genio 720 EVK)

 * Verify UCM configuration loads:
   1. Install updated alsa-ucm-conf package
   2. Run: alsaucm listcards
   3. Confirm MT8391-EVK is detected

 * Verify PipeWire device enumeration:
   1. Run: wpctl status
   2. Confirm these devices appear:
      - Sinks: "I2S output", "PCM output", "Earphone speaker + Lineout speaker"
      - Sources: "I2S input", "PCM input", "Digital microphone", 
                 "Analog microphone + Earphone microphone"

 * Test audio playback:
   1. Play audio through speakers
   2. Plug in headphones and verify automatic switching
   3. Verify audio plays through headphones

 * Test audio recording:
   1. Record from microphone and verify it works

 * Regression test on non-MT8391 hardware:
   1. Install on another system (PC/laptop)
   2. Verify existing audio still works
   3. Check no UCM errors in logs

[ Where problems could occur ]

 * This only adds new UCM configuration files for MT8391-EVK. No existing
   files are modified.

 * Possible issues (impact limited to MT8391-EVK hardware only):
   - Incorrect ALSA control names could prevent audio from working
   - Jack detection might fail if control names don't match the kernel driver
   - Speaker and headphones could play simultaneously if conflicts not handled

 * On non-MT8391 hardware: No impact expected. UCM files are only loaded
   when MT8391-EVK card is detected. This is purely additive configuration
   data, not executable code.

 * Minimal regression risk: Based on upstream commit in production since
   Sep 2025, follows established MediaTek EVK patterns.

[ Other Info ]

 * Upstream: Commit 0d40e081dce2371fd4d37c8f184fd5be4b144601
   - PR: https://github.com/alsa-project/alsa-ucm-conf/pull/607
   - Author: Zoran Zhan <[email protected]>
   - Released: alsa-ucm-conf v1.2.15.3 (Sep 2025)

 * Follows same pattern as mt8370-evk, mt8390-evk, mt8395-evk UCM configs
   already in the package.

 * Files added: 4 new UCM configuration files (185 lines total)
   - ucm2/MediaTek/mt8391-evk/HiFi.conf
   - ucm2/MediaTek/mt8391-evk/init.conf
   - ucm2/MediaTek/mt8391-evk/mt8391-evk.conf
   - ucm2/conf.d/mt8391-evk/mt8391-evk.conf (symlink)

 * Target releases:
   - Noble: 1.2.10-1ubuntu5.9 → 1.2.10-1ubuntu5.10
   - Questing: 1.2.12-1ubuntu2.2 → 1.2.12-1ubuntu2.3

** Affects: alsa-ucm-conf (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: genio mediatek noble patch questing

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2139651

Title:
  [SRU] Add ALSA UCM support for MediaTek MT8391-EVK platform

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/alsa-ucm-conf/+bug/2139651/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to