diff --git a/asound.conf b/asound.conf index 72bd711..a3c6f70 100644 --- a/asound.conf +++ b/asound.conf @@ -6,12 +6,12 @@ ## Mixer Devices ## -ctl.AndroidPlayback { +hwdep.mc1n2 { type hw card 0 } -ctl.AndroidCapture { +ctl.mc1n2 { type hw card 0 } @@ -27,10 +27,23 @@ pcm.AndroidPlayback { type hw card 0 device 0 + format S16_LE + channels 2 + rate 44100 } hooks.0 { type ctl_elems hook_args [ + { + name "AENG6 Switch" + value.0 on + value.1 on + } + { + name "AENG6 Volume" + value.0 93 + value.1 93 + } { name "Master Playback Switch" value.0 on @@ -41,6 +54,16 @@ pcm.AndroidPlayback { value.0 93 value.1 93 } + { + name "Headphone Playback Switch" + value.0 off + value.1 off + } + { + name "Headphone Playback Volume" + value.0 0 + value.1 0 + } { name "Speaker Playback Switch" value.0 on @@ -51,16 +74,308 @@ pcm.AndroidPlayback { value.0 31 value.1 31 } + { + name "AD Analog Switch" + value.0 on + value.1 on + } + { + name "AD Analog Volume" + value.0 31 + value.1 31 + } + { + name "AD Digital Switch" + value.0 on + value.1 on + } + { + name "AD Digital Volume" + value.0 93 + value.1 93 + } + { + name "DAC Playback Switch" + value.0 on + value.1 on + } + { + name "DAC Playback Volume" + value.0 93 + value.1 93 + } + { + name "DIR#0 ATT Switch" + value.0 on + value.1 on + } + { + name "DIR#0 ATT Volume" + value.0 93 + value.1 93 + } + { + name "DIR#0 Switch" + value.0 on + value.1 on + } + { + name "DIR#0 Volume" + value.0 93 + value.1 93 + } + { + name "DIR#1 ATT Switch" + value.0 on + value.1 on + } + { + name "DIR#1 ATT Volume" + value.0 93 + value.1 93 + } + { + name "DIR#1 Switch" + value.0 on + value.1 on + } + { + name "DIR#1 Volume" + value.0 93 + value.1 93 + } + { + name "DIR#2 ATT Switch" + value.0 on + value.1 on + } + { + name "DIR#2 ATT Volume" + value.0 93 + value.1 93 + } + { + name "DIR#2 Switch" + value.0 on + value.1 on + } + { + name "DIR#2 Volume" + value.0 93 + value.1 93 + } + { + name "DIT#0 Capture Switch" + value.0 on + value.1 on + } + { + name "DIT#0 Capture Volume" + value.0 93 + value.1 93 + } + { + name "DIT#1 Capture Switch" + value.0 on + value.1 on + } + { + name "DIT#1 Capture Volume" + value.0 93 + value.1 93 + } + { + name "DIT#2 Capture Switch" + value.0 on + value.1 on + } + { + name "DIT#2 Capture Volume" + value.0 93 + value.1 93 + } ] } } -pcm.AndroidPlayback_Earpiece { - -} +#pcm.AndroidPlayback_Earpiece { +#} pcm.AndroidPlayback_Speaker { - + type hooks + slave.pcm { + type hw + card 0 + device 0 + format S16_LE + channels 2 + rate 44100 + } + hooks.0 { + type ctl_elems + hook_args [ + { + name "AENG6 Switch" + value.0 on + value.1 on + } + { + name "AENG6 Volume" + value.0 93 + value.1 93 + } + { + name "Master Playback Switch" + value.0 on + value.1 on + } + { + name "Master Playback Volume" + value.0 93 + value.1 93 + } + { + name "Headphone Playback Switch" + value.0 off + value.1 off + } + { + name "Headphone Playback Volume" + value.0 0 + value.1 0 + } + { + name "Speaker Playback Switch" + value.0 on + value.1 on + } + { + name "Speaker Playback Volume" + value.0 31 + value.1 31 + } + { + name "AD Analog Switch" + value.0 on + value.1 on + } + { + name "AD Analog Volume" + value.0 31 + value.1 31 + } + { + name "AD Digital Switch" + value.0 on + value.1 on + } + { + name "AD Digital Volume" + value.0 93 + value.1 93 + } + { + name "DAC Playback Switch" + value.0 on + value.1 on + } + { + name "DAC Playback Volume" + value.0 93 + value.1 93 + } + { + name "DIR#0 ATT Switch" + value.0 on + value.1 on + } + { + name "DIR#0 ATT Volume" + value.0 93 + value.1 93 + } + { + name "DIR#0 Switch" + value.0 on + value.1 on + } + { + name "DIR#0 Volume" + value.0 93 + value.1 93 + } + { + name "DIR#1 ATT Switch" + value.0 on + value.1 on + } + { + name "DIR#1 ATT Volume" + value.0 93 + value.1 93 + } + { + name "DIR#1 Switch" + value.0 on + value.1 on + } + { + name "DIR#1 Volume" + value.0 93 + value.1 93 + } + { + name "DIR#2 ATT Switch" + value.0 on + value.1 on + } + { + name "DIR#2 ATT Volume" + value.0 93 + value.1 93 + } + { + name "DIR#2 Switch" + value.0 on + value.1 on + } + { + name "DIR#2 Volume" + value.0 93 + value.1 93 + } + { + name "DIT#0 Capture Switch" + value.0 on + value.1 on + } + { + name "DIT#0 Capture Volume" + value.0 93 + value.1 93 + } + { + name "DIT#1 Capture Switch" + value.0 on + value.1 on + } + { + name "DIT#1 Capture Volume" + value.0 93 + value.1 93 + } + { + name "DIT#2 Capture Switch" + value.0 on + value.1 on + } + { + name "DIT#2 Capture Volume" + value.0 93 + value.1 93 + } + ] + } } pcm.AndroidPlayback_Headset { @@ -69,10 +384,23 @@ pcm.AndroidPlayback_Headset { type hw card 0 device 0 + format S16_LE + channels 2 + rate 44100 } hooks.0 { type ctl_elems hook_args [ + { + name "AENG6 Switch" + value.0 on + value.1 on + } + { + name "AENG6 Volume" + value.0 93 + value.1 93 + } { name "Master Playback Switch" value.0 on @@ -84,15 +412,25 @@ pcm.AndroidPlayback_Headset { value.1 93 } { - name "Speaker Playback Switch" + name "Headphone Playback Switch" value.0 on value.1 on } { - name "Speaker Playback Volume" + name "Headphone Playback Volume" value.0 31 value.1 31 } + { + name "Speaker Playback Switch" + value.0 off + value.1 off + } + { + name "Speaker Playback Volume" + value.0 0 + value.1 0 + } { name "AD Analog Switch" value.0 on @@ -223,10 +561,23 @@ pcm.AndroidPlayback_Headphone { type hw card 0 device 0 + format S16_LE + channels 2 + rate 44100 } hooks.0 { type ctl_elems hook_args [ + { + name "AENG6 Switch" + value.0 on + value.1 on + } + { + name "AENG6 Volume" + value.0 93 + value.1 93 + } { name "Master Playback Switch" value.0 on @@ -237,6 +588,761 @@ pcm.AndroidPlayback_Headphone { value.0 93 value.1 93 } + { + name "Headphone Playback Switch" + value.0 on + value.1 on + } + { + name "Headphone Playback Volume" + value.0 31 + value.1 31 + } + { + name "Speaker Playback Switch" + value.0 off + value.1 off + } + { + name "Speaker Playback Volume" + value.0 0 + value.1 0 + } + { + name "AD Analog Switch" + value.0 on + value.1 on + } + { + name "AD Analog Volume" + value.0 31 + value.1 31 + } + { + name "AD Digital Switch" + value.0 on + value.1 on + } + { + name "AD Digital Volume" + value.0 93 + value.1 93 + } + { + name "DAC Playback Switch" + value.0 on + value.1 on + } + { + name "DAC Playback Volume" + value.0 93 + value.1 93 + } + { + name "DIR#0 ATT Switch" + value.0 on + value.1 on + } + { + name "DIR#0 ATT Volume" + value.0 93 + value.1 93 + } + { + name "DIR#0 Switch" + value.0 on + value.1 on + } + { + name "DIR#0 Volume" + value.0 93 + value.1 93 + } + { + name "DIR#1 ATT Switch" + value.0 on + value.1 on + } + { + name "DIR#1 ATT Volume" + value.0 93 + value.1 93 + } + { + name "DIR#1 Switch" + value.0 on + value.1 on + } + { + name "DIR#1 Volume" + value.0 93 + value.1 93 + } + { + name "DIR#2 ATT Switch" + value.0 on + value.1 on + } + { + name "DIR#2 ATT Volume" + value.0 93 + value.1 93 + } + { + name "DIR#2 Switch" + value.0 on + value.1 on + } + { + name "DIR#2 Volume" + value.0 93 + value.1 93 + } + { + name "DIT#0 Capture Switch" + value.0 on + value.1 on + } + { + name "DIT#0 Capture Volume" + value.0 93 + value.1 93 + } + { + name "DIT#1 Capture Switch" + value.0 on + value.1 on + } + { + name "DIT#1 Capture Volume" + value.0 93 + value.1 93 + } + { + name "DIT#2 Capture Switch" + value.0 on + value.1 on + } + { + name "DIT#2 Capture Volume" + value.0 93 + value.1 93 + } + ] + } +} + +#pcm.AndroidPlayback_Bluetooth { +#} + +#pcm.AndroidPlayback_Earpiece_normal { +#} + +pcm.AndroidPlayback_Speaker_normal { + type hooks + slave.pcm { + type hw + card 0 + device 0 + format S16_LE + channels 2 + rate 44100 + } + hooks.0 { + type ctl_elems + hook_args [ + { + name "AENG6 Switch" + value.0 on + value.1 on + } + { + name "AENG6 Volume" + value.0 93 + value.1 93 + } + { + name "Master Playback Switch" + value.0 on + value.1 on + } + { + name "Master Playback Volume" + value.0 93 + value.1 93 + } + { + name "Headphone Playback Switch" + value.0 off + value.1 off + } + { + name "Headphone Playback Volume" + value.0 0 + value.1 0 + } + { + name "Speaker Playback Switch" + value.0 on + value.1 on + } + { + name "Speaker Playback Volume" + value.0 31 + value.1 31 + } + { + name "Voice Playback Switch" + value.0 off + value.1 off + } + { + name "Voice Playback Volume" + value.0 0 + value.1 0 + } + { + name "AD Analog Switch" + value.0 on + value.1 on + } + { + name "AD Analog Volume" + value.0 31 + value.1 31 + } + { + name "AD Digital Switch" + value.0 on + value.1 on + } + { + name "AD Digital Volume" + value.0 93 + value.1 93 + } + { + name "DAC Playback Switch" + value.0 on + value.1 on + } + { + name "DAC Playback Volume" + value.0 93 + value.1 93 + } + { + name "DIR#0 ATT Switch" + value.0 on + value.1 on + } + { + name "DIR#0 ATT Volume" + value.0 93 + value.1 93 + } + { + name "DIR#0 Switch" + value.0 on + value.1 on + } + { + name "DIR#0 Volume" + value.0 93 + value.1 93 + } + { + name "DIR#1 ATT Switch" + value.0 on + value.1 on + } + { + name "DIR#1 ATT Volume" + value.0 93 + value.1 93 + } + { + name "DIR#1 Switch" + value.0 on + value.1 on + } + { + name "DIR#1 Volume" + value.0 93 + value.1 93 + } + { + name "DIR#2 ATT Switch" + value.0 on + value.1 on + } + { + name "DIR#2 ATT Volume" + value.0 93 + value.1 93 + } + { + name "DIR#2 Switch" + value.0 on + value.1 on + } + { + name "DIR#2 Volume" + value.0 93 + value.1 93 + } + { + name "DIT#0 Capture Switch" + value.0 on + value.1 on + } + { + name "DIT#0 Capture Volume" + value.0 93 + value.1 93 + } + { + name "DIT#1 Capture Switch" + value.0 on + value.1 on + } + { + name "DIT#1 Capture Volume" + value.0 93 + value.1 93 + } + { + name "DIT#2 Capture Switch" + value.0 on + value.1 on + } + { + name "DIT#2 Capture Volume" + value.0 93 + value.1 93 + } + ] + } +} + +#pcm.AndroidPlayback_Headset_normal { +#} + +#pcm.AndroidPlayback_Headphone_normal { +#} + +#pcm.AndroidPlayback_Bluetooth_normal { +#} + +pcm.AndroidPlayback_Speaker_Headset_normal { + type hooks + slave.pcm { + type hw + card 0 + device 0 + format S16_LE + channels 2 + rate 44100 + } + hooks.0 { + type ctl_elems + hook_args [ + { + name "AENG6 Switch" + value.0 on + value.1 on + } + { + name "AENG6 Volume" + value.0 93 + value.1 93 + } + { + name "Master Playback Switch" + value.0 on + value.1 on + } + { + name "Master Playback Volume" + value.0 93 + value.1 93 + } + { + name "Headphone Playback Switch" + value.0 on + value.1 on + } + { + name "Headphone Playback Volume" + value.0 31 + value.1 31 + } + { + name "Speaker Playback Switch" + value.0 on + value.1 on + } + { + name "Speaker Playback Volume" + value.0 93 + value.1 93 + } + { + name "AD Analog Switch" + value.0 on + value.1 on + } + { + name "AD Analog Volume" + value.0 31 + value.1 31 + } + { + name "AD Digital Switch" + value.0 on + value.1 on + } + { + name "AD Digital Volume" + value.0 93 + value.1 93 + } + { + name "DAC Playback Switch" + value.0 on + value.1 on + } + { + name "DAC Playback Volume" + value.0 93 + value.1 93 + } + { + name "DIR#0 ATT Switch" + value.0 on + value.1 on + } + { + name "DIR#0 ATT Volume" + value.0 93 + value.1 93 + } + { + name "DIR#0 Switch" + value.0 on + value.1 on + } + { + name "DIR#0 Volume" + value.0 93 + value.1 93 + } + { + name "DIR#1 ATT Switch" + value.0 on + value.1 on + } + { + name "DIR#1 ATT Volume" + value.0 93 + value.1 93 + } + { + name "DIR#1 Switch" + value.0 on + value.1 on + } + { + name "DIR#1 Volume" + value.0 93 + value.1 93 + } + { + name "DIR#2 ATT Switch" + value.0 on + value.1 on + } + { + name "DIR#2 ATT Volume" + value.0 93 + value.1 93 + } + { + name "DIR#2 Switch" + value.0 on + value.1 on + } + { + name "DIR#2 Volume" + value.0 93 + value.1 93 + } + { + name "DIT#0 Capture Switch" + value.0 on + value.1 on + } + { + name "DIT#0 Capture Volume" + value.0 93 + value.1 93 + } + { + name "DIT#1 Capture Switch" + value.0 on + value.1 on + } + { + name "DIT#1 Capture Volume" + value.0 93 + value.1 93 + } + { + name "DIT#2 Capture Switch" + value.0 on + value.1 on + } + { + name "DIT#2 Capture Volume" + value.0 93 + value.1 93 + } + ] + } +} + +pcm.AndroidPlayback_Speaker_Headphone_normal { + type hooks + slave.pcm { + type hw + card 0 + device 0 + format S16_LE + channels 2 + rate 44100 + } + hooks.0 { + type ctl_elems + hook_args [ + { + name "AENG6 Switch" + value.0 on + value.1 on + } + { + name "AENG6 Volume" + value.0 93 + value.1 93 + } + { + name "Master Playback Switch" + value.0 on + value.1 on + } + { + name "Master Playback Volume" + value.0 93 + value.1 93 + } + { + name "Headphone Playback Switch" + value.0 on + value.1 on + } + { + name "Headphone Playback Volume" + value.0 31 + value.1 31 + } + { + name "Speaker Playback Switch" + value.0 on + value.1 on + } + { + name "Speaker Playback Volume" + value.0 93 + value.1 93 + } + { + name "AD Analog Switch" + value.0 on + value.1 on + } + { + name "AD Analog Volume" + value.0 31 + value.1 31 + } + { + name "AD Digital Switch" + value.0 on + value.1 on + } + { + name "AD Digital Volume" + value.0 93 + value.1 93 + } + { + name "DAC Playback Switch" + value.0 on + value.1 on + } + { + name "DAC Playback Volume" + value.0 93 + value.1 93 + } + { + name "DIR#0 ATT Switch" + value.0 on + value.1 on + } + { + name "DIR#0 ATT Volume" + value.0 93 + value.1 93 + } + { + name "DIR#0 Switch" + value.0 on + value.1 on + } + { + name "DIR#0 Volume" + value.0 93 + value.1 93 + } + { + name "DIR#1 ATT Switch" + value.0 on + value.1 on + } + { + name "DIR#1 ATT Volume" + value.0 93 + value.1 93 + } + { + name "DIR#1 Switch" + value.0 on + value.1 on + } + { + name "DIR#1 Volume" + value.0 93 + value.1 93 + } + { + name "DIR#2 ATT Switch" + value.0 on + value.1 on + } + { + name "DIR#2 ATT Volume" + value.0 93 + value.1 93 + } + { + name "DIR#2 Switch" + value.0 on + value.1 on + } + { + name "DIR#2 Volume" + value.0 93 + value.1 93 + } + { + name "DIT#0 Capture Switch" + value.0 on + value.1 on + } + { + name "DIT#0 Capture Volume" + value.0 93 + value.1 93 + } + { + name "DIT#1 Capture Switch" + value.0 on + value.1 on + } + { + name "DIT#1 Capture Volume" + value.0 93 + value.1 93 + } + { + name "DIT#2 Capture Switch" + value.0 on + value.1 on + } + { + name "DIT#2 Capture Volume" + value.0 93 + value.1 93 + } + ] + } +} + +#pcm.AndroidPlayback_Speaker_fmradio { +#} + +#pcm.AndroidPlayback_Headset_fmradio { +#} + +#pcm.AndroidPlayback_Speaker_Headset_fmradio { +#} + +#pcm.AndroidPlayback_Earpiece_ringtone { +#} + +pcm.AndroidPlayback_Speaker_ringtone { + type hooks + slave.pcm { + type hw + card 0 + device 0 + format S16_LE + channels 2 + rate 44100 + } + hooks.0 { + type ctl_elems + hook_args [ + { + name "AENG6 Switch" + value.0 on + value.1 on + } + { + name "AENG6 Volume" + value.0 93 + value.1 93 + } + { + name "Master Playback Switch" + value.0 on + value.1 on + } + { + name "Master Playback Volume" + value.0 93 + value.1 93 + } + { + name "Headphone Playback Switch" + value.0 off + value.1 off + } + { + name "Headphone Playback Volume" + value.0 0 + value.1 0 + } { name "Speaker Playback Switch" value.0 on @@ -371,183 +1477,448 @@ pcm.AndroidPlayback_Headphone { } } -pcm.AndroidPlayback_Bluetooth { +#pcm.AndroidPlayback_Headset_ringtone { +#} -} +#pcm.AndroidPlayback_Headphone_ringtone { +#} -pcm.AndroidPlayback_Earpiece_normal { - -} - -pcm.AndroidPlayback_Speaker_normal { - -} - -pcm.AndroidPlayback_Headset_normal { - -} - -pcm.AndroidPlayback_Headphone_normal { - -} - -pcm.AndroidPlayback_Bluetooth_normal { - -} - -pcm.AndroidPlayback_Speaker_Headset_normal { - -} - -pcm.AndroidPlayback_Speaker_Headphone_normal { - -} - -pcm.AndroidPlayback_Speaker_fmradio { - -} - -pcm.AndroidPlayback_Headset_fmradio { - -} - -pcm.AndroidPlayback_Speaker_Headset_fmradio { - -} - -pcm.AndroidPlayback_Earpiece_ringtone { - -} - -pcm.AndroidPlayback_Speaker_ringtone { - -} - -pcm.AndroidPlayback_Headset_ringtone { - -} - -pcm.AndroidPlayback_Headphone_ringtone { - -} - -pcm.AndroidPlayback_Bluetooth_ringtone { - -} +#pcm.AndroidPlayback_Bluetooth_ringtone { +#} pcm.AndroidPlayback_Speaker_Headset_ringtone { - + type hooks + slave.pcm { + type hw + card 0 + device 0 + format S16_LE + channels 2 + rate 44100 + } + hooks.0 { + type ctl_elems + hook_args [ + { + name "AENG6 Switch" + value.0 on + value.1 on + } + { + name "AENG6 Volume" + value.0 93 + value.1 93 + } + { + name "Master Playback Switch" + value.0 on + value.1 on + } + { + name "Master Playback Volume" + value.0 93 + value.1 93 + } + { + name "Headphone Playback Switch" + value.0 on + value.1 on + } + { + name "Headphone Playback Volume" + value.0 31 + value.1 31 + } + { + name "Speaker Playback Switch" + value.0 off + value.1 off + } + { + name "Speaker Playback Volume" + value.0 0 + value.1 0 + } + { + name "AD Analog Switch" + value.0 on + value.1 on + } + { + name "AD Analog Volume" + value.0 31 + value.1 31 + } + { + name "AD Digital Switch" + value.0 on + value.1 on + } + { + name "AD Digital Volume" + value.0 93 + value.1 93 + } + { + name "DAC Playback Switch" + value.0 on + value.1 on + } + { + name "DAC Playback Volume" + value.0 93 + value.1 93 + } + { + name "DIR#0 ATT Switch" + value.0 on + value.1 on + } + { + name "DIR#0 ATT Volume" + value.0 93 + value.1 93 + } + { + name "DIR#0 Switch" + value.0 on + value.1 on + } + { + name "DIR#0 Volume" + value.0 93 + value.1 93 + } + { + name "DIR#1 ATT Switch" + value.0 on + value.1 on + } + { + name "DIR#1 ATT Volume" + value.0 93 + value.1 93 + } + { + name "DIR#1 Switch" + value.0 on + value.1 on + } + { + name "DIR#1 Volume" + value.0 93 + value.1 93 + } + { + name "DIR#2 ATT Switch" + value.0 on + value.1 on + } + { + name "DIR#2 ATT Volume" + value.0 93 + value.1 93 + } + { + name "DIR#2 Switch" + value.0 on + value.1 on + } + { + name "DIR#2 Volume" + value.0 93 + value.1 93 + } + { + name "DIT#0 Capture Switch" + value.0 on + value.1 on + } + { + name "DIT#0 Capture Volume" + value.0 93 + value.1 93 + } + { + name "DIT#1 Capture Switch" + value.0 on + value.1 on + } + { + name "DIT#1 Capture Volume" + value.0 93 + value.1 93 + } + { + name "DIT#2 Capture Switch" + value.0 on + value.1 on + } + { + name "DIT#2 Capture Volume" + value.0 93 + value.1 93 + } + ] + } } pcm.AndroidPlayback_Speaker_Headphone_ringtone { - + type hooks + slave.pcm { + type hw + card 0 + device 0 + format S16_LE + channels 2 + rate 44100 + } + hooks.0 { + type ctl_elems + hook_args [ + { + name "AENG6 Switch" + value.0 on + value.1 on + } + { + name "AENG6 Volume" + value.0 93 + value.1 93 + } + { + name "Master Playback Switch" + value.0 on + value.1 on + } + { + name "Master Playback Volume" + value.0 93 + value.1 93 + } + { + name "Headphone Playback Switch" + value.0 on + value.1 on + } + { + name "Headphone Playback Volume" + value.0 31 + value.1 31 + } + { + name "Speaker Playback Switch" + value.0 off + value.1 off + } + { + name "Speaker Playback Volume" + value.0 0 + value.1 0 + } + { + name "AD Analog Switch" + value.0 on + value.1 on + } + { + name "AD Analog Volume" + value.0 31 + value.1 31 + } + { + name "AD Digital Switch" + value.0 on + value.1 on + } + { + name "AD Digital Volume" + value.0 93 + value.1 93 + } + { + name "DAC Playback Switch" + value.0 on + value.1 on + } + { + name "DAC Playback Volume" + value.0 93 + value.1 93 + } + { + name "DIR#0 ATT Switch" + value.0 on + value.1 on + } + { + name "DIR#0 ATT Volume" + value.0 93 + value.1 93 + } + { + name "DIR#0 Switch" + value.0 on + value.1 on + } + { + name "DIR#0 Volume" + value.0 93 + value.1 93 + } + { + name "DIR#1 ATT Switch" + value.0 on + value.1 on + } + { + name "DIR#1 ATT Volume" + value.0 93 + value.1 93 + } + { + name "DIR#1 Switch" + value.0 on + value.1 on + } + { + name "DIR#1 Volume" + value.0 93 + value.1 93 + } + { + name "DIR#2 ATT Switch" + value.0 on + value.1 on + } + { + name "DIR#2 ATT Volume" + value.0 93 + value.1 93 + } + { + name "DIR#2 Switch" + value.0 on + value.1 on + } + { + name "DIR#2 Volume" + value.0 93 + value.1 93 + } + { + name "DIT#0 Capture Switch" + value.0 on + value.1 on + } + { + name "DIT#0 Capture Volume" + value.0 93 + value.1 93 + } + { + name "DIT#1 Capture Switch" + value.0 on + value.1 on + } + { + name "DIT#1 Capture Volume" + value.0 93 + value.1 93 + } + { + name "DIT#2 Capture Switch" + value.0 on + value.1 on + } + { + name "DIT#2 Capture Volume" + value.0 93 + value.1 93 + } + ] + } } -pcm.AndroidPlayback_Earpiece_incall { +#pcm.AndroidPlayback_Earpiece_incall { +#} -} +#pcm.AndroidPlayback_Speaker_incall { +#} -pcm.AndroidPlayback_Speaker_incall { +#pcm.AndroidPlayback_Headset_incall { +#} -} +#pcm.AndroidPlayback_Headphone_incall { +#} -pcm.AndroidPlayback_Headset_incall { +#pcm.AndroidPlayback_Bluetooth_incall { +#} -} +#pcm.AndroidPlayback_Speaker_Headset_incall { +#} -pcm.AndroidPlayback_Headphone_incall { - -} - -pcm.AndroidPlayback_Bluetooth_incall { - -} - -pcm.AndroidPlayback_Speaker_Headset_incall { - -} - -pcm.AndroidPlayback_Speaker_Headphone_incall { - -} +#pcm.AndroidPlayback_Speaker_Headphone_incall { +#} ## ## Capture devices ## -pcm.AndroidCapture { +#pcm.AndroidCapture { +#} -} +#pcm.AndroidCapture_Microphone { +#} -pcm.AndroidCapture_Microphone { +#pcm.AndroidCapture_Earpiece_normal { +#} -} +#pcm.AndroidCapture_Speaker_normal { +#} -pcm.AndroidCapture_Earpiece_normal { +#pcm.AndroidCapture_Headset_normal { +#} -} +#pcm.AndroidCapture_Headphone_normal { +#} -pcm.AndroidCapture_Speaker_normal { +#pcm.AndroidCapture_Bluetooth_normal { +#} -} +#pcm.AndroidCapture_Speaker_Headset_normal { +#} -pcm.AndroidCapture_Headset_normal { +#pcm.AndroidCapture_Speaker_Headphone_normal { +#} -} +#pcm.AndroidCapture_Speaker_ringtone { +#} -pcm.AndroidCapture_Headphone_normal { +#pcm.AndroidCapture_Headset_ringtone { +#} -} +#pcm.AndroidCapture_Headphone_ringtone { +#} -pcm.AndroidCapture_Bluetooth_normal { +#pcm.AndroidCapture_Earpiece_incall { +#} -} +#pcm.AndroidCapture_Speaker_incall { +#} -pcm.AndroidCapture_Speaker_Headset_normal { +#pcm.AndroidCapture_Headset_incall { +#} -} +#pcm.AndroidCapture_Headphone_incall { +#} -pcm.AndroidCapture_Speaker_Headphone_normal { +#pcm.AndroidCapture_Bluetooth_incall { +#} -} +#pcm.AndroidCapture_Speaker_Headset_incall { +#} -pcm.AndroidCapture_Speaker_ringtone { - -} - -pcm.AndroidCapture_Headset_ringtone { - -} - -pcm.AndroidCapture_Headphone_ringtone { - -} - -pcm.AndroidCapture_Earpiece_incall { - -} - -pcm.AndroidCapture_Speaker_incall { - -} - -pcm.AndroidCapture_Headset_incall { - -} - -pcm.AndroidCapture_Headphone_incall { - -} - -pcm.AndroidCapture_Bluetooth_incall { - -} - -pcm.AndroidCapture_Speaker_Headset_incall { - -} - -pcm.AndroidCapture_Speaker_Headphone_incall { - -} +#pcm.AndroidCapture_Speaker_Headphone_incall { +#} diff --git a/init.rc b/init.rc index df17d04..7ca8e2a 100755 --- a/init.rc +++ b/init.rc @@ -539,8 +539,6 @@ on boot chown radio system /sys/class/jack/jack_selector/select_jack #bluetooth - setprop ro.bt.bdaddr_path "/efs/bluetooth/bt_addr" - chown bluetooth bluetooth ro.bt.bdaddr_path chown bluetooth bluetooth /dev/s3c2410_serial0 chmod 0660 /dev/s3c2410_serial0 chmod 0660 /sys/class/rfkill/rfkill0/state @@ -667,8 +665,8 @@ service dbus /system/bin/dbus-daemon --system --nofork user bluetooth group bluetooth net_bt_admin -service hciattach /system/bin/brcm_patchram_plus --enable_hci --enable_lpm \ - --baudrate 3000000 --patchram /system/vendor/firmware/bcm4330.hcd /dev/s3c2410_serial0 +service hciattach /system/bin/hciattach /dev/s3c2410_serial0 any +# service hciattach /system/bin/brcm_patchram_plus --enable_hci --enable_lpm --baudrate 3000000 --patchram /system/vendor/firmware/bcm4330.hcd /dev/s3c2410_serial0 user bluetooth group bluetooth net_bt_admin disabled diff --git a/libaudio/ALSAControl.cpp b/libaudio/ALSAControl.cpp index 369554f..76c369f 100644 --- a/libaudio/ALSAControl.cpp +++ b/libaudio/ALSAControl.cpp @@ -23,6 +23,7 @@ #include #include +#define LOG_NDEBUG 0 #define LOG_TAG "ALSAControl" #include #include diff --git a/libaudio/ALSAMixer.cpp b/libaudio/ALSAMixer.cpp index 2fb98c8..c6db33b 100644 --- a/libaudio/ALSAMixer.cpp +++ b/libaudio/ALSAMixer.cpp @@ -23,6 +23,7 @@ #include #include +#define LOG_NDEBUG 0 #define LOG_TAG "AudioHardwareALSA" #include #include @@ -65,15 +66,15 @@ struct alsa_properties_t static alsa_properties_t mixerMasterProp[SND_PCM_STREAM_LAST+1] = - ALSA_PROP(AudioSystem::DEVICE_OUT_ALL, "master", "PCM", "Capture"); + ALSA_PROP(AudioSystem::DEVICE_OUT_ALL, "master", "Master", NULL); static alsa_properties_t mixerProp[][SND_PCM_STREAM_LAST+1] = { - ALSA_PROP(AudioSystem::DEVICE_OUT_EARPIECE, "earpiece", "Earpiece", "Capture"), - ALSA_PROP(AudioSystem::DEVICE_OUT_SPEAKER, "speaker", "Speaker", ""), - ALSA_PROP(AudioSystem::DEVICE_OUT_WIRED_HEADSET, "headset", "Headphone", "Capture"), - ALSA_PROP(AudioSystem::DEVICE_OUT_BLUETOOTH_SCO, "bluetooth.sco", "Bluetooth", "Bluetooth Capture"), - ALSA_PROP(AudioSystem::DEVICE_OUT_BLUETOOTH_A2DP, "bluetooth.a2dp", "Bluetooth A2DP", "Bluetooth A2DP Capture"), + ALSA_PROP(AudioSystem::DEVICE_OUT_EARPIECE, "earpiece", "Voice", NULL), + ALSA_PROP(AudioSystem::DEVICE_OUT_SPEAKER, "speaker", "Speaker", NULL), + ALSA_PROP(AudioSystem::DEVICE_OUT_WIRED_HEADSET, "headset", "Headphone", NULL), + ALSA_PROP(AudioSystem::DEVICE_OUT_BLUETOOTH_SCO, "bluetooth.sco", "Bluetooth", NULL), + ALSA_PROP(AudioSystem::DEVICE_OUT_BLUETOOTH_A2DP, "bluetooth.a2dp", "Bluetooth A2DP", NULL), ALSA_PROP(static_cast(0), "", NULL, NULL) }; @@ -161,8 +162,8 @@ ALSAMixer::ALSAMixer() { int err; - initMixer (&mMixer[SND_PCM_STREAM_PLAYBACK], "AndroidPlayback"); - initMixer (&mMixer[SND_PCM_STREAM_CAPTURE], "AndroidCapture"); + initMixer (&mMixer[SND_PCM_STREAM_PLAYBACK], "mc1n2"); + initMixer (&mMixer[SND_PCM_STREAM_CAPTURE], "mc1n2"); snd_mixer_selem_id_t *sid; snd_mixer_selem_id_alloca(&sid); diff --git a/libaudio/ALSAStreamOps.cpp b/libaudio/ALSAStreamOps.cpp index 71fe670..7307ef5 100644 --- a/libaudio/ALSAStreamOps.cpp +++ b/libaudio/ALSAStreamOps.cpp @@ -23,6 +23,7 @@ #include #include +#define LOG_NDEBUG 0 #define LOG_TAG "AudioHardwareALSA" #include #include diff --git a/libaudio/AudioHardwareALSA.cpp b/libaudio/AudioHardwareALSA.cpp index 786bab7..b7fe9ff 100644 --- a/libaudio/AudioHardwareALSA.cpp +++ b/libaudio/AudioHardwareALSA.cpp @@ -23,6 +23,7 @@ #include #include +#define LOG_NDEBUG 0 #define LOG_TAG "AudioHardwareALSA" #include #include diff --git a/libaudio/AudioPolicyManagerALSA.cpp b/libaudio/AudioPolicyManagerALSA.cpp index 91fedaa..8c351cb 100644 --- a/libaudio/AudioPolicyManagerALSA.cpp +++ b/libaudio/AudioPolicyManagerALSA.cpp @@ -14,8 +14,8 @@ * limitations under the License. */ +#define LOG_NDEBUG 0 #define LOG_TAG "AudioPolicyManagerALSA" -//#define LOG_NDEBUG 0 #include #include "AudioPolicyManagerALSA.h" #include diff --git a/libaudio/AudioStreamInALSA.cpp b/libaudio/AudioStreamInALSA.cpp index df3ce4c..742f06a 100644 --- a/libaudio/AudioStreamInALSA.cpp +++ b/libaudio/AudioStreamInALSA.cpp @@ -23,6 +23,7 @@ #include #include +#define LOG_NDEBUG 0 #define LOG_TAG "AudioHardwareALSA" #include #include diff --git a/libaudio/AudioStreamOutALSA.cpp b/libaudio/AudioStreamOutALSA.cpp index fd30859..93a90e4 100644 --- a/libaudio/AudioStreamOutALSA.cpp +++ b/libaudio/AudioStreamOutALSA.cpp @@ -24,6 +24,7 @@ #include #include +#define LOG_NDEBUG 0 #define LOG_TAG "AudioHardwareALSA" #include #include diff --git a/libaudio/acoustics_default.cpp b/libaudio/acoustics_default.cpp index 6280979..f165caf 100644 --- a/libaudio/acoustics_default.cpp +++ b/libaudio/acoustics_default.cpp @@ -15,6 +15,7 @@ ** limitations under the License. */ +#define LOG_NDEBUG 0 #define LOG_TAG "AcousticsModule" #include diff --git a/libaudio/alsa_default.cpp b/libaudio/alsa_default.cpp index 6f7ac7d..37b08fb 100644 --- a/libaudio/alsa_default.cpp +++ b/libaudio/alsa_default.cpp @@ -15,6 +15,7 @@ ** limitations under the License. */ +#define LOG_NDEBUG 0 #define LOG_TAG "ALSAModule" #include @@ -239,7 +240,7 @@ status_t setHardwareParams(alsa_handle_t *handle) goto done; } - LOGV("Set %s PCM format to %s (%s)", streamName(), formatName, formatDesc); + LOGV("Set %s PCM format to %s (%s)", streamName(handle), formatName, formatDesc); err = snd_pcm_hw_params_set_channels(handle->handle, hardwareParams, handle->channels); @@ -250,7 +251,7 @@ status_t setHardwareParams(alsa_handle_t *handle) } LOGV("Using %i %s for %s.", handle->channels, - handle->channels == 1 ? "channel" : "channels", streamName()); + handle->channels == 1 ? "channel" : "channels", streamName(handle)); err = snd_pcm_hw_params_set_rate_near(handle->handle, hardwareParams, &requestedRate, 0); @@ -265,7 +266,7 @@ status_t setHardwareParams(alsa_handle_t *handle) LOGW("Requested rate (%u HZ) does not match actual rate (%u HZ)", handle->sampleRate, requestedRate); else - LOGV("Set %s sample rate to %u HZ", stream, requestedRate); + LOGV("Set %s sample rate to %u HZ", streamName(handle), requestedRate); #ifdef DISABLE_HARWARE_RESAMPLING // Disable hardware re-sampling. diff --git a/overlay/frameworks/base/core/res/res/values-de/arrays.xml b/overlay/frameworks/base/core/res/res/values-de/arrays.xml deleted file mode 100644 index 7f97684..0000000 --- a/overlay/frameworks/base/core/res/res/values-de/arrays.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - Neu starten - Recovery - - diff --git a/overlay/frameworks/base/core/res/res/values-fi-rFI/arrays.xml b/overlay/frameworks/base/core/res/res/values-fi-rFI/arrays.xml deleted file mode 100644 index 00eb6cb..0000000 --- a/overlay/frameworks/base/core/res/res/values-fi-rFI/arrays.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - Käynnistä uudelleen - Recovery - - - diff --git a/overlay/frameworks/base/core/res/res/values-fr/arrays.xml b/overlay/frameworks/base/core/res/res/values-fr/arrays.xml deleted file mode 100644 index 69eeb7a..0000000 --- a/overlay/frameworks/base/core/res/res/values-fr/arrays.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - Redémarrage - Recovery - - diff --git a/overlay/frameworks/base/core/res/res/values-it/arrays.xml b/overlay/frameworks/base/core/res/res/values-it/arrays.xml deleted file mode 100644 index 3984c9a..0000000 --- a/overlay/frameworks/base/core/res/res/values-it/arrays.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - Riavvia - Recovery - - - - diff --git a/overlay/frameworks/base/core/res/res/values-pt-rBR/arrays.xml b/overlay/frameworks/base/core/res/res/values-pt-rBR/arrays.xml deleted file mode 100755 index 7cde789..0000000 --- a/overlay/frameworks/base/core/res/res/values-pt-rBR/arrays.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - -22863878 - -43244097 - - - - 3 - - - - Reiniciar - Recuperação - - diff --git a/overlay/frameworks/base/core/res/res/values-ru/arrays.xml b/overlay/frameworks/base/core/res/res/values-ru/arrays.xml deleted file mode 100644 index 88a5b21..0000000 --- a/overlay/frameworks/base/core/res/res/values-ru/arrays.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - Перезагрузить - Recovery - - - diff --git a/overlay/frameworks/base/core/res/res/values-sv/arrays.xml b/overlay/frameworks/base/core/res/res/values-sv/arrays.xml deleted file mode 100644 index d5adb37..0000000 --- a/overlay/frameworks/base/core/res/res/values-sv/arrays.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - Omstart - Recovery - - - diff --git a/overlay/frameworks/base/core/res/res/values-uk/arrays.xml b/overlay/frameworks/base/core/res/res/values-uk/arrays.xml deleted file mode 100644 index 9b0081d..0000000 --- a/overlay/frameworks/base/core/res/res/values-uk/arrays.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - Перезавантажити - Реж. відновлення - - - diff --git a/overlay/frameworks/base/core/res/res/values-zh-rTW/arrays.xml b/overlay/frameworks/base/core/res/res/values-zh-rTW/arrays.xml deleted file mode 100644 index fca8906..0000000 --- a/overlay/frameworks/base/core/res/res/values-zh-rTW/arrays.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - 25022112 - 121478019 - - - - 3 - - - - - - 重新開機 - Recovery - - - diff --git a/overlay/frameworks/base/core/res/res/values/arrays.xml b/overlay/frameworks/base/core/res/res/values/arrays.xml deleted file mode 100644 index 3b32312..0000000 --- a/overlay/frameworks/base/core/res/res/values/arrays.xml +++ /dev/null @@ -1,125 +0,0 @@ - - - - - - - @drawable/sym_def_app_icon - @drawable/arrow_down_float - @drawable/btn_check - @drawable/btn_check_label_background - @drawable/btn_check_off - @drawable/btn_check_on - @drawable/btn_default - @drawable/btn_default_small - @drawable/btn_dropdown - @drawable/btn_plus - @drawable/btn_minus - @drawable/btn_radio - @drawable/btn_star - @drawable/btn_toggle - @drawable/ic_emergency - @drawable/divider_horizontal_bright - @drawable/divider_horizontal_dark - @drawable/edit_text - @drawable/expander_group - @drawable/list_selector_background - @drawable/menu_background - @drawable/menu_background_fill_parent_width - @drawable/menu_selector - @drawable/panel_background - @drawable/popup_bottom_bright - @drawable/popup_bottom_dark - @drawable/popup_bottom_medium - @drawable/popup_center_bright - @drawable/popup_center_dark - @drawable/popup_full_dark - @drawable/popup_top_bright - @drawable/popup_top_dark - @drawable/progress_horizontal - @drawable/progress_indeterminate_horizontal - @drawable/progress_small - @drawable/progress_small_titlebar - @drawable/screen_background_dark - @drawable/screen_background_light - @drawable/scrollbar_handle_horizontal - @drawable/scrollbar_handle_vertical - @drawable/spinner_dropdown_background - @drawable/text_select_handle_left - @drawable/text_select_handle_middle - @drawable/text_select_handle_right - @drawable/title_bar - @drawable/title_bar_shadow - - @drawable/indicator_code_lock_drag_direction_green_up - @drawable/indicator_code_lock_drag_direction_red_up - @drawable/indicator_code_lock_point_area_default - @drawable/indicator_code_lock_point_area_green - @drawable/indicator_code_lock_point_area_red - - @drawable/overscroll_glow - @drawable/overscroll_edge - - - - - @color/hint_foreground_dark - @color/hint_foreground_light - @color/primary_text_dark - @color/primary_text_dark_disable_only - @color/primary_text_light - @color/primary_text_light_disable_only - @color/primary_text_light_nodisable - @color/secondary_text_dark - @color/secondary_text_light - @color/tab_indicator_text - @color/tertiary_text_dark - @color/tertiary_text_light - #ff000000 - #00000000 - #ffffffff - - - - - 36149777 - -95993398 - - - - 3 - - - - - Reboot - Recovery - - - - - - recovery - - - diff --git a/ueventd.smdkc210.rc b/ueventd.smdkc210.rc index 75ff6c9..088b9a0 100644 --- a/ueventd.smdkc210.rc +++ b/ueventd.smdkc210.rc @@ -1,87 +1,12 @@ -/dev/null 0666 root root -/dev/zero 0666 root root -/dev/full 0666 root root -/dev/ptmx 0666 root root -/dev/tty 0666 root root -/dev/random 0666 root root -/dev/urandom 0666 root root -/dev/ashmem 0666 root root -/dev/binder 0666 root root +# video /dev/video14 0660 system system /dev/video21 0660 system system /dev/pmem_gpu1 0660 system graphics - -# logger should be world writable (for logging) but not readable -/dev/log/* 0662 root log - -# the msm hw3d client device node is world writable/readable. -/dev/msm_hw3dc 0666 root root - -# gpu driver for adreno200 is globally accessible -/dev/kgsl 0666 root root - -# these should not be world writable -/dev/diag 0660 radio radio -/dev/diag_arm9 0660 radio radio -/dev/android_adb 0660 adb adb -/dev/android_adb_enable 0660 adb adb -/dev/ttyMSM0 0600 bluetooth bluetooth -/dev/ttyHS0 0600 bluetooth bluetooth -/dev/uinput 0660 system bluetooth -/dev/alarm 0664 system radio -/dev/tty0 0660 root system -/dev/graphics/* 0660 root graphics -/dev/msm_hw3dm 0660 system graphics -/dev/input/* 0660 root input -/dev/eac 0660 root audio -/dev/cam 0660 root camera -/dev/pmem_adsp* 0660 system audio -/dev/pmem_camera* 0660 system camera -/dev/oncrpc/* 0660 root system -/dev/adsp/* 0660 system audio -/dev/snd/* 0660 system audio -/dev/mt9t013 0660 system system -/dev/msm_camera/* 0660 system system -/dev/akm8976_daemon 0640 compass system -/dev/akm8976_aot 0640 compass system -/dev/akm8973_daemon 0640 compass system -/dev/akm8973_aot 0640 compass system -/dev/bma150 0640 compass system -/dev/cm3602 0640 compass system -/dev/akm8976_pffd 0640 compass system -/dev/lightsensor 0640 system system -/dev/msm_pcm_out* 0660 system audio -/dev/msm_pcm_in* 0660 system audio -/dev/msm_pcm_ctl* 0660 system audio -/dev/msm_snd* 0660 system audio -/dev/msm_mp3* 0660 system audio -/dev/audience_a1026* 0660 system audio -/dev/tpa2018d1* 0660 system audio -/dev/msm_audpre 0660 system audio -/dev/msm_audio_ctl 0660 system audio -/dev/htc-acoustic 0660 system audio -/dev/vdec 0660 system audio -/dev/q6venc 0660 system audio -/dev/snd/dsp 0660 system audio -/dev/snd/dsp1 0660 system audio -/dev/snd/mixer 0660 system audio -/dev/fmradio 0660 system audio -/dev/smd0 0640 radio radio -/dev/qemu_trace 0666 system system -/dev/qmi 0640 radio radio -/dev/qmi0 0640 radio radio -/dev/qmi1 0640 radio radio -/dev/qmi2 0640 radio radio -/dev/bus/usb/* 0660 system usb - -# CDMA radio interface MUX -/dev/ts0710mux* 0640 radio radio -/dev/ppp 0660 radio vpn -/dev/tun 0660 vpn vpn - -# sysfs properties -/sys/devices/virtual/input/input* enable 0660 root input -/sys/devices/virtual/input/input* poll_delay 0660 root input +/dev/fimg2d 0666 system system +/dev/mali 0666 system system +/dev/ump 0666 system graphics +/dev/s5p-jpeg 0660 system system +/dev/s3c-mfc 0660 system graphics # camera /dev/video0 0660 system camera @@ -89,9 +14,6 @@ /dev/video2 0660 system camera /dev/video3 0660 system camera -# mfc -/dev/s3c-mfc 0660 system graphics - # for usb printer /dev/usb/lp* 0660 system usb @@ -99,26 +21,23 @@ /dev/i2c-15 0660 system system /dev/CEC 0660 system system /dev/HPD 0660 system system -/dev/s5p-jpeg 0660 system system # for Sensor HAL /dev/akm8975 0660 system system /dev/accelerometer 0660 system system +# for bluetooth +/dev/s3c2410_serial0 0660 bluetooth bluetooth + +# for gps /dev/s3c2410_serial1 0660 root system /dev/tspdrv 0660 shell shell # for MTP /dev/usb_mtp_gadget 0660 system system -# added by slsi -/dev/mali 0666 system system -/dev/ump 0666 system graphics - # for ULP Audio /dev/s5p-rp 0660 system audio /dev/s5p-rp_ctrl 0660 system audio -/dev/fimg2d 0666 system system -/dev/pmem 0660 system graphics