All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tim <terminator356@users.sourceforge.net>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: multi pcm and mmap problem
Date: Mon, 26 Nov 2007 17:46:59 -0500	[thread overview]
Message-ID: <200711261746.59712.terminator356@users.sourceforge.net> (raw)
In-Reply-To: <s5h4pf9s33w.wl%tiwai@suse.de>

On Monday 26 November 2007 05:38:59 am you wrote:
> > It seems to me, looking at the 'IEC958 CS8427 Error Status' results
> > below, that envy24control should perhaps be using it, instead of
> >  'Word Clock Status', as a 'locked' indicator.
> Actually 'Word Clock Status' is determined from this register value.
> So far it checks whether its zero or not.  But this seesm too strict.
> We'll need to check only the UNLOCK bit (bit 4) for sync status.
>
> How about the patch below (to alsa-kernel)?
>
> diff -r 5e8cab953031 pci/ice1712/delta.c
> --- a/pci/ice1712/delta.c	Mon Nov 26 09:00:56 2007 +0100
> +++ b/pci/ice1712/delta.c	Mon Nov 26 11:56:18 2007 +0100
> @@ -405,7 +405,7 @@ static int snd_ice1712_delta1010lt_wordc
>  	if (snd_i2c_sendbytes(ice->cs8427, &reg, 1) != 1)
>  		snd_printk(KERN_ERR "unable to send register 0x%x byte to CS8427\n",
> reg); snd_i2c_readbytes(ice->cs8427, &reg, 1);
> -	ucontrol->value.integer.value[0] = (reg ? 1 : 0);
> +	ucontrol->value.integer.value[0] = (reg & CS8427_UNLOCK) ? 1 : 0;
>  	return 0;
>  }

Ah, there we go! 
Tested OK connecting/disconnecting S/PDIF cable - 
 says 'locked' then 'no signal'.
Thanks again, Takashi. 
Tim.

  reply	other threads:[~2007-11-26 22:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-21  6:58 multi pcm and mmap problem terminator356
2007-11-21 11:01 ` Takashi Iwai
     [not found]   ` <200711211627.52438.terminator356@users.sourceforge.net>
2007-11-23 13:41     ` Takashi Iwai
2007-11-23 14:35       ` Takashi Iwai
2007-11-24  1:31         ` Tim
2007-11-24 10:16           ` Takashi Iwai
2007-11-25 22:51             ` Tim
2007-11-26 10:38               ` Takashi Iwai
2007-11-26 22:46                 ` Tim [this message]
2007-11-27 14:06                   ` Takashi Iwai
2007-12-01 23:33                     ` Tim
2007-12-02 13:40                       ` John Rigg

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=200711261746.59712.terminator356@users.sourceforge.net \
    --to=terminator356@users.sourceforge.net \
    --cc=alsa-devel@alsa-project.org \
    --cc=tiwai@suse.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.