* salsa error message setting hwparams
@ 2009-04-23 19:31 maarten van es
2009-04-24 7:22 ` Clemens Ladisch
0 siblings, 1 reply; 4+ messages in thread
From: maarten van es @ 2009-04-23 19:31 UTC (permalink / raw)
To: alsa-devel
Hi everyone,
I am running out of ideas of why I am getting the error "operation not
permitted" when I try setting hw parameters with one of my audio
cards. I have a custom linux system based on uclibc with salsa for
audio and use the default device for playback. This sytem works fine
on a via C7 based pc with via audio. When I try an exact copy of the
system on an athlon64 based system with a HDPS9632 I get this error
message. The card works fine with other linux systems. I tested
several (recent) kernels with my system, all the same result. Any
ideas why I might be getting this message?
Maarten
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: salsa error message setting hwparams
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>
0 siblings, 1 reply; 4+ messages in thread
From: Clemens Ladisch @ 2009-04-24 7:22 UTC (permalink / raw)
To: maarten van es; +Cc: alsa-devel
maarten van es wrote:
> This sytem works fine on a via C7 based pc with via audio. When I try
> an exact copy of the system on an athlon64 based system with a
> HDPS9632 I get this error message.
It's probably that the HDSP does not support the sample format or rate
that you're tryint to use. Try this tool:
http://article.gmane.org/gmane.linux.alsa.user/32525
HTH
Clemens
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: salsa error message setting hwparams
[not found] ` <bca65b460904240151h6ad716c2re9bdfb0db67703a0@mail.gmail.com>
@ 2009-04-24 9:03 ` Clemens Ladisch
[not found] ` <bca65b460904240230g34172bc5r600f3b32f52b7e8a@mail.gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: Clemens Ladisch @ 2009-04-24 9:03 UTC (permalink / raw)
To: maarten van es; +Cc: alsa-devel
(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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: salsa error message setting hwparams
[not found] ` <bca65b460904240230g34172bc5r600f3b32f52b7e8a@mail.gmail.com>
@ 2009-04-24 19:32 ` maarten van es
0 siblings, 0 replies; 4+ messages in thread
From: maarten van es @ 2009-04-24 19:32 UTC (permalink / raw)
To: Clemens Ladisch, alsa-devel
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-04-24 19:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.