All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lee Revell <rlrevell@joe-job.com>
To: "Pamela K. Clift" <pclift@pianodisc.com>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: adding volume to raw-midi device
Date: Fri, 27 Oct 2006 13:27:15 -0400	[thread overview]
Message-ID: <1161970036.27225.126.camel@mindpipe> (raw)
In-Reply-To: <4A9D3274C93BF5409FEAB520ADD94429172B2B@exchange01-srv.pianodisc.com>

On Fri, 2006-10-27 at 10:20 -0700, Pamela K. Clift wrote:
> I am starting this email again.  I know I had one response before but I can not get to it.  Most of our office building has burnt down to the ground.  It has taken a while to get things back up and for me to be able to get back to this.
> 
> 
> 
> 
> I am new to alsa and I am trying to write a raw-midi device driver.  When I tried to add the volume control I could not compile the file anymore.  I am hoping someone can help me and see what I am missing.  I have looked in the Writing an Alsa Driver chapter 6 and I have looked at dummy.c .  I believe I am following what they say to do but when I compile the file I get many errors including "warning: "struct snd_ctl_elem_info declared inside parameter list"   I have at the top of my file #include <sound/control.h> along with the other includes I see in the sample files.  Below is the code I added.
> 

ALSA used to typedef all of these structs.  Some people thought that
obfuscated the code so the typedefs were removed between 1.0.8 and the
current version.  Looks like you're trying to add new-style code to old
ALSA.

Should compile against 1.0.8 if you replace "struct snd_foo" with
"snd_foo_t" for all foo...

Lee


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

  reply	other threads:[~2006-10-27 17:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-27 17:20 adding volume to raw-midi device Pamela K. Clift
2006-10-27 17:27 ` Lee Revell [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-09-26 22:03 Pamela K. Clift
2006-09-27  7:28 ` Clemens Ladisch

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=1161970036.27225.126.camel@mindpipe \
    --to=rlrevell@joe-job.com \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=pclift@pianodisc.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 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.