Open Source Telephony
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH] call-volume: Remove atom registered check
Date: Fri, 26 Nov 2010 13:43:05 -0600	[thread overview]
Message-ID: <4CF00DC9.2060405@gmail.com> (raw)
In-Reply-To: <1290783487-5579-1-git-send-email-jeevaka.badrappan@elektrobit.com>

[-- Attachment #1: Type: text/plain, Size: 787 bytes --]

Hi Jeevaka,

On 11/26/2010 08:58 AM, Jeevaka Badrappan wrote:
> ---
>  src/call-volume.c |    9 ---------
>  1 files changed, 0 insertions(+), 9 deletions(-)
> 
> diff --git a/src/call-volume.c b/src/call-volume.c
> index dd1be92..c448d32 100644
> --- a/src/call-volume.c
> +++ b/src/call-volume.c
> @@ -62,9 +62,6 @@ void ofono_call_volume_set_speaker_volume(struct ofono_call_volume *cv,
>  
>  	cv->speaker_volume = percent;
>  
> -	if (__ofono_atom_get_registered(cv->atom) == FALSE)
> -		return;
> -

The idea here is that the atom driver can set the volume before it is
fully registered / initialized, hence the reason for this check.

The chance of this happening is small, but I think it is safe to leave
it the way it was.  Thoughts?

Regards,
-Denis

      reply	other threads:[~2010-11-26 19:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-26 14:58 [PATCH] call-volume: Remove atom registered check Jeevaka Badrappan
2010-11-26 19:43 ` Denis Kenzior [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CF00DC9.2060405@gmail.com \
    --to=denkenz@gmail.com \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox