From: Adrian McMenamin <adrian@mcmen.demon.co.uk>
To: Lee Revell <rlrevell@joe-job.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: More mixer questions
Date: Sun, 02 Apr 2006 10:39:28 +0100 [thread overview]
Message-ID: <1143970769.9564.2.camel@localhost.localdomain> (raw)
In-Reply-To: <1143947370.6601.17.camel@mindpipe>
On Sat, 2006-04-01 at 22:09 -0500, Lee Revell wrote:
> On Sun, 2006-04-02 at 00:18 +0100, Adrian McMenamin wrote:
> > Sorry to hit the list with another question about the mixer/control
> > stuff, but I'm pretty puzzled as to what I am getting wrong.
> >
> > I am using mpg123 compiled to only hack oss, so I am reliant on oss
> > emulation.
> >
> > I have the control code attached below, which defines both master and
> > pcm functions (mapped together as the device only plays PCM).
>
> Where's your __devinit snd_aica_mixer() routine that actually creates
> the mixer controls, with snd_ctl_new1()?
The controls do work though, and they are being created - the code
fragment is below (with lots of printks for debugging)
static int __devinit add_aicamixer_controls()
{
int err;
err = snd_ctl_add
(dreamcastcard->card,
snd_ctl_new1(&snd_aica_pcmvolume_control,
dreamcastcard));
if (err < 0){
snd_printk("pcmvolume failed\n");
return err;
}
err= snd_ctl_add
(dreamcastcard->card,
snd_ctl_new1(&snd_aica_pcmswitch_control,
dreamcastcard));
if (err < 0){
snd_printk("pcmswitch failed\n");
return err;
}
err = snd_ctl_add
(dreamcastcard->card,
snd_ctl_new1(&snd_aica_mastervolume_control,
dreamcastcard));
if (err < 0){
snd_printk("mastervolume failed\n");
return err;
}
err = snd_ctl_add
(dreamcastcard->card,
snd_ctl_new1(&snd_aica_masterswitch_control,
dreamcastcard));
if (err < 0){
snd_printk("masterswitch failed\n");
return err;
}
/* succeeded */
return 0;
}
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
prev parent reply other threads:[~2006-04-02 9:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-01 23:18 More mixer questions Adrian McMenamin
2006-04-02 3:09 ` Lee Revell
2006-04-02 9:39 ` Adrian McMenamin [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=1143970769.9564.2.camel@localhost.localdomain \
--to=adrian@mcmen.demon.co.uk \
--cc=alsa-devel@alsa-project.org \
--cc=rlrevell@joe-job.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