Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
mcimx6q-sbc [2017/10/04 17:56] – [Playing sample .wav files] rpjdaymcimx6q-sbc [2017/10/04 18:34] (current) – [Headphone mixers] rpjday
Line 82: Line 82:
 ==== Switching channels for mono files ==== ==== Switching channels for mono files ====
  
-By default:+To verify we can send digital input to the right channel, the digital audio interface supports swapping the channels immediately upon input:
  
 <code> <code>
Line 91: Line 91:
 </code> </code>
  
-Switch, so mono files play on right headphone:+Switch, so mono files play only on right headphone:
  
 <code> <code>
Line 100: Line 100:
 </code> </code>
  
-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 ====
  
Line 120: Line 119:
 </code> </code>
  
-For the left channel, we can use the mixer and just feed the left channel into the mixer, effectively getting the same result:+The above represents bypassing the headphone mixers on both channels. Experiment with just mono files and try to set the left channel to come through the mixer for that channel. 
 + 
 +Firstswitch to have HPOUTL come from the mixer, not directly from DACL. This should kill the output to the left HP channel (until we configure the mixer properly): 
 + 
 +<code> 
 +# amixer cset name="HPOUTL PGA" Mixer 
 +numid=95,iface=MIXER,name='HPOUTL PGA' 
 +  ; type=ENUMERATED,access=rw------,values=1,items=2 
 +  ; Item #0 'DAC' 
 +  ; Item #1 'Mixer' 
 +  values=1 
 +</code>
  
 <code> <code>
-# amixer set "HPOUTL PGA" Mixer+# amixer get "HPOUTL PGA"
 Simple mixer control 'HPOUTL PGA',0 Simple mixer control 'HPOUTL PGA',0
   Capabilities: enum   Capabilities: enum
Line 130: Line 140:
 </code> </code>
  
-This effectively kills the left output channel until we set the mixer properly:+Indeed, playing mono files now produces no output at all (which is expected). 
 + 
 +Now configure HPMIXL to get input from DACL:
  
 <code> <code>
-# amixer sget "HPMIXL DACL"+# amixer set "HPMIXL DACL" on
 Simple mixer control 'HPMIXL DACL',0 Simple mixer control 'HPMIXL DACL',0
   Capabilities: pswitch pswitch-joined   Capabilities: pswitch pswitch-joined
   Playback channels: Mono   Playback channels: Mono
-  Mono: Playback [off]+  Mono: Playback [on]
 </code> </code>
 +
 +But playing a mono wav file ... no sound. Not good. Oh, wait, must turn on headphone mixer:
  
 <code> <code>
-# amixer sset "HPMIXL DACL" on +# amixer set "Headphone Mixeron,on 
-Simple mixer control 'HPMIXL DACL',0 +Simple mixer control 'Headphone Mixer',0 
-  Capabilities: pswitch pswitch-joined +  Capabilities: pswitch 
-  Playback channels: Mono +  Playback channels: Front Left - Front Right 
-  Mono: Playback [on]+  Mono
 +  Front Left: Playback [on] 
 +  Front Right: Playback [on]
 </code> </code>
 +
 +In short:
 +
 +  * switch ''HPOUTL PGA'' to "Mixer"
 +  * enable ''HPMIXL DACL''
 +  * enable "Headphone Mixer"
 +
 +==== Playing mono .wav files on both headphone channels ====
 +
 +Seems simple enough:
 +
 +  * Switch ''HPOUTR PGA'' to "Mixer"
 +  * Make sure "Headphone Mixer" is enabled
 +  * Enable ''HPMIXR DACL''
  • mcimx6q-sbc.1507139815.txt.gz
  • Last modified: 2017/10/04 17:56
  • by rpjday