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 18:02] – [Headphone mixers] rpjdaymcimx6q-sbc [2017/10/04 18:34] (current) – [Headphone mixers] rpjday
Line 119: Line 119:
 </code> </code>
  
-The above represents bypassing the headphone mixers on both channels.+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. 
 + 
 +First, switch 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> 
 +# amixer get "HPOUTL PGA" 
 +Simple mixer control 'HPOUTL PGA',
 +  Capabilities: enum 
 +  Items: 'DAC' 'Mixer' 
 +  Item0: 'Mixer' 
 +</code> 
 + 
 +Indeed, playing mono files now produces no output at all (which is expected). 
 + 
 +Now configure HPMIXL to get input from DACL: 
 + 
 +<code> 
 +# amixer set "HPMIXL DACL" on 
 +Simple mixer control 'HPMIXL DACL',
 +  Capabilities: pswitch pswitch-joined 
 +  Playback channels: Mono 
 +  Mono: Playback [on] 
 +</code> 
 + 
 +But playing a mono wav file ... no sound. Not good. Oh, wait, must turn on headphone mixer: 
 + 
 +<code> 
 +# amixer set "Headphone Mixer" on,on 
 +Simple mixer control 'Headphone Mixer',
 +  Capabilities: pswitch 
 +  Playback channels: Front Left - Front Right 
 +  Mono: 
 +  Front Left: Playback [on] 
 +  Front Right: Playback [on] 
 +</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.1507140137.txt.gz
  • Last modified: 2017/10/04 18:02
  • by rpjday