From mboxrd@z Thu Jan 1 00:00:00 1970 From: sudarshan bisht Subject: Re: ALSA Mixer issue Date: Tue, 3 Aug 2010 10:35:22 +0300 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-qy0-f179.google.com (mail-qy0-f179.google.com [209.85.216.179]) by alsa0.perex.cz (Postfix) with ESMTP id 2E946243F3 for ; Tue, 3 Aug 2010 09:35:23 +0200 (CEST) Received: by qyk8 with SMTP id 8so2606545qyk.17 for ; Tue, 03 Aug 2010 00:35:22 -0700 (PDT) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Jaroslav Kysela Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org Thanks Jaroslav , It works for me !!! On Fri, Jul 30, 2010 at 5:36 PM, sudarshan bisht wrote: > Thanks for the reply , I will try the same soon . > > On Fri, Jul 30, 2010 at 7:00 PM, Jaroslav Kysela wrote: > >> On Fri, 30 Jul 2010, sudarshan bisht wrote: >> >> Hi , >>> >>> I wanted to know that can we use multiple handlers for the same ALSA >>> mixer ? >>> >>> My use case is something like this . >>> >>> I have two modules and having two different handlers for ALSA mixer. >>> First >>> module does some volume change , and I try to read the latest volume >>> using >>> my second handler ( of first second module) . >>> >>> But I am not getting the most recent value in second handler ( the volume >>> set by the first module ) so I feel there is some inconsistency when I >>> use >>> two handlers from two different modules in order to fetch volume >>> information >>> from the ALSA mixer. >>> >> >> You must sync the cached information using poll() or select() on file >> descriptors returned by snd_mixer_poll_descriptors_*() functions and call >> snd_mixer_handle_events() if any events are waiting. >> >> Jaroslav >> >> ----- >> Jaroslav Kysela >> Linux Kernel Sound Maintainer >> ALSA Project, Red Hat, Inc. >> >> > > > -- > Regards, > > Sudarshan Bisht > -- Regards, Sudarshan Bisht