Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Pavel Hofman <pavel.hofman@insite.cz>
To: "Bouterse, Bob" <bob.bouterse@dm-holdings-na.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: snd_ctl_elem_write fails -EPERM if snd_pcm is open
Date: Tue, 15 Apr 2008 20:33:13 +0200	[thread overview]
Message-ID: <4804F4E9.2080803@insite.cz> (raw)
In-Reply-To: <6601CF63C167F44A9A9E97E41EE4B16C685945@CLUSTEREX.corporate.local>

Bouterse, Bob wrote:
> I am trying to sent IEC958 status bits on a VT1708A HAD-INTEL codec
> while audio is being output.
> snd_ctl_elem_write returns -EPERM from
> linux-2.6.24.3/sound/core/control.c:769 .
>  
> Is there some way I can do this?
>  
> FYI using iecset will also give you an:
> # iecset copywrite on
> snd_ctl_elem_write: Operation not permitted
>  
> I am using alsa-lib-1.0.14a

Hi,

I guess the reason is in /usr/share/alsa/cards/HDA-Intel.conf . If I 
understand correctly, upon opening the iec958 stream, the status bits 
control gets locked

..........
			hook_args [
			{
				name "IEC958 Playback Default"
				lock true
				preserve true
				value [ $AES0 $AES1 $AES2 $AES3 ]
			}
...........

The same applies to a number of other cards.

Pavel.

      reply	other threads:[~2008-04-15 18:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-15 17:33 snd_ctl_elem_write fails -EPERM if snd_pcm is open Bouterse, Bob
2008-04-15 18:33 ` Pavel Hofman [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=4804F4E9.2080803@insite.cz \
    --to=pavel.hofman@insite.cz \
    --cc=alsa-devel@alsa-project.org \
    --cc=bob.bouterse@dm-holdings-na.com \
    /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