From: maarten van es <maarten.h.van.es@gmail.com>
To: Clemens Ladisch <clemens@ladisch.de>, alsa-devel@alsa-project.org
Subject: Re: salsa error message setting hwparams
Date: Fri, 24 Apr 2009 20:32:11 +0100 [thread overview]
Message-ID: <bca65b460904241232x146c5b2bx7d43f52e7b9bb756@mail.gmail.com> (raw)
In-Reply-To: <bca65b460904240230g34172bc5r600f3b32f52b7e8a@mail.gmail.com>
On Fri, Apr 24, 2009 at 10:30 AM, maarten van es
<maarten.h.van.es@gmail.com> wrote:
> Hi
>
> Right now I don't have the machine at hand as I'm at work, but I don't
> think the sample format is the problem. Like I said, my program works
> fine with the hdsp on glibc / alsa. On uclibc / salsa I get the error
> setting any hw param, starting with setting the access method to
> rw_interleaved, and including setting the sample rate while I switched
> the card already to the correct rate with amixer.
> Furthermore, if the problem is an unsupported format I wouldn't expect
> the error to be "operation not permitted".
> I'll try that program anyway when I'm back home to see what it tells me.
>
> Thanks
> Maarten
>
> On Fri, Apr 24, 2009 at 10:03 AM, Clemens Ladisch <clemens@ladisch.de> wrote:
>> (please don't top-post)
>>
>> maarten van es wrote:
>>> Thanks, but that's not it. I make sure I set the correct sample rate
>>> with amixer first.
>>
>> And what about the sample format? I looked at the drivers; the two
>> sound cards do not have a common sample format.
>>
>>
>> Best regards,
>> Clemens
>>
>
Thanks, the problem was indeed that I was setting hwparams that are
not supported by the card. I do think salsa lib could return a more
relevant error than "operation not permitted" and I'll see if I can
come up with something for that.
Right now though I am trying to figure out what snd_pcm_writen needs
for its second parameter, void** bufs. I get the error "bad address"
when passing in an array of pointers to a malloc-ed space big enough
to hold a channels' worth of data. Sorry if I am missing obvious
documentation about this, but what should I pass for this parameter?
Regards
Maarten
prev parent reply other threads:[~2009-04-24 19:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-23 19:31 salsa error message setting hwparams maarten van es
2009-04-24 7:22 ` Clemens Ladisch
[not found] ` <bca65b460904240151h6ad716c2re9bdfb0db67703a0@mail.gmail.com>
2009-04-24 9:03 ` Clemens Ladisch
[not found] ` <bca65b460904240230g34172bc5r600f3b32f52b7e8a@mail.gmail.com>
2009-04-24 19:32 ` maarten van es [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=bca65b460904241232x146c5b2bx7d43f52e7b9bb756@mail.gmail.com \
--to=maarten.h.van.es@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=clemens@ladisch.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox