Thanks to Andreas Kenmade and Radek Polak for doing the hard part!
Attached are modified alsa scenarios for working with the shr kernel + Andreas' patch. All scenarios have to be replaced when the kernel is patched as new alsa controls are added. Someone with an A3 should try the kernel patch to make sure it still adds the control for them.
The scenarios are: gsmhandset: using the earpiece with HW routing swgsmhandset: using the earpiece with SW routinggsmspeaker: using the stereo speakers wth HW routing. I get a slight echo when testing this unless the volume is low. I may be using the wrong microphone? I use the same microphone as the handset scenarios.
headset: sound through the headphone jackI have also attached my alsa.conf which has the swgsmhandset profile added. Hot switching profiles seems to be broken. I have to replace gsmheadset with swgsmheadset and restart fsodeviced to use sw routing for some reason.
libphoneui.conf includes the correct volume adjuster settings for the HW routed sound.
The kernel patch is here: https://github.com/radekp/linux-2.6/commit/f43ce5c444de7db988ad214257f4a6ac0e49308d Ben
[alsa] cardname = default default = scenario.stereoout # GSM #[scenario.voiphandset] # [scenario.gsmspeaker] # #[scenario.gsmheadset] # [scenario.gsmhandset] [scenario.swgsmhandset] # #[scenario.gsmbluetooth] # #[scenario.capturehandset] # PCM [scenario.stereoout] [scenario.headset]
alsa-scenarios.tar.gz
Description: GNU Zip compressed data
# The following sections are "view" specific settings # every view must have a "module" field that specifies the name of the # module that should be used for that view, and additional view specific # settings if supported by that view. [dialer] module = shr [messages] module = shr request_message_receipt = 0 [contacts] module = shr [calls] module = shr [phonelog] module = shr [notification] module = shr [idle_screen] module = shr [settings] module = shr #Alsa configuration for the sound utility functions # The general alsa section [alsa] hardware_control_name = hw:0 #Each section describs a sound state #each section can accept the following fields: #speaker: the name of the corrosponding alsa control #microphone: the name of the corrosponding alsa control #speaker_min: the wanted lower bound to allow setting this control to #speaker_max: the wanted upper bound to allow setting this control to #microphone_min: the wanted lower bound to allow setting this control to #microphone_max: the wanted upper bound to allow setting this control to [alsa_control_idle] [alsa_control_speaker] speaker = DAC Voice Digital Downlink Volume microphone = Voice Digital Loopback Volume [alsa_control_handset] speaker = DAC Voice Digital Downlink Volume microphone = Voice Digital Loopback Volume [alsa_control_headset] [alsa_control_bluetooth] [device] # sysfs node for the vibrator to use #vibrator = /sys/class/leds/gta02\::vibrator/brightness # sysfs node to set the backlight brightness #backlight = /sys/class/backlight/pcf50633-backlight #[feedback_error] #[feedback_warning] #[feedback_notice] #[feedback_click]
_______________________________________________ Shr-devel mailing list Shr-devel@lists.shr-project.org http://lists.shr-project.org/mailman/listinfo/shr-devel