--
unsubscribe: android-porti...@googlegroups.com
website: http://groups.google.com/group/android-porting
Guys,
This is a little bit confusing for me. I wonder that HSP/HFP supports mute from Headset device. Please correct me if I am wrong.
The HFP profile does not support MUTE feature. Please find the description of AT+VGM command as per the HFP specification.
Syntax: AT+VGM=<gain>
Description:
This command is issued by the HF device to report its current microphone gain level setting to the AG (phone). <gain> is a decimal numeric constant, relating to a particular (implementation dependent) volume level controlled by the HF device. This command does not change the microphone gain of the AG; it simply indicates the current value of the microphone gain in the HF device.
Values:
<gain>: 0 -15, entered as integer values, where
0 = Minimum gain [It does not mean mite but just that this is min mic gain]
15 = Maximum gain
So how does HF device implement the mute feature? When user enables mute during a call from HF device (by pressing some key/s on the HF device), the HF device simply cuts the mic input (typically setting the mic gain to zero), and only silence goes to the AG and then to the remote device. As AG+VGM=0 does not mean any thing to AG, it cannot assume that mute is enabled by HF. Hence when you enable mute from HF, you must unmute from HF.
Sent on my BlackBerry® from Vodafone
Hi Guru,
Spec does not say that AT+VGM=0 is MUTE and mentions that “0” means minimum mic gain. Of course we can assume that minimum mic gain == mute but it needs to be tested with few HF devices to ensure that the solution is interoperable.
Assuming that our assumption is right and VM=0 means MUTE, you can display the mute icon on the GUI.
But do you want user to then unmute from UI? We never know, if I see mute icon, I may go and unmute from phone as it is easier compared to pressing some combinations of buttons on HF device. In such case are you sending +VGM command from phone to HFP device and with what value +VGM:??. Unless you do this the MIC on HFP device is still mute.
What happens when you mute the mic from phone? Does the phone sends +VGM:0 to HF device?
Are you planning to support such behavior where user mute from phone and un-mute from HF device? - I see potential issues here as unless the HF (mute/unmute) state is synchronized with AG. For example if I do mute from phone and then press HF device buttons to un-mute, we never know if the HFP device will try to understand that user action as mute or un-mute. This needs to be tested.
Regards,
Naveen