Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| mcimx6q-sbc [2017/10/03 13:17] – rpjday | mcimx6q-sbc [2017/10/04 18:34] (current) – [Headphone mixers] rpjday | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | === Overview === | + | ==== Overview |
| Figure out how to play both mono and stereo '' | Figure out how to play both mono and stereo '' | ||
| - | === System configuration === | + | Some ''/ |
| + | |||
| + | * ''/ | ||
| + | * ''/ | ||
| + | |||
| + | ==== System configuration | ||
| * fully-updated '' | * fully-updated '' | ||
| * '' | * '' | ||
| * '' | * '' | ||
| + | * '' | ||
| + | |||
| + | ==== Onboard .wav files ==== | ||
| + | |||
| + | Part of '' | ||
| + | |||
| + | < | ||
| + | Front_Center.wav | ||
| + | Front_Left.wav | ||
| + | </ | ||
| + | |||
| + | Also manually copied under ''/ | ||
| + | |||
| + | < | ||
| + | -rw-r--r-- | ||
| + | -rw-r--r-- | ||
| + | -rw-r--r-- | ||
| + | -rw-r--r-- | ||
| + | </ | ||
| + | |||
| - | === Relevant dmesg output related to WM8962 codec === | + | ==== Relevant dmesg output related to WM8962 codec ==== |
| < | < | ||
| Line 31: | Line 56: | ||
| </ | </ | ||
| - | === Playing sample | + | ==== Playing sample .wav files (both mono and stereo) ==== |
| - | Package `alsa-utils` comes with sample mono files: | + | With no other sound or CODEC configuration, |
| - | + | ||
| - | < | + | |
| - | Front_Center.wav | + | |
| - | Front_Left.wav | + | |
| - | Front_Right.wav | + | |
| - | Noise.wav | + | |
| - | Rear_Center.wav | + | |
| - | Rear_Left.wav | + | |
| - | Rear_Right.wav | + | |
| - | Side_Left.wav | + | |
| - | Side_Right.wav | + | |
| - | </ | + | |
| - | + | ||
| - | First, turn up headphone volume: | + | |
| < | < | ||
| Line 57: | Line 68: | ||
| </ | </ | ||
| - | and play all of them: | + | In loop, play all mono files in ''/ |
| < | < | ||
| Line 66: | Line 77: | ||
| </ | </ | ||
| - | All play only on the left channel, so this is clearly the default configuration for mono files. | + | For '' |
| - | === Playing stereo files === | ||
| - | Copy more sample | + | ==== Switching channels for mono files ==== |
| - | < | + | To verify we can send digital input to the right channel, the digital audio interface supports swapping the channels |
| - | -rw-r--r-- | + | |
| - | -rw-r--r-- | + | |
| - | -rw-r--r-- | + | |
| - | -rw-r--r-- | + | |
| - | </ | + | |
| - | + | ||
| - | Mono files play only on left, stereo files play on both. | + | |
| - | + | ||
| - | === Switching | + | |
| - | + | ||
| - | By default: | + | |
| < | < | ||
| Line 92: | Line 91: | ||
| </ | </ | ||
| - | Switch, so mono files play on right headphone: | + | Switch, so mono files play only on right headphone: |
| < | < | ||
| Line 101: | Line 100: | ||
| </ | </ | ||
| - | Turn off for now. | + | Verified that that works, so turn this off. All this verifies is that we can route digital input to the right headphone. |
| - | + | ==== Headphone mixers | |
| - | === Headphone mixers === | + | |
| By default, both HP channels bypass the HP mixers and get their output directly from the DAC: | By default, both HP channels bypass the HP mixers and get their output directly from the DAC: | ||
| Line 121: | Line 119: | ||
| </ | </ | ||
| - | For the left channel, | + | The above represents bypassing the headphone mixers on both channels. Experiment with just mono files and try to set the left channel |
| + | |||
| + | First, switch to have HPOUTL come from the mixer, not directly from DACL. This should kill the output to the left HP channel | ||
| + | |||
| + | < | ||
| + | # amixer cset name=" | ||
| + | numid=95,iface=MIXER, | ||
| + | ; type=ENUMERATED, | ||
| + | ; Item #0 ' | ||
| + | ; Item #1 ' | ||
| + | | ||
| + | </ | ||
| < | < | ||
| - | # amixer | + | # amixer |
| Simple mixer control ' | Simple mixer control ' | ||
| Capabilities: | Capabilities: | ||
| Line 131: | Line 140: | ||
| </ | </ | ||
| - | This effectively kills the left output | + | Indeed, playing mono files now produces no output |
| + | |||
| + | Now configure HPMIXL to get input from DACL: | ||
| < | < | ||
| - | # amixer | + | # amixer |
| Simple mixer control ' | Simple mixer control ' | ||
| Capabilities: | Capabilities: | ||
| Playback channels: Mono | Playback channels: Mono | ||
| - | Mono: Playback [off] | + | Mono: Playback [on] |
| </ | </ | ||
| + | |||
| + | But playing a mono wav file ... no sound. Not good. Oh, wait, must turn on headphone mixer: | ||
| < | < | ||
| - | # amixer | + | # amixer |
| - | Simple mixer control 'HPMIXL DACL',0 | + | Simple mixer control 'Headphone Mixer',0 |
| - | Capabilities: | + | Capabilities: |
| - | Playback channels: | + | Playback channels: |
| - | Mono: Playback [on] | + | Mono: |
| + | Front Left: Playback [on] | ||
| + | Front Right: Playback [on] | ||
| </ | </ | ||
| + | |||
| + | In short: | ||
| + | |||
| + | * switch '' | ||
| + | * enable '' | ||
| + | * enable " | ||
| + | |||
| + | ==== Playing mono .wav files on both headphone channels ==== | ||
| + | |||
| + | Seems simple enough: | ||
| + | |||
| + | * Switch '' | ||
| + | * Make sure " | ||
| + | * Enable '' | ||