How to use amixer to change freely between Headphone and Spk for L3.0.35 wm8962 codec

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to use amixer to change freely between Headphone and Spk for L3.0.35 wm8962 codec

How to use amixer to change freely between Headphone and Spk for L3.0.35 wm8962 codec

Add kcontrol API for Headphone Jack and Spk for WM8962, from this kcontrol, you can use amixer to change freely between Headphone and Spk.

The names of the mixers

1: HP Function

2: SPK Function

amixer controls:

numid=62,iface=MIXER,name='HP Function'

numid=63,iface=MIXER,name='SPK Function'

1:

How to enable HeadPhone using this Kcontrol:

amixer cget numid=62

numid=62,iface=MIXER,name='HP Function'

   ; type=ENUMERATED,access=rw------,values=1,items=2

   ; Item #0 'off'

   ; Item #1 'on'

   : values=0

amixer cset numid=62 1 //enable HP

numid=62,iface=MIXER,name='HP Function'

   ; type=ENUMERATED,access=rw------,values=1,items=2

   ; Item #0 'off'

   ; Item #1 'on'

   : values=1

2:

How to enable Speaker using this Kcontrol:

amixer cget numid=63

numid=63,iface=MIXER,name='SPK Function'

   ; type=ENUMERATED,access=rw------,values=1,items=2

   ; Item #0 'off'

   ; Item #1 'on'

   : values=0

amixer cset numid=63 1 //SPK enable

numid=63,iface=MIXER,name='SPK Function'

   ; type=ENUMERATED,access=rw------,values=1,items=2

   ; Item #0 'off'

   ; Item #1 'on'

   : values=1

Labels (1)
Attachments
No ratings
Version history
Last update:
‎07-06-2014 10:57 PM
Updated by: