All of lore.kernel.org
 help / color / mirror / Atom feed
* snd-hdsp driver error?
@ 2009-11-02 12:33 Lars Zobbe
  2009-11-03  6:48 ` Raymond Yau
  0 siblings, 1 reply; 12+ messages in thread
From: Lars Zobbe @ 2009-11-02 12:33 UTC (permalink / raw)
  To: alsa-devel

Hi.

Talking to one of the pulseaudio developers (*Colin Guthrie*) about a
problem with pulseaudio loading modules and my sound card (RME HDSP 9632), I
was adviced to inform you about the problem.

I'm on ubuntu 9.10, 64bit, kernel 2.6.31 with an amd64 x2 3800+ processor.


Symptoms are:
Can only make pulseaudio load modules with the deprecated load-module
module-detect command, module-udev-detect doesn't detect anything (no sound
- only null sink output in padevchooser).
I get terrible stuttering.
I can remove pulseaudio and make things work, more or less. However, that
leaves me without software mixing and apps fighting for the rights to make
sound. And more inconveniences (fx. no volume-control).
I can play sound from audacity without stuttering by choosing the cardname
directly in output HDSP, not ALSA, not pulseaudio.


When trying to run alsa-info.sh I get a lot of "not found" errors. So you'll
get some manual info (they might have moved som files around in ubuntu
9.10).

This is part of my syslog during a boot. (I did the formatting to bold).

Nov  2 10:57:32 lars-desktop pulseaudio[1524]: module.c: module-detect is
deprecated: Please use module-udev-detect instead of module-detect!
Nov  2 10:57:37 lars-desktop pulseaudio[1524]: ratelimit.c: 27 events
suppressed
Nov  2 10:57:39 lars-desktop pulseaudio[1612]: module.c: module-detect is
deprecated: Please use module-udev-detect instead of module-detect!
Nov  2 10:57:44 lars-desktop pulseaudio[1612]: ratelimit.c: 23 events
suppressed
Nov  2 10:57:44 lars-desktop pulseaudio[1612]: alsa-sink.c: ALSA woke us up
to write new data to the device, but there was actually nothing to write!
Nov  2 10:57:44 lars-desktop pulseaudio[1612]: alsa-sink.c: *Most likely
this is a bug in the ALSA driver 'snd_hdsp'. Please report this issue to the
ALSA developers.*
Nov  2 10:57:44 lars-desktop pulseaudio[1612]: alsa-sink.c: We were woken up
with POLLOUT set -- however a subsequent snd_pcm_avail() returned 0 or
another value < min_avail.
Nov  2 10:57:49 lars-desktop pulseaudio[1612]: ratelimit.c: 99 events
suppressed

Later if I try to play audio I get terrible skipping or stuttering and my
syslog (in less than a minute) writes:
Nov  2 11:55:16 lars-desktop pulseaudio[1612]: ratelimit.c: 16 events
suppressed
Nov  2 11:55:21 lars-desktop pulseaudio[1612]: ratelimit.c: 34 events
suppressed
Nov  2 11:55:26 lars-desktop pulseaudio[1612]: ratelimit.c: 70 events
suppressed
Nov  2 11:55:31 lars-desktop pulseaudio[1612]: ratelimit.c: 29 events
suppressed
Nov  2 11:55:36 lars-desktop pulseaudio[1612]: ratelimit.c: 43 events
suppressed
Nov  2 11:55:41 lars-desktop pulseaudio[1612]: ratelimit.c: 161 events
suppressed
Nov  2 11:55:46 lars-desktop pulseaudio[1612]: ratelimit.c: 28 events
suppressed
Nov  2 11:55:51 lars-desktop pulseaudio[1612]: ratelimit.c: 18 events
suppressed
Nov  2 11:55:56 lars-desktop pulseaudio[1612]: ratelimit.c: 16 events
suppressed

Here's the relevant part (concerning my sound card) of lspci -vvv

02:09.0 Multimedia audio controller: Xilinx Corporation RME Hammerfall DSP
(rev 9a)
    Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B- DisINTx-
    Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 255
    Interrupt: pin A routed to IRQ 19
    Region 0: Memory at fdff0000 (32-bit, non-prefetchable) [size=64K]
    Kernel driver in use: RME Hammerfall DSP
    Kernel modules: snd-hdsp

And:
lars@lars-desktop:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: DSP [Hammerfall DSP], device 0: RME Hammerfall HDSP 9632 [RME
Hammerfall HDSP 9632]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


lars@lars-desktop:~$ cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.21.
Compiled on Oct 15 2009 for kernel 2.6.31-14-generic (SMP).

lars@lars-desktop:~$ cat /proc/asound/cards
 0 [DSP            ]: H-DSP - Hammerfall DSP
                      RME Hammerfall HDSP 9632 at 0xfdff0000, irq 19


lars@lars-desktop:~$ cat /proc/asound/modules
 0 snd_hdsp

I don't have .asound.conf files.

lars@lars-desktop:~$ hdsploader
hdsploader - firmware loader for RME Hammerfall DSP cards
Looking for HDSP + Multiface or Digiface cards :
Card 0 : RME Hammerfall HDSP 9632 at 0xfdff0000, irq 19

And of course. My computer makes no sound if I don't load the hdspmixer at
startup. I guess that's just normal for this card though.

Please let me know, if you need more info. I really hope you can help out
here. And that this might help you to.

Thanks for the great work you do. Greetings.
Lars Zobbe.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: snd-hdsp driver error?
  2009-11-02 12:33 snd-hdsp driver error? Lars Zobbe
@ 2009-11-03  6:48 ` Raymond Yau
       [not found]   ` <933ed0910911031105m608009cbg2ccd1c543887befa@mail.gmail.com>
  0 siblings, 1 reply; 12+ messages in thread
From: Raymond Yau @ 2009-11-03  6:48 UTC (permalink / raw)
  To: Alsa-devel

I guess route plugin used by RME96*.conf does not support mmap when there is
channel conversion since minimum channels supported by hdsp is 14


static struct snd_pcm_hardware snd_hdsp_playback_subinfo =
{
    .info = (SNDRV_PCM_INFO_MMAP |
                 SNDRV_PCM_INFO_MMAP_VALID |
                 SNDRV_PCM_INFO_NONINTERLEAVED |
                 SNDRV_PCM_INFO_SYNC_START |
                 SNDRV_PCM_INFO_DOUBLE),
#ifdef SNDRV_BIG_ENDIAN
    .formats = SNDRV_PCM_FMTBIT_S32_BE,
#else
    .formats = SNDRV_PCM_FMTBIT_S32_LE,
#endif
    .rates = (SNDRV_PCM_RATE_32000 |
                 SNDRV_PCM_RATE_44100 |
                 SNDRV_PCM_RATE_48000 |
                 SNDRV_PCM_RATE_64000 |
                 SNDRV_PCM_RATE_88200 |
                 SNDRV_PCM_RATE_96000),
    .rate_min = 32000,
    .rate_max = 96000,
    .channels_min = 14,
    .channels_max = HDSP_MAX_CHANNELS,
    .buffer_bytes_max = HDSP_CHANNEL_BUFFER_BYTES * HDSP_MAX_CHANNELS,
    .period_bytes_min = (64 * 4) * 10,
    .period_bytes_max = (8192 * 4) * HDSP_MAX_CHANNELS,
    .periods_min = 2,
    .periods_max = 2,
    .fifo_size = 0
};

2009/11/2 Lars Zobbe <fedesensfar@gmail.com>

> Hi.
>
> Talking to one of the pulseaudio developers (*Colin Guthrie*) about a
> problem with pulseaudio loading modules and my sound card (RME HDSP 9632),
> I
> was adviced to inform you about the problem.
>
> I'm on ubuntu 9.10, 64bit, kernel 2.6.31 with an amd64 x2 3800+ processor.
>
>
> Symptoms are:
> Can only make pulseaudio load modules with the deprecated load-module
> module-detect command, module-udev-detect doesn't detect anything (no sound
> - only null sink output in padevchooser).
> I get terrible stuttering.
> I can remove pulseaudio and make things work, more or less. However, that
> leaves me without software mixing and apps fighting for the rights to make
> sound. And more inconveniences (fx. no volume-control).
> I can play sound from audacity without stuttering by choosing the cardname
> directly in output HDSP, not ALSA, not pulseaudio.
>
>
> When trying to run alsa-info.sh I get a lot of "not found" errors. So
> you'll
> get some manual info (they might have moved som files around in ubuntu
> 9.10).
>
> This is part of my syslog during a boot. (I did the formatting to bold).
>
> Nov  2 10:57:32 lars-desktop pulseaudio[1524]: module.c: module-detect is
> deprecated: Please use module-udev-detect instead of module-detect!
> Nov  2 10:57:37 lars-desktop pulseaudio[1524]: ratelimit.c: 27 events
> suppressed
> Nov  2 10:57:39 lars-desktop pulseaudio[1612]: module.c: module-detect is
> deprecated: Please use module-udev-detect instead of module-detect!
> Nov  2 10:57:44 lars-desktop pulseaudio[1612]: ratelimit.c: 23 events
> suppressed
> Nov  2 10:57:44 lars-desktop pulseaudio[1612]: alsa-sink.c: ALSA woke us up
> to write new data to the device, but there was actually nothing to write!
> Nov  2 10:57:44 lars-desktop pulseaudio[1612]: alsa-sink.c: *Most likely
> this is a bug in the ALSA driver 'snd_hdsp'. Please report this issue to
> the
> ALSA developers.*
> Nov  2 10:57:44 lars-desktop pulseaudio[1612]: alsa-sink.c: We were woken
> up
> with POLLOUT set -- however a subsequent snd_pcm_avail() returned 0 or
> another value < min_avail.
> Nov  2 10:57:49 lars-desktop pulseaudio[1612]: ratelimit.c: 99 events
> suppressed
>
> Later if I try to play audio I get terrible skipping or stuttering and my
> syslog (in less than a minute) writes:
> Nov  2 11:55:16 lars-desktop pulseaudio[1612]: ratelimit.c: 16 events
> suppressed
> Nov  2 11:55:21 lars-desktop pulseaudio[1612]: ratelimit.c: 34 events
> suppressed
> Nov  2 11:55:26 lars-desktop pulseaudio[1612]: ratelimit.c: 70 events
> suppressed
> Nov  2 11:55:31 lars-desktop pulseaudio[1612]: ratelimit.c: 29 events
> suppressed
> Nov  2 11:55:36 lars-desktop pulseaudio[1612]: ratelimit.c: 43 events
> suppressed
> Nov  2 11:55:41 lars-desktop pulseaudio[1612]: ratelimit.c: 161 events
> suppressed
> Nov  2 11:55:46 lars-desktop pulseaudio[1612]: ratelimit.c: 28 events
> suppressed
> Nov  2 11:55:51 lars-desktop pulseaudio[1612]: ratelimit.c: 18 events
> suppressed
> Nov  2 11:55:56 lars-desktop pulseaudio[1612]: ratelimit.c: 16 events
> suppressed
>
> Here's the relevant part (concerning my sound card) of lspci -vvv
>
> 02:09.0 Multimedia audio controller: Xilinx Corporation RME Hammerfall DSP
> (rev 9a)
>    Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
> Stepping- SERR- FastB2B- DisINTx-
>    Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR- INTx-
>    Latency: 255
>    Interrupt: pin A routed to IRQ 19
>    Region 0: Memory at fdff0000 (32-bit, non-prefetchable) [size=64K]
>    Kernel driver in use: RME Hammerfall DSP
>    Kernel modules: snd-hdsp
>
> And:
> lars@lars-desktop:~$ aplay -l
> **** List of PLAYBACK Hardware Devices ****
> card 0: DSP [Hammerfall DSP], device 0: RME Hammerfall HDSP 9632 [RME
> Hammerfall HDSP 9632]
>  Subdevices: 1/1
>  Subdevice #0: subdevice #0
>
>
> lars@lars-desktop:~$ cat /proc/asound/version
> Advanced Linux Sound Architecture Driver Version 1.0.21.
> Compiled on Oct 15 2009 for kernel 2.6.31-14-generic (SMP).
>
> lars@lars-desktop:~$ cat /proc/asound/cards
>  0 [DSP            ]: H-DSP - Hammerfall DSP
>                      RME Hammerfall HDSP 9632 at 0xfdff0000, irq 19
>
>
> lars@lars-desktop:~$ cat /proc/asound/modules
>  0 snd_hdsp
>
> I don't have .asound.conf files.
>
> lars@lars-desktop:~$ hdsploader
> hdsploader - firmware loader for RME Hammerfall DSP cards
> Looking for HDSP + Multiface or Digiface cards :
> Card 0 : RME Hammerfall HDSP 9632 at 0xfdff0000, irq 19
>
> And of course. My computer makes no sound if I don't load the hdspmixer at
> startup. I guess that's just normal for this card though.
>
> Please let me know, if you need more info. I really hope you can help out
> here. And that this might help you to.
>
> Thanks for the great work you do. Greetings.
> Lars Zobbe.
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: snd-hdsp driver error?
       [not found]   ` <933ed0910911031105m608009cbg2ccd1c543887befa@mail.gmail.com>
@ 2009-11-05  4:29     ` Raymond Yau
  2009-11-05 23:30       ` Lars Zobbe
                         ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Raymond Yau @ 2009-11-05  4:29 UTC (permalink / raw)
  To: alsa-devel

Please provide the full pulseaudio log and output of alsa-info.sh

http://www.pulseaudio.org/wiki/Troubleshooting

pulseaudio -k; pulseaudio -vvv

and

aplay -v -Dfront:0 32bit.wav

aplay -v -M -Dfront:0 32bit.wav

aplay -v -Dplughw:0 any.wav

aplay -v -M -Dplughw:0 any.wav


2009/11/4 Lars Zobbe <fedesensfar@gmail.com>

> Hi Raymond.
>
> I so sorry Raymond. But I'm not sure what to do with this info. Is there
> something more I have to tell you? Is there anything I can do to make
> pulseaudio able to detect via udev? Can I copy-paste that bit of code you
> sent me somewhere?
> Please tell me if there's more you need to know.
> Greetings.
> Lars.
>
>
>
>
> On Tue, Nov 3, 2009 at 7:48 AM, Raymond Yau <superquad.vortex2@gmail.com>wrote:
>
>> I guess route plugin used by RME96*.conf does not support mmap when there
>> is
>> channel conversion since minimum channels supported by hdsp is 14
>>
>>
>> static struct snd_pcm_hardware snd_hdsp_playback_subinfo =
>> {
>>    .info = (SNDRV_PCM_INFO_MMAP |
>>                 SNDRV_PCM_INFO_MMAP_VALID |
>>                 SNDRV_PCM_INFO_NONINTERLEAVED |
>>                 SNDRV_PCM_INFO_SYNC_START |
>>                 SNDRV_PCM_INFO_DOUBLE),
>> #ifdef SNDRV_BIG_ENDIAN
>>    .formats = SNDRV_PCM_FMTBIT_S32_BE,
>> #else
>>    .formats = SNDRV_PCM_FMTBIT_S32_LE,
>> #endif
>>    .rates = (SNDRV_PCM_RATE_32000 |
>>                 SNDRV_PCM_RATE_44100 |
>>                 SNDRV_PCM_RATE_48000 |
>>                 SNDRV_PCM_RATE_64000 |
>>                 SNDRV_PCM_RATE_88200 |
>>                 SNDRV_PCM_RATE_96000),
>>    .rate_min = 32000,
>>    .rate_max = 96000,
>>    .channels_min = 14,
>>    .channels_max = HDSP_MAX_CHANNELS,
>>    .buffer_bytes_max = HDSP_CHANNEL_BUFFER_BYTES * HDSP_MAX_CHANNELS,
>>    .period_bytes_min = (64 * 4) * 10,
>>    .period_bytes_max = (8192 * 4) * HDSP_MAX_CHANNELS,
>>    .periods_min = 2,
>>    .periods_max = 2,
>>    .fifo_size = 0
>> };
>>
>> 2009/11/2 Lars Zobbe <fedesensfar@gmail.com>
>>
>> > Hi.
>> >
>> > Talking to one of the pulseaudio developers (*Colin Guthrie*) about a
>> > problem with pulseaudio loading modules and my sound card (RME HDSP
>> 9632),
>> > I
>> > was adviced to inform you about the problem.
>> >
>> > I'm on ubuntu 9.10, 64bit, kernel 2.6.31 with an amd64 x2 3800+
>> processor.
>> >
>> >
>> > Symptoms are:
>> > Can only make pulseaudio load modules with the deprecated load-module
>> > module-detect command, module-udev-detect doesn't detect anything (no
>> sound
>> > - only null sink output in padevchooser).
>> > I get terrible stuttering.
>> > I can remove pulseaudio and make things work, more or less. However,
>> that
>> > leaves me without software mixing and apps fighting for the rights to
>> make
>> > sound. And more inconveniences (fx. no volume-control).
>> > I can play sound from audacity without stuttering by choosing the
>> cardname
>> > directly in output HDSP, not ALSA, not pulseaudio.
>> >
>> >
>> > When trying to run alsa-info.sh I get a lot of "not found" errors. So
>> > you'll
>> > get some manual info (they might have moved som files around in ubuntu
>> > 9.10).
>> >
>> > This is part of my syslog during a boot. (I did the formatting to bold).
>> >
>> > Nov  2 10:57:32 lars-desktop pulseaudio[1524]: module.c: module-detect
>> is
>> > deprecated: Please use module-udev-detect instead of module-detect!
>> > Nov  2 10:57:37 lars-desktop pulseaudio[1524]: ratelimit.c: 27 events
>> > suppressed
>> > Nov  2 10:57:39 lars-desktop pulseaudio[1612]: module.c: module-detect
>> is
>> > deprecated: Please use module-udev-detect instead of module-detect!
>> > Nov  2 10:57:44 lars-desktop pulseaudio[1612]: ratelimit.c: 23 events
>> > suppressed
>> > Nov  2 10:57:44 lars-desktop pulseaudio[1612]: alsa-sink.c: ALSA woke us
>> up
>> > to write new data to the device, but there was actually nothing to
>> write!
>> > Nov  2 10:57:44 lars-desktop pulseaudio[1612]: alsa-sink.c: *Most likely
>> > this is a bug in the ALSA driver 'snd_hdsp'. Please report this issue to
>> > the
>> > ALSA developers.*
>> > Nov  2 10:57:44 lars-desktop pulseaudio[1612]: alsa-sink.c: We were
>> woken
>> > up
>> > with POLLOUT set -- however a subsequent snd_pcm_avail() returned 0 or
>> > another value < min_avail.
>> > Nov  2 10:57:49 lars-desktop pulseaudio[1612]: ratelimit.c: 99 events
>> > suppressed
>> >
>> > Later if I try to play audio I get terrible skipping or stuttering and
>> my
>> > syslog (in less than a minute) writes:
>> > Nov  2 11:55:16 lars-desktop pulseaudio[1612]: ratelimit.c: 16 events
>> > suppressed
>> > Nov  2 11:55:21 lars-desktop pulseaudio[1612]: ratelimit.c: 34 events
>> > suppressed
>> > Nov  2 11:55:26 lars-desktop pulseaudio[1612]: ratelimit.c: 70 events
>> > suppressed
>> > Nov  2 11:55:31 lars-desktop pulseaudio[1612]: ratelimit.c: 29 events
>> > suppressed
>> > Nov  2 11:55:36 lars-desktop pulseaudio[1612]: ratelimit.c: 43 events
>> > suppressed
>> > Nov  2 11:55:41 lars-desktop pulseaudio[1612]: ratelimit.c: 161 events
>> > suppressed
>> > Nov  2 11:55:46 lars-desktop pulseaudio[1612]: ratelimit.c: 28 events
>> > suppressed
>> > Nov  2 11:55:51 lars-desktop pulseaudio[1612]: ratelimit.c: 18 events
>> > suppressed
>> > Nov  2 11:55:56 lars-desktop pulseaudio[1612]: ratelimit.c: 16 events
>> > suppressed
>> >
>> > Here's the relevant part (concerning my sound card) of lspci -vvv
>> >
>> > 02:09.0 Multimedia audio controller: Xilinx Corporation RME Hammerfall
>> DSP
>> > (rev 9a)
>> >    Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
>> > Stepping- SERR- FastB2B- DisINTx-
>> >    Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
>> > <TAbort- <MAbort- >SERR- <PERR- INTx-
>> >    Latency: 255
>> >    Interrupt: pin A routed to IRQ 19
>> >    Region 0: Memory at fdff0000 (32-bit, non-prefetchable) [size=64K]
>> >    Kernel driver in use: RME Hammerfall DSP
>> >    Kernel modules: snd-hdsp
>> >
>> > And:
>> > lars@lars-desktop:~$ aplay -l
>> > **** List of PLAYBACK Hardware Devices ****
>> > card 0: DSP [Hammerfall DSP], device 0: RME Hammerfall HDSP 9632 [RME
>> > Hammerfall HDSP 9632]
>> >  Subdevices: 1/1
>> >  Subdevice #0: subdevice #0
>> >
>> >
>> > lars@lars-desktop:~$ cat /proc/asound/version
>> > Advanced Linux Sound Architecture Driver Version 1.0.21.
>> > Compiled on Oct 15 2009 for kernel 2.6.31-14-generic (SMP).
>> >
>> > lars@lars-desktop:~$ cat /proc/asound/cards
>> >  0 [DSP            ]: H-DSP - Hammerfall DSP
>> >                      RME Hammerfall HDSP 9632 at 0xfdff0000, irq 19
>> >
>> >
>> > lars@lars-desktop:~$ cat /proc/asound/modules
>> >  0 snd_hdsp
>> >
>> > I don't have .asound.conf files.
>> >
>> > lars@lars-desktop:~$ hdsploader
>> > hdsploader - firmware loader for RME Hammerfall DSP cards
>> > Looking for HDSP + Multiface or Digiface cards :
>> > Card 0 : RME Hammerfall HDSP 9632 at 0xfdff0000, irq 19
>> >
>> > And of course. My computer makes no sound if I don't load the hdspmixer
>> at
>> > startup. I guess that's just normal for this card though.
>> >
>> > Please let me know, if you need more info. I really hope you can help
>> out
>> > here. And that this might help you to.
>> >
>> > Thanks for the great work you do. Greetings.
>> > Lars Zobbe.
>> > _______________________________________________
>> > Alsa-devel mailing list
>> > Alsa-devel@alsa-project.org
>> > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>> >
>> _______________________________________________
>> Alsa-devel mailing list
>> Alsa-devel@alsa-project.org
>> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>>
>
>

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: snd-hdsp driver error?
  2009-11-05  4:29     ` Raymond Yau
@ 2009-11-05 23:30       ` Lars Zobbe
  2009-11-05 23:35       ` Lars Zobbe
  2009-11-06  0:46       ` Lars Zobbe
  2 siblings, 0 replies; 12+ messages in thread
From: Lars Zobbe @ 2009-11-05 23:30 UTC (permalink / raw)
  To: Raymond Yau; +Cc: alsa-devel

Thanks Raymound. I've attached the outputs in 2 separate files, one with
alsa-info and the other 5 command in another file.

I'm not sure alsa-info ran as it was supposed to. The output was rather
short as you can se in the attached file en in the terminal I got this:

alsa-info.sh: 381: [[: not found
ALSA Information Script v 0.4.58
--------------------------------

This script visits the following commands/files to collect diagnostic
information about your ALSA installation and sound related hardware.

  dmesg
  lspci
  lsmod
  aplay
  amixer
  alsactl
  /proc/asound/
  /sys/class/sound/
  ~/.asoundrc (etc.)

See 'alsa-info.sh --help' for command line options.

alsa-info.sh: 607: [[: not found
alsa-info.sh: 607: [[: not found
alsa-info.sh: 5: [[: not found
alsa-info.sh: 5: [[: not found
alsa-info.sh: 5: [[: not found
alsa-info.sh: 5: [[: not found
alsa-info.sh: 5: [[: not found
alsa-info.sh: 5: [[: not found
alsa-info.sh: 5: [[: not found
alsa-info.sh: 734: [[: not found
alsa-info.sh: 759: [[: not found
Automatically upload ALSA information to www.alsa-project.org? [y/N] : read:
759: Illegal option -e
alsa-info.sh: 795: [[: not found

alsa-info.sh: 795: [[: not found

I hope that helps. And please tell me if you need more info.
Lars.


On Thu, Nov 5, 2009 at 5:29 AM, Raymond Yau <superquad.vortex2@gmail.com>wrote:

> Please provide the full pulseaudio log and output of alsa-info.sh
>
> http://www.pulseaudio.org/wiki/Troubleshooting
>
> pulseaudio -k; pulseaudio -vvv
>
> and
>
> aplay -v -Dfront:0 32bit.wav
>
> aplay -v -M -Dfront:0 32bit.wav
>
> aplay -v -Dplughw:0 any.wav
>
> aplay -v -M -Dplughw:0 any.wav
>
>
> 2009/11/4 Lars Zobbe <fedesensfar@gmail.com>
>
> > Hi Raymond.
> >
> > I so sorry Raymond. But I'm not sure what to do with this info. Is there
> > something more I have to tell you? Is there anything I can do to make
> > pulseaudio able to detect via udev? Can I copy-paste that bit of code you
> > sent me somewhere?
> > Please tell me if there's more you need to know.
> > Greetings.
> > Lars.
> >
> >
> >
> >
> > On Tue, Nov 3, 2009 at 7:48 AM, Raymond Yau <superquad.vortex2@gmail.com
> >wrote:
> >
> >> I guess route plugin used by RME96*.conf does not support mmap when
> there
> >> is
> >> channel conversion since minimum channels supported by hdsp is 14
> >>
> >>
> >> static struct snd_pcm_hardware snd_hdsp_playback_subinfo =
> >> {
> >>    .info = (SNDRV_PCM_INFO_MMAP |
> >>                 SNDRV_PCM_INFO_MMAP_VALID |
> >>                 SNDRV_PCM_INFO_NONINTERLEAVED |
> >>                 SNDRV_PCM_INFO_SYNC_START |
> >>                 SNDRV_PCM_INFO_DOUBLE),
> >> #ifdef SNDRV_BIG_ENDIAN
> >>    .formats = SNDRV_PCM_FMTBIT_S32_BE,
> >> #else
> >>    .formats = SNDRV_PCM_FMTBIT_S32_LE,
> >> #endif
> >>    .rates = (SNDRV_PCM_RATE_32000 |
> >>                 SNDRV_PCM_RATE_44100 |
> >>                 SNDRV_PCM_RATE_48000 |
> >>                 SNDRV_PCM_RATE_64000 |
> >>                 SNDRV_PCM_RATE_88200 |
> >>                 SNDRV_PCM_RATE_96000),
> >>    .rate_min = 32000,
> >>    .rate_max = 96000,
> >>    .channels_min = 14,
> >>    .channels_max = HDSP_MAX_CHANNELS,
> >>    .buffer_bytes_max = HDSP_CHANNEL_BUFFER_BYTES * HDSP_MAX_CHANNELS,
> >>    .period_bytes_min = (64 * 4) * 10,
> >>    .period_bytes_max = (8192 * 4) * HDSP_MAX_CHANNELS,
> >>    .periods_min = 2,
> >>    .periods_max = 2,
> >>    .fifo_size = 0
> >> };
> >>
> >> 2009/11/2 Lars Zobbe <fedesensfar@gmail.com>
> >>
> >> > Hi.
> >> >
> >> > Talking to one of the pulseaudio developers (*Colin Guthrie*) about a
> >> > problem with pulseaudio loading modules and my sound card (RME HDSP
> >> 9632),
> >> > I
> >> > was adviced to inform you about the problem.
> >> >
> >> > I'm on ubuntu 9.10, 64bit, kernel 2.6.31 with an amd64 x2 3800+
> >> processor.
> >> >
> >> >
> >> > Symptoms are:
> >> > Can only make pulseaudio load modules with the deprecated load-module
> >> > module-detect command, module-udev-detect doesn't detect anything (no
> >> sound
> >> > - only null sink output in padevchooser).
> >> > I get terrible stuttering.
> >> > I can remove pulseaudio and make things work, more or less. However,
> >> that
> >> > leaves me without software mixing and apps fighting for the rights to
> >> make
> >> > sound. And more inconveniences (fx. no volume-control).
> >> > I can play sound from audacity without stuttering by choosing the
> >> cardname
> >> > directly in output HDSP, not ALSA, not pulseaudio.
> >> >
> >> >
> >> > When trying to run alsa-info.sh I get a lot of "not found" errors. So
> >> > you'll
> >> > get some manual info (they might have moved som files around in ubuntu
> >> > 9.10).
> >> >
> >> > This is part of my syslog during a boot. (I did the formatting to
> bold).
> >> >
> >> > Nov  2 10:57:32 lars-desktop pulseaudio[1524]: module.c: module-detect
> >> is
> >> > deprecated: Please use module-udev-detect instead of module-detect!
> >> > Nov  2 10:57:37 lars-desktop pulseaudio[1524]: ratelimit.c: 27 events
> >> > suppressed
> >> > Nov  2 10:57:39 lars-desktop pulseaudio[1612]: module.c: module-detect
> >> is
> >> > deprecated: Please use module-udev-detect instead of module-detect!
> >> > Nov  2 10:57:44 lars-desktop pulseaudio[1612]: ratelimit.c: 23 events
> >> > suppressed
> >> > Nov  2 10:57:44 lars-desktop pulseaudio[1612]: alsa-sink.c: ALSA woke
> us
> >> up
> >> > to write new data to the device, but there was actually nothing to
> >> write!
> >> > Nov  2 10:57:44 lars-desktop pulseaudio[1612]: alsa-sink.c: *Most
> likely
> >> > this is a bug in the ALSA driver 'snd_hdsp'. Please report this issue
> to
> >> > the
> >> > ALSA developers.*
> >> > Nov  2 10:57:44 lars-desktop pulseaudio[1612]: alsa-sink.c: We were
> >> woken
> >> > up
> >> > with POLLOUT set -- however a subsequent snd_pcm_avail() returned 0 or
> >> > another value < min_avail.
> >> > Nov  2 10:57:49 lars-desktop pulseaudio[1612]: ratelimit.c: 99 events
> >> > suppressed
> >> >
> >> > Later if I try to play audio I get terrible skipping or stuttering and
> >> my
> >> > syslog (in less than a minute) writes:
> >> > Nov  2 11:55:16 lars-desktop pulseaudio[1612]: ratelimit.c: 16 events
> >> > suppressed
> >> > Nov  2 11:55:21 lars-desktop pulseaudio[1612]: ratelimit.c: 34 events
> >> > suppressed
> >> > Nov  2 11:55:26 lars-desktop pulseaudio[1612]: ratelimit.c: 70 events
> >> > suppressed
> >> > Nov  2 11:55:31 lars-desktop pulseaudio[1612]: ratelimit.c: 29 events
> >> > suppressed
> >> > Nov  2 11:55:36 lars-desktop pulseaudio[1612]: ratelimit.c: 43 events
> >> > suppressed
> >> > Nov  2 11:55:41 lars-desktop pulseaudio[1612]: ratelimit.c: 161 events
> >> > suppressed
> >> > Nov  2 11:55:46 lars-desktop pulseaudio[1612]: ratelimit.c: 28 events
> >> > suppressed
> >> > Nov  2 11:55:51 lars-desktop pulseaudio[1612]: ratelimit.c: 18 events
> >> > suppressed
> >> > Nov  2 11:55:56 lars-desktop pulseaudio[1612]: ratelimit.c: 16 events
> >> > suppressed
> >> >
> >> > Here's the relevant part (concerning my sound card) of lspci -vvv
> >> >
> >> > 02:09.0 Multimedia audio controller: Xilinx Corporation RME Hammerfall
> >> DSP
> >> > (rev 9a)
> >> >    Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
> >> > Stepping- SERR- FastB2B- DisINTx-
> >> >    Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
> >> > <TAbort- <MAbort- >SERR- <PERR- INTx-
> >> >    Latency: 255
> >> >    Interrupt: pin A routed to IRQ 19
> >> >    Region 0: Memory at fdff0000 (32-bit, non-prefetchable) [size=64K]
> >> >    Kernel driver in use: RME Hammerfall DSP
> >> >    Kernel modules: snd-hdsp
> >> >
> >> > And:
> >> > lars@lars-desktop:~$ aplay -l
> >> > **** List of PLAYBACK Hardware Devices ****
> >> > card 0: DSP [Hammerfall DSP], device 0: RME Hammerfall HDSP 9632 [RME
> >> > Hammerfall HDSP 9632]
> >> >  Subdevices: 1/1
> >> >  Subdevice #0: subdevice #0
> >> >
> >> >
> >> > lars@lars-desktop:~$ cat /proc/asound/version
> >> > Advanced Linux Sound Architecture Driver Version 1.0.21.
> >> > Compiled on Oct 15 2009 for kernel 2.6.31-14-generic (SMP).
> >> >
> >> > lars@lars-desktop:~$ cat /proc/asound/cards
> >> >  0 [DSP            ]: H-DSP - Hammerfall DSP
> >> >                      RME Hammerfall HDSP 9632 at 0xfdff0000, irq 19
> >> >
> >> >
> >> > lars@lars-desktop:~$ cat /proc/asound/modules
> >> >  0 snd_hdsp
> >> >
> >> > I don't have .asound.conf files.
> >> >
> >> > lars@lars-desktop:~$ hdsploader
> >> > hdsploader - firmware loader for RME Hammerfall DSP cards
> >> > Looking for HDSP + Multiface or Digiface cards :
> >> > Card 0 : RME Hammerfall HDSP 9632 at 0xfdff0000, irq 19
> >> >
> >> > And of course. My computer makes no sound if I don't load the
> hdspmixer
> >> at
> >> > startup. I guess that's just normal for this card though.
> >> >
> >> > Please let me know, if you need more info. I really hope you can help
> >> out
> >> > here. And that this might help you to.
> >> >
> >> > Thanks for the great work you do. Greetings.
> >> > Lars Zobbe.
> >> > _______________________________________________
> >> > Alsa-devel mailing list
> >> > Alsa-devel@alsa-project.org
> >> > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> >> >
> >> _______________________________________________
> >> Alsa-devel mailing list
> >> Alsa-devel@alsa-project.org
> >> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> >>
> >
> >
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: snd-hdsp driver error?
  2009-11-05  4:29     ` Raymond Yau
  2009-11-05 23:30       ` Lars Zobbe
@ 2009-11-05 23:35       ` Lars Zobbe
  2009-11-06  0:46       ` Lars Zobbe
  2 siblings, 0 replies; 12+ messages in thread
From: Lars Zobbe @ 2009-11-05 23:35 UTC (permalink / raw)
  To: Raymond Yau; +Cc: alsa-devel

[-- Attachment #1: Type: text/plain, Size: 8341 bytes --]

So sorry. Forgot the attachments.


On Thu, Nov 5, 2009 at 5:29 AM, Raymond Yau <superquad.vortex2@gmail.com>wrote:

> Please provide the full pulseaudio log and output of alsa-info.sh
>
> http://www.pulseaudio.org/wiki/Troubleshooting
>
> pulseaudio -k; pulseaudio -vvv
>
> and
>
> aplay -v -Dfront:0 32bit.wav
>
> aplay -v -M -Dfront:0 32bit.wav
>
> aplay -v -Dplughw:0 any.wav
>
> aplay -v -M -Dplughw:0 any.wav
>
>
> 2009/11/4 Lars Zobbe <fedesensfar@gmail.com>
>
> > Hi Raymond.
> >
> > I so sorry Raymond. But I'm not sure what to do with this info. Is there
> > something more I have to tell you? Is there anything I can do to make
> > pulseaudio able to detect via udev? Can I copy-paste that bit of code you
> > sent me somewhere?
> > Please tell me if there's more you need to know.
> > Greetings.
> > Lars.
> >
> >
> >
> >
> > On Tue, Nov 3, 2009 at 7:48 AM, Raymond Yau <superquad.vortex2@gmail.com
> >wrote:
> >
> >> I guess route plugin used by RME96*.conf does not support mmap when
> there
> >> is
> >> channel conversion since minimum channels supported by hdsp is 14
> >>
> >>
> >> static struct snd_pcm_hardware snd_hdsp_playback_subinfo =
> >> {
> >>    .info = (SNDRV_PCM_INFO_MMAP |
> >>                 SNDRV_PCM_INFO_MMAP_VALID |
> >>                 SNDRV_PCM_INFO_NONINTERLEAVED |
> >>                 SNDRV_PCM_INFO_SYNC_START |
> >>                 SNDRV_PCM_INFO_DOUBLE),
> >> #ifdef SNDRV_BIG_ENDIAN
> >>    .formats = SNDRV_PCM_FMTBIT_S32_BE,
> >> #else
> >>    .formats = SNDRV_PCM_FMTBIT_S32_LE,
> >> #endif
> >>    .rates = (SNDRV_PCM_RATE_32000 |
> >>                 SNDRV_PCM_RATE_44100 |
> >>                 SNDRV_PCM_RATE_48000 |
> >>                 SNDRV_PCM_RATE_64000 |
> >>                 SNDRV_PCM_RATE_88200 |
> >>                 SNDRV_PCM_RATE_96000),
> >>    .rate_min = 32000,
> >>    .rate_max = 96000,
> >>    .channels_min = 14,
> >>    .channels_max = HDSP_MAX_CHANNELS,
> >>    .buffer_bytes_max = HDSP_CHANNEL_BUFFER_BYTES * HDSP_MAX_CHANNELS,
> >>    .period_bytes_min = (64 * 4) * 10,
> >>    .period_bytes_max = (8192 * 4) * HDSP_MAX_CHANNELS,
> >>    .periods_min = 2,
> >>    .periods_max = 2,
> >>    .fifo_size = 0
> >> };
> >>
> >> 2009/11/2 Lars Zobbe <fedesensfar@gmail.com>
> >>
> >> > Hi.
> >> >
> >> > Talking to one of the pulseaudio developers (*Colin Guthrie*) about a
> >> > problem with pulseaudio loading modules and my sound card (RME HDSP
> >> 9632),
> >> > I
> >> > was adviced to inform you about the problem.
> >> >
> >> > I'm on ubuntu 9.10, 64bit, kernel 2.6.31 with an amd64 x2 3800+
> >> processor.
> >> >
> >> >
> >> > Symptoms are:
> >> > Can only make pulseaudio load modules with the deprecated load-module
> >> > module-detect command, module-udev-detect doesn't detect anything (no
> >> sound
> >> > - only null sink output in padevchooser).
> >> > I get terrible stuttering.
> >> > I can remove pulseaudio and make things work, more or less. However,
> >> that
> >> > leaves me without software mixing and apps fighting for the rights to
> >> make
> >> > sound. And more inconveniences (fx. no volume-control).
> >> > I can play sound from audacity without stuttering by choosing the
> >> cardname
> >> > directly in output HDSP, not ALSA, not pulseaudio.
> >> >
> >> >
> >> > When trying to run alsa-info.sh I get a lot of "not found" errors. So
> >> > you'll
> >> > get some manual info (they might have moved som files around in ubuntu
> >> > 9.10).
> >> >
> >> > This is part of my syslog during a boot. (I did the formatting to
> bold).
> >> >
> >> > Nov  2 10:57:32 lars-desktop pulseaudio[1524]: module.c: module-detect
> >> is
> >> > deprecated: Please use module-udev-detect instead of module-detect!
> >> > Nov  2 10:57:37 lars-desktop pulseaudio[1524]: ratelimit.c: 27 events
> >> > suppressed
> >> > Nov  2 10:57:39 lars-desktop pulseaudio[1612]: module.c: module-detect
> >> is
> >> > deprecated: Please use module-udev-detect instead of module-detect!
> >> > Nov  2 10:57:44 lars-desktop pulseaudio[1612]: ratelimit.c: 23 events
> >> > suppressed
> >> > Nov  2 10:57:44 lars-desktop pulseaudio[1612]: alsa-sink.c: ALSA woke
> us
> >> up
> >> > to write new data to the device, but there was actually nothing to
> >> write!
> >> > Nov  2 10:57:44 lars-desktop pulseaudio[1612]: alsa-sink.c: *Most
> likely
> >> > this is a bug in the ALSA driver 'snd_hdsp'. Please report this issue
> to
> >> > the
> >> > ALSA developers.*
> >> > Nov  2 10:57:44 lars-desktop pulseaudio[1612]: alsa-sink.c: We were
> >> woken
> >> > up
> >> > with POLLOUT set -- however a subsequent snd_pcm_avail() returned 0 or
> >> > another value < min_avail.
> >> > Nov  2 10:57:49 lars-desktop pulseaudio[1612]: ratelimit.c: 99 events
> >> > suppressed
> >> >
> >> > Later if I try to play audio I get terrible skipping or stuttering and
> >> my
> >> > syslog (in less than a minute) writes:
> >> > Nov  2 11:55:16 lars-desktop pulseaudio[1612]: ratelimit.c: 16 events
> >> > suppressed
> >> > Nov  2 11:55:21 lars-desktop pulseaudio[1612]: ratelimit.c: 34 events
> >> > suppressed
> >> > Nov  2 11:55:26 lars-desktop pulseaudio[1612]: ratelimit.c: 70 events
> >> > suppressed
> >> > Nov  2 11:55:31 lars-desktop pulseaudio[1612]: ratelimit.c: 29 events
> >> > suppressed
> >> > Nov  2 11:55:36 lars-desktop pulseaudio[1612]: ratelimit.c: 43 events
> >> > suppressed
> >> > Nov  2 11:55:41 lars-desktop pulseaudio[1612]: ratelimit.c: 161 events
> >> > suppressed
> >> > Nov  2 11:55:46 lars-desktop pulseaudio[1612]: ratelimit.c: 28 events
> >> > suppressed
> >> > Nov  2 11:55:51 lars-desktop pulseaudio[1612]: ratelimit.c: 18 events
> >> > suppressed
> >> > Nov  2 11:55:56 lars-desktop pulseaudio[1612]: ratelimit.c: 16 events
> >> > suppressed
> >> >
> >> > Here's the relevant part (concerning my sound card) of lspci -vvv
> >> >
> >> > 02:09.0 Multimedia audio controller: Xilinx Corporation RME Hammerfall
> >> DSP
> >> > (rev 9a)
> >> >    Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
> >> > Stepping- SERR- FastB2B- DisINTx-
> >> >    Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
> >> > <TAbort- <MAbort- >SERR- <PERR- INTx-
> >> >    Latency: 255
> >> >    Interrupt: pin A routed to IRQ 19
> >> >    Region 0: Memory at fdff0000 (32-bit, non-prefetchable) [size=64K]
> >> >    Kernel driver in use: RME Hammerfall DSP
> >> >    Kernel modules: snd-hdsp
> >> >
> >> > And:
> >> > lars@lars-desktop:~$ aplay -l
> >> > **** List of PLAYBACK Hardware Devices ****
> >> > card 0: DSP [Hammerfall DSP], device 0: RME Hammerfall HDSP 9632 [RME
> >> > Hammerfall HDSP 9632]
> >> >  Subdevices: 1/1
> >> >  Subdevice #0: subdevice #0
> >> >
> >> >
> >> > lars@lars-desktop:~$ cat /proc/asound/version
> >> > Advanced Linux Sound Architecture Driver Version 1.0.21.
> >> > Compiled on Oct 15 2009 for kernel 2.6.31-14-generic (SMP).
> >> >
> >> > lars@lars-desktop:~$ cat /proc/asound/cards
> >> >  0 [DSP            ]: H-DSP - Hammerfall DSP
> >> >                      RME Hammerfall HDSP 9632 at 0xfdff0000, irq 19
> >> >
> >> >
> >> > lars@lars-desktop:~$ cat /proc/asound/modules
> >> >  0 snd_hdsp
> >> >
> >> > I don't have .asound.conf files.
> >> >
> >> > lars@lars-desktop:~$ hdsploader
> >> > hdsploader - firmware loader for RME Hammerfall DSP cards
> >> > Looking for HDSP + Multiface or Digiface cards :
> >> > Card 0 : RME Hammerfall HDSP 9632 at 0xfdff0000, irq 19
> >> >
> >> > And of course. My computer makes no sound if I don't load the
> hdspmixer
> >> at
> >> > startup. I guess that's just normal for this card though.
> >> >
> >> > Please let me know, if you need more info. I really hope you can help
> >> out
> >> > here. And that this might help you to.
> >> >
> >> > Thanks for the great work you do. Greetings.
> >> > Lars Zobbe.
> >> > _______________________________________________
> >> > Alsa-devel mailing list
> >> > Alsa-devel@alsa-project.org
> >> > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> >> >
> >> _______________________________________________
> >> Alsa-devel mailing list
> >> Alsa-devel@alsa-project.org
> >> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> >>
> >
> >
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>

[-- Attachment #2: PulseaudioAndAplay --]
[-- Type: application/octet-stream, Size: 21675 bytes --]

lars@lars-desktop:~$ pulseaudio -k


lars@lars-desktop:~$ pulseaudio -vvv
I: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
D: core-rtclock.c: Timer slack is set to 50 us.
D: core-util.c: setpriority() worked.
D: core-util.c: setpriority() worked.
D: core-util.c: setpriority() worked.
D: core-util.c: setpriority() worked.
D: core-util.c: setpriority() worked.
D: core-util.c: setpriority() worked.
D: core-util.c: setpriority() worked.
D: core-util.c: setpriority() worked.
D: core-util.c: setpriority() worked.
D: core-util.c: setpriority() worked.
I: core-util.c: Failed to acquire high-priority scheduling: No such file or directory
I: main.c: This is PulseAudio 0.9.19
D: main.c: Compilation host: x86_64-pc-linux-gnu
D: main.c: Compilation CFLAGS: -g -O2 -g -Wall -O3 -Wall -W -Wextra -pipe -Wno-long-long -Winline -Wvla -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing=2 -Wwrite-strings -Wno-unused-parameter -ffast-math -Wp,-D_FORTIFY_SOURCE=2 -fno-common -fdiagnostics-show-option
D: main.c: Running on host: Linux x86_64 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:05:01 UTC 2009
D: main.c: Found 2 CPUs.
I: main.c: Page size is 4096 bytes
D: main.c: Compiled with Valgrind support: no
D: main.c: Running in valgrind mode: no
D: main.c: Optimized build: yes
D: main.c: All asserts enabled.
I: main.c: Machine ID is 24b1eefb32ec79a0b91068894aea1108.
I: main.c: Session ID is 24b1eefb32ec79a0b91068894aea1108-1257455930.744730-999369061.
I: main.c: Using runtime directory /home/lars/.pulse/24b1eefb32ec79a0b91068894aea1108-runtime.
I: main.c: Using state directory /home/lars/.pulse.
I: main.c: Using modules directory /usr/lib/pulse-0.9.19/modules.
I: main.c: Running in system mode: no
I: main.c: Fresh high-resolution timers available! Bon appetit!
I: cpu-x86.c: CPU flags: MMX SSE SSE2 SSE3 MMXEXT 3DNOW 3DNOWEXT 
I: svolume_mmx.c: Initialising MMX optimized functions.
I: remap_mmx.c: Initialising MMX optimized remappers.
I: svolume_sse.c: Initialising SSE2 optimized functions.
I: remap_sse.c: Initialising SSE2 optimized remappers.
I: sconv_sse.c: Initialising SSE2 optimized conversions.
D: memblock.c: Using shared memory pool with 1024 slots of size 64,0 KiB each, total size is 64,0 MiB, maximum usable slot size is 65472
D: database-tdb.c: Opened TDB database '/home/lars/.pulse/24b1eefb32ec79a0b91068894aea1108-device-volumes.tdb'
I: module-device-restore.c: Sucessfully opened database file '/home/lars/.pulse/24b1eefb32ec79a0b91068894aea1108-device-volumes'.
I: module.c: Loaded "module-device-restore" (index: #0; argument: "").
D: database-tdb.c: Opened TDB database '/home/lars/.pulse/24b1eefb32ec79a0b91068894aea1108-stream-volumes.tdb'
I: module-stream-restore.c: Sucessfully opened database file '/home/lars/.pulse/24b1eefb32ec79a0b91068894aea1108-stream-volumes'.
I: module.c: Loaded "module-stream-restore" (index: #1; argument: "").
D: database-tdb.c: Opened TDB database '/home/lars/.pulse/24b1eefb32ec79a0b91068894aea1108-card-database.tdb'
I: module-card-restore.c: Sucessfully opened database file '/home/lars/.pulse/24b1eefb32ec79a0b91068894aea1108-card-database'.
I: module.c: Loaded "module-card-restore" (index: #2; argument: "").
I: module.c: Loaded "module-augment-properties" (index: #3; argument: "").
W: module.c: module-detect is deprecated: Please use module-udev-detect instead of module-detect!
D: dbus-util.c: Successfully connected to D-Bus session bus cff11e518cf3256648401a3f4af3413d as :1.129
D: reserve-wrap.c: Successfully acquired reservation lock on device 'Audio0'
D: reserve-wrap.c: Successfully create reservation lock monitor for device 'Audio0'
D: alsa-util.c: Checking for superset analog-stereo (front:%f)
D: alsa-util.c: Trying front:0 with SND_PCM_NO_AUTO_FORMAT ...
I: (alsa-lib)confmisc.c: Unable to find definition 'cards.H-DSP.pcm.front.0:CARD=0'
I: (alsa-lib)conf.c: function snd_func_refer returned error: No such file or directory
I: (alsa-lib)conf.c: Evaluate error: No such file or directory
I: (alsa-lib)pcm.c: Unknown PCM front:0
I: alsa-util.c: Error opening PCM device front:0: No such file or directory
D: alsa-util.c: Trying hw:0 with SND_PCM_NO_AUTO_FORMAT ...
I: (alsa-lib)pcm_hw.c: open /dev/snd/pcmC0D0p failed
I: alsa-util.c: Error opening PCM device hw:0: Device or resource busy
D: alsa-util.c: Checking for superset analog-surround-40 (surround40:%f)
D: alsa-util.c: Trying surround40:0 with SND_PCM_NO_AUTO_FORMAT ...
I: (alsa-lib)confmisc.c: Unable to find definition 'cards.H-DSP.pcm.surround40.0:CARD=0'
I: (alsa-lib)conf.c: function snd_func_refer returned error: No such file or directory
I: (alsa-lib)conf.c: Evaluate error: No such file or directory
I: (alsa-lib)pcm.c: Unknown PCM surround40:0
I: alsa-util.c: Error opening PCM device surround40:0: No such file or directory
D: alsa-util.c: Checking for superset analog-surround-41 (surround41:%f)
D: alsa-util.c: Trying surround41:0 with SND_PCM_NO_AUTO_FORMAT ...
I: (alsa-lib)confmisc.c: Unable to find definition 'cards.H-DSP.pcm.surround51.0:CARD=0'
I: (alsa-lib)conf.c: function snd_func_refer returned error: No such file or directory
I: (alsa-lib)conf.c: Evaluate error: No such file or directory
I: (alsa-lib)pcm.c: Unknown PCM surround41:0
I: alsa-util.c: Error opening PCM device surround41:0: No such file or directory
D: alsa-util.c: Checking for superset analog-surround-50 (surround50:%f)
D: alsa-util.c: Trying surround50:0 with SND_PCM_NO_AUTO_FORMAT ...
I: (alsa-lib)confmisc.c: Unable to find definition 'cards.H-DSP.pcm.surround51.0:CARD=0'
I: (alsa-lib)conf.c: function snd_func_refer returned error: No such file or directory
I: (alsa-lib)conf.c: Evaluate error: No such file or directory
I: (alsa-lib)pcm.c: Unknown PCM surround50:0
I: alsa-util.c: Error opening PCM device surround50:0: No such file or directory
D: alsa-util.c: Checking for superset analog-surround-51 (surround51:%f)
D: alsa-util.c: Trying surround51:0 with SND_PCM_NO_AUTO_FORMAT ...
I: (alsa-lib)confmisc.c: Unable to find definition 'cards.H-DSP.pcm.surround51.0:CARD=0'
I: (alsa-lib)conf.c: function snd_func_refer returned error: No such file or directory
I: (alsa-lib)conf.c: Evaluate error: No such file or directory
I: (alsa-lib)pcm.c: Unknown PCM surround51:0
I: alsa-util.c: Error opening PCM device surround51:0: No such file or directory
D: alsa-util.c: Checking for superset analog-surround-71 (surround71:%f)
D: alsa-util.c: Trying surround71:0 with SND_PCM_NO_AUTO_FORMAT ...
I: (alsa-lib)confmisc.c: Unable to find definition 'cards.H-DSP.pcm.surround71.0:CARD=0'
I: (alsa-lib)conf.c: function snd_func_refer returned error: No such file or directory
I: (alsa-lib)conf.c: Evaluate error: No such file or directory
I: (alsa-lib)pcm.c: Unknown PCM surround71:0
I: alsa-util.c: Error opening PCM device surround71:0: No such file or directory
D: alsa-util.c: Checking for superset iec958-stereo (iec958:%f)
D: alsa-util.c: Trying iec958:0 with SND_PCM_NO_AUTO_FORMAT ...
I: (alsa-lib)confmisc.c: Unable to find definition 'cards.H-DSP.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
I: (alsa-lib)conf.c: function snd_func_refer returned error: No such file or directory
I: (alsa-lib)conf.c: Evaluate error: No such file or directory
I: (alsa-lib)pcm.c: Unknown PCM iec958:0
I: alsa-util.c: Error opening PCM device iec958:0: No such file or directory
D: alsa-util.c: Checking for superset iec958-surround-40 (iec958:%f)
D: alsa-util.c: Trying iec958:0 with SND_PCM_NO_AUTO_FORMAT ...
I: (alsa-lib)confmisc.c: Unable to find definition 'cards.H-DSP.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
I: (alsa-lib)conf.c: function snd_func_refer returned error: No such file or directory
I: (alsa-lib)conf.c: Evaluate error: No such file or directory
I: (alsa-lib)pcm.c: Unknown PCM iec958:0
I: alsa-util.c: Error opening PCM device iec958:0: No such file or directory
D: alsa-util.c: Checking for superset iec958-ac3-surround-40 (a52:%f)
D: alsa-util.c: Trying a52:0 with SND_PCM_NO_AUTO_FORMAT ...
I: (alsa-lib)pcm.c: Unknown PCM a52:0
I: alsa-util.c: Error opening PCM device a52:0: No such file or directory
D: alsa-util.c: Checking for superset iec958-ac3-surround-51 (a52:%f)
D: alsa-util.c: Trying a52:0 with SND_PCM_NO_AUTO_FORMAT ...
I: (alsa-lib)pcm.c: Unknown PCM a52:0
I: alsa-util.c: Error opening PCM device a52:0: No such file or directory
D: alsa-util.c: Checking for superset hdmi-stereo (hdmi:%f)
D: alsa-util.c: Trying hdmi:0 with SND_PCM_NO_AUTO_FORMAT ...
I: (alsa-lib)conf.c: Unknown parameters 0
I: (alsa-lib)pcm.c: Unknown PCM hdmi:0
I: alsa-util.c: Error opening PCM device hdmi:0: Invalid argument
D: alsa-util.c: Checking for subset analog-mono (hw:%f)
D: alsa-util.c: Trying hw:0 with SND_PCM_NO_AUTO_FORMAT ...
I: (alsa-lib)pcm_hw.c: open /dev/snd/pcmC0D0p failed
I: alsa-util.c: Error opening PCM device hw:0: Device or resource busy
D: alsa-util.c: Trying hw:0 as last resort...
D: alsa-util.c: Trying hw:0 with SND_PCM_NO_AUTO_FORMAT ...
I: (alsa-lib)pcm_hw.c: open /dev/snd/pcmC0D0p failed
I: alsa-util.c: Error opening PCM device hw:0: Device or resource busy
E: module.c: Failed to load  module "module-alsa-sink" (argument: "device_id=0"): initialization failed.
D: dbus-util.c: Successfully connected to D-Bus session bus cff11e518cf3256648401a3f4af3413d as :1.130
D: reserve-wrap.c: Successfully acquired reservation lock on device 'Audio0'
D: reserve-wrap.c: Successfully create reservation lock monitor for device 'Audio0'
D: alsa-util.c: Checking for superset analog-stereo (front:%f)
D: alsa-util.c: Trying front:0 with SND_PCM_NO_AUTO_FORMAT ...
I: (alsa-lib)confmisc.c: Unable to find definition 'cards.H-DSP.pcm.front.0:CARD=0'
I: (alsa-lib)conf.c: function snd_func_refer returned error: No such file or directory
I: (alsa-lib)conf.c: Evaluate error: No such file or directory
I: (alsa-lib)pcm.c: Unknown PCM front:0
I: alsa-util.c: Error opening PCM device front:0: No such file or directory
D: alsa-util.c: Trying hw:0 with SND_PCM_NO_AUTO_FORMAT ...
D: alsa-util.c: Managed to open hw:0
D: alsa-util.c: snd_pcm_hw_params_set_access() failed: Invalid argument
D: alsa-util.c: Trying hw:0 without SND_PCM_NO_AUTO_FORMAT ...
D: alsa-util.c: Managed to open hw:0
D: alsa-util.c: snd_pcm_hw_params_set_access() failed: Invalid argument
D: alsa-util.c: Trying plug:hw:0 with SND_PCM_NO_AUTO_FORMAT ...
D: alsa-util.c: Managed to open plug:hw:0
D: alsa-util.c: snd_pcm_hw_params_set_format(Signed 16 bit Little Endian) failed: Invalid argument
D: alsa-util.c: snd_pcm_hw_params_set_format(Signed 16 bit Big Endian) failed: Invalid argument
D: alsa-util.c: snd_pcm_hw_params_set_format(Float 32 bit Little Endian) failed: Invalid argument
D: alsa-util.c: snd_pcm_hw_params_set_format(Float 32 bit Big Endian) failed: Invalid argument
D: alsa-util.c: snd_pcm_hw_params_set_channels(2) failed: Invalid argument
D: alsa-util.c: Trying plug:hw:0 without SND_PCM_NO_AUTO_FORMAT ...
D: alsa-util.c: Managed to open plug:hw:0
D: alsa-util.c: snd_pcm_hw_params_set_channels(2) failed: Invalid argument
I: alsa-util.c: Failed to set hardware parameters on plug:hw:0: Invalid argument
D: alsa-util.c: Checking for superset analog-surround-40 (surround40:%f)
D: alsa-util.c: Trying surround40:0 with SND_PCM_NO_AUTO_FORMAT ...
I: (alsa-lib)confmisc.c: Unable to find definition 'cards.H-DSP.pcm.surround40.0:CARD=0'
I: (alsa-lib)conf.c: function snd_func_refer returned error: No such file or directory
I: (alsa-lib)conf.c: Evaluate error: No such file or directory
I: (alsa-lib)pcm.c: Unknown PCM surround40:0
I: alsa-util.c: Error opening PCM device surround40:0: No such file or directory
D: alsa-util.c: Checking for superset analog-surround-41 (surround41:%f)
D: alsa-util.c: Trying surround41:0 with SND_PCM_NO_AUTO_FORMAT ...
I: (alsa-lib)confmisc.c: Unable to find definition 'cards.H-DSP.pcm.surround51.0:CARD=0'
I: (alsa-lib)conf.c: function snd_func_refer returned error: No such file or directory
I: (alsa-lib)conf.c: Evaluate error: No such file or directory
I: (alsa-lib)pcm.c: Unknown PCM surround41:0
I: alsa-util.c: Error opening PCM device surround41:0: No such file or directory
D: alsa-util.c: Checking for superset analog-surround-50 (surround50:%f)
D: alsa-util.c: Trying surround50:0 with SND_PCM_NO_AUTO_FORMAT ...
I: (alsa-lib)confmisc.c: Unable to find definition 'cards.H-DSP.pcm.surround51.0:CARD=0'
I: (alsa-lib)conf.c: function snd_func_refer returned error: No such file or directory
I: (alsa-lib)conf.c: Evaluate error: No such file or directory
I: (alsa-lib)pcm.c: Unknown PCM surround50:0
I: alsa-util.c: Error opening PCM device surround50:0: No such file or directory
D: alsa-util.c: Checking for superset analog-surround-51 (surround51:%f)
D: alsa-util.c: Trying surround51:0 with SND_PCM_NO_AUTO_FORMAT ...
I: (alsa-lib)confmisc.c: Unable to find definition 'cards.H-DSP.pcm.surround51.0:CARD=0'
I: (alsa-lib)conf.c: function snd_func_refer returned error: No such file or directory
I: (alsa-lib)conf.c: Evaluate error: No such file or directory
I: (alsa-lib)pcm.c: Unknown PCM surround51:0
I: alsa-util.c: Error opening PCM device surround51:0: No such file or directory
D: alsa-util.c: Checking for superset analog-surround-71 (surround71:%f)
D: alsa-util.c: Trying surround71:0 with SND_PCM_NO_AUTO_FORMAT ...
I: (alsa-lib)confmisc.c: Unable to find definition 'cards.H-DSP.pcm.surround71.0:CARD=0'
I: (alsa-lib)conf.c: function snd_func_refer returned error: No such file or directory
I: (alsa-lib)conf.c: Evaluate error: No such file or directory
I: (alsa-lib)pcm.c: Unknown PCM surround71:0
I: alsa-util.c: Error opening PCM device surround71:0: No such file or directory
D: alsa-util.c: Checking for superset iec958-stereo (iec958:%f)
D: alsa-util.c: Trying iec958:0 with SND_PCM_NO_AUTO_FORMAT ...
I: (alsa-lib)confmisc.c: Unable to find definition 'cards.H-DSP.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
I: (alsa-lib)conf.c: function snd_func_refer returned error: No such file or directory
I: (alsa-lib)conf.c: Evaluate error: No such file or directory
I: (alsa-lib)pcm.c: Unknown PCM iec958:0
I: alsa-util.c: Error opening PCM device iec958:0: No such file or directory
D: alsa-util.c: Checking for superset iec958-surround-40 (iec958:%f)
D: alsa-util.c: Trying iec958:0 with SND_PCM_NO_AUTO_FORMAT ...
I: (alsa-lib)confmisc.c: Unable to find definition 'cards.H-DSP.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
I: (alsa-lib)conf.c: function snd_func_refer returned error: No such file or directory
I: (alsa-lib)conf.c: Evaluate error: No such file or directory
I: (alsa-lib)pcm.c: Unknown PCM iec958:0
I: alsa-util.c: Error opening PCM device iec958:0: No such file or directory
D: alsa-util.c: Checking for superset iec958-ac3-surround-40 (a52:%f)
D: alsa-util.c: Trying a52:0 with SND_PCM_NO_AUTO_FORMAT ...
I: (alsa-lib)pcm.c: Unknown PCM a52:0
I: alsa-util.c: Error opening PCM device a52:0: No such file or directory
D: alsa-util.c: Checking for superset iec958-ac3-surround-51 (a52:%f)
D: alsa-util.c: Trying a52:0 with SND_PCM_NO_AUTO_FORMAT ...
I: (alsa-lib)pcm.c: Unknown PCM a52:0
I: alsa-util.c: Error opening PCM device a52:0: No such file or directory
D: alsa-util.c: Checking for superset hdmi-stereo (hdmi:%f)
D: alsa-util.c: Trying hdmi:0 with SND_PCM_NO_AUTO_FORMAT ...
I: (alsa-lib)conf.c: Unknown parameters 0
I: (alsa-lib)pcm.c: Unknown PCM hdmi:0
I: alsa-util.c: Error opening PCM device hdmi:0: Invalid argument
D: alsa-util.c: Checking for subset analog-mono (hw:%f)
D: alsa-util.c: Trying hw:0 with SND_PCM_NO_AUTO_FORMAT ...
D: alsa-util.c: Managed to open hw:0
D: alsa-util.c: snd_pcm_hw_params_set_access() failed: Invalid argument
D: alsa-util.c: Trying hw:0 without SND_PCM_NO_AUTO_FORMAT ...
D: alsa-util.c: Managed to open hw:0
D: alsa-util.c: snd_pcm_hw_params_set_access() failed: Invalid argument
D: alsa-util.c: Trying plug:hw:0 with SND_PCM_NO_AUTO_FORMAT ...
D: alsa-util.c: Managed to open plug:hw:0
D: alsa-util.c: snd_pcm_hw_params_set_format(Signed 16 bit Little Endian) failed: Invalid argument
D: alsa-util.c: snd_pcm_hw_params_set_format(Signed 16 bit Big Endian) failed: Invalid argument
D: alsa-util.c: snd_pcm_hw_params_set_format(Float 32 bit Little Endian) failed: Invalid argument
D: alsa-util.c: snd_pcm_hw_params_set_format(Float 32 bit Big Endian) failed: Invalid argument
D: alsa-util.c: snd_pcm_hw_params_set_channels(1) failed: Invalid argument
D: alsa-util.c: Trying plug:hw:0 without SND_PCM_NO_AUTO_FORMAT ...
D: alsa-util.c: Managed to open plug:hw:0
D: alsa-util.c: snd_pcm_hw_params_set_channels(1) failed: Invalid argument
I: alsa-util.c: Failed to set hardware parameters on plug:hw:0: Invalid argument
D: alsa-util.c: Trying hw:0 as last resort...
D: alsa-util.c: Trying hw:0 with SND_PCM_NO_AUTO_FORMAT ...
D: alsa-util.c: Managed to open hw:0
D: alsa-util.c: snd_pcm_hw_params_set_access() failed: Invalid argument
D: alsa-util.c: Trying hw:0 without SND_PCM_NO_AUTO_FORMAT ...
D: alsa-util.c: Managed to open hw:0
D: alsa-util.c: snd_pcm_hw_params_set_access() failed: Invalid argument
D: alsa-util.c: Trying plug:hw:0 with SND_PCM_NO_AUTO_FORMAT ...
D: alsa-util.c: Managed to open plug:hw:0
D: alsa-util.c: snd_pcm_hw_params_set_format(Signed 16 bit Little Endian) failed: Invalid argument
D: alsa-util.c: snd_pcm_hw_params_set_format(Signed 16 bit Big Endian) failed: Invalid argument
D: alsa-util.c: snd_pcm_hw_params_set_format(Float 32 bit Little Endian) failed: Invalid argument
D: alsa-util.c: snd_pcm_hw_params_set_format(Float 32 bit Big Endian) failed: Invalid argument
D: alsa-util.c: Maximum hw buffer size is 371 ms
I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
D: alsa-util.c: Set neither period nor buffer size.
I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
I: alsa-util.c: snd_pcm_hw_params failed: Device or resource busy
D: alsa-util.c: Trying plug:hw:0 without SND_PCM_NO_AUTO_FORMAT ...
D: alsa-util.c: Managed to open plug:hw:0
D: alsa-util.c: Maximum hw buffer size is 371 ms
I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
D: alsa-util.c: Set neither period nor buffer size.
I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
I: alsa-util.c: snd_pcm_hw_params failed: Device or resource busy
I: alsa-util.c: Failed to set hardware parameters on plug:hw:0: Device or resource busy
E: module.c: Failed to load  module "module-alsa-source" (argument: "device_id=0"): initialization failed.
W: module.c: module-oss is deprecated: Please use module-alsa-card instead of module-oss!
D: oss-util.c: capabilities: MMAP REALTIME TRIGGER
I: module-oss.c: Device opened in O_RDONLY mode.
D: oss-util.c: Asking for 4 fragments of size 512 (requested 880)
E: oss-util.c: SNDCTL_DSP_SETFMT: Device or resource busy
E: module.c: Failed to load  module "module-oss" (argument: "device=/dev/dsp"): initialization failed.
W: module-detect.c: failed to detect any sound hardware.
E: module.c: Failed to load  module "module-detect" (argument: ""): initialization failed.
E: main.c: Module load failed.
E: main.c: Failed to initialize daemon.
I: module.c: Unloading "module-device-restore" (index: #0).
I: module.c: Unloaded "module-device-restore" (index: #0).
D: core-subscribe.c: Dropped redundant event due to remove event.
I: module.c: Unloading "module-stream-restore" (index: #1).
I: module.c: Unloaded "module-stream-restore" (index: #1).
D: core-subscribe.c: Dropped redundant event due to remove event.
I: module.c: Unloading "module-card-restore" (index: #2).
I: module.c: Unloaded "module-card-restore" (index: #2).
D: core-subscribe.c: Dropped redundant event due to remove event.
I: module.c: Unloading "module-augment-properties" (index: #3).
I: module.c: Unloaded "module-augment-properties" (index: #3).
D: core-subscribe.c: Dropped redundant event due to remove event.
I: main.c: Daemon terminated.





lars@lars-desktop:~$ aplay -v -Dfront:0 32bit.wav
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.H-DSP.pcm.front.0:CARD=0'
ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:3985:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM front:0
aplay: main:608: audio open error: No such file or directory


lars@lars-desktop:~$ aplay -v -M -Dfront:0 32bit.wav
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.H-DSP.pcm.front.0:CARD=0'
ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:3985:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM front:0
aplay: main:608: audio open error: No such file or directory


lars@lars-desktop:~$ aplay -v -Dplughw:0 any.wav
aplay: main:608: audio open error: Device or resource busy


lars@lars-desktop:~$ aplay -v -M -Dplughw:0 any.wav
aplay: main:608: audio open error: Device or resource busy



[-- Attachment #3: alsa-info.txt.MeEJpNS5Nc --]
[-- Type: application/octet-stream, Size: 2430 bytes --]

name=lars&type=33&description=/tmp/alsa-info.txt&expiry=&s=Submit+Post&content=
!!################################
!!ALSA Information Script v 0.4.58
!!################################

!!Script ran on: Thu Nov  5 23:24:25 UTC 2009


!!Linux Distribution
!!------------------




!!DMI Information
!!---------------

Manufacturer:       
Product Name:       


!!Kernel Information
!!------------------

Kernel release:    2.6.31-14-generic
Operating System:  GNU/Linux
Architecture:      x86_64
Processor:         unknown
SMP Enabled:       No


!!ALSA Version
!!------------

Driver version:     1.0.21
Library version:    1.0.20
Utilities version:  1.0.20


!!Loaded ALSA modules
!!-------------------

snd_hdsp
snd_usb_audio


!!Sound Servers on this system
!!----------------------------


!!Soundcards recognised by ALSA
!!-----------------------------

 0 [DSP            ]: H-DSP - Hammerfall DSP
                      RME Hammerfall HDSP 9632 at 0xfdff0000, irq 19
 1 [P250           ]: USB-Audio - P-250
                      Yamaha P-250 at usb-0000:00:02.2-2.4, full speed


!!PCI Soundcards installed in the system
!!--------------------------------------

02:09.0 Multimedia audio controller: Xilinx Corporation RME Hammerfall DSP (rev 9a)


!!Advanced information - PCI Vendor/Device/Susbsystem ID's
!!--------------------------------------------------------

02:09.0 0401: 10ee:3fc5 (rev 9a)
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-


!!Modprobe options (Sound related)
!!--------------------------------

snd-atiixp-modem: index=-2
snd-intel8x0m: index=-2
snd-via82xx-modem: index=-2
snd-usb-audio: index=-2
snd-usb-us122l: index=-2
snd-usb-usx2y: index=-2
snd-usb-caiaq: index=-2
snd-cmipci: mpu_port=0x330 fm_port=0x388
snd-pcsp: index=-2
snd-hda-intel: power_save=10 power_save_controller=N


!!Loaded sound module options
!!--------------------------

!!Module: snd_hdsp
-ne 	
enable : Y,Y,Y,Y,Y,Y,Y,Y
-ne 	
id : <NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>
-ne 	
index : -1,-1,-1,-1,-1,-1,-1,-1

!!Module: snd_usb_audio
-ne 	
async_unlink : Y
-ne 	
device_setup : 0,0,0,0,0,0,0,0
-ne 	
enable : Y,Y,Y,Y,Y,Y,Y,Y
-ne 	
id : <NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>
-ne 	
ignore_ctl_error : N
-ne 	
index : -2,-1,-1,-1,-1,-1,-1,-1
-ne 	
nrpacks : 8
-ne 	
pid : -1,-1,-1,-1,-1,-1,-1,-1
-ne 	
vid : -1,-1,-1,-1,-1,-1,-1,-1



[-- Attachment #4: Type: text/plain, Size: 160 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: snd-hdsp driver error?
  2009-11-05  4:29     ` Raymond Yau
  2009-11-05 23:30       ` Lars Zobbe
  2009-11-05 23:35       ` Lars Zobbe
@ 2009-11-06  0:46       ` Lars Zobbe
       [not found]         ` <4f3252890911051753x650bc617te8086af4fc3a745f@mail.gmail.com>
  2 siblings, 1 reply; 12+ messages in thread
From: Lars Zobbe @ 2009-11-06  0:46 UTC (permalink / raw)
  To: Raymond Yau; +Cc: alsa-devel

Sorry. I didn't realise that it was a bash script. Here is the link to my
alsa-info
http://www.alsa-project.org/db/?f=d3728557be71067e2ed0920747118ae7efff2829

Thanks again.
Lars.

On Thu, Nov 5, 2009 at 5:29 AM, Raymond Yau <superquad.vortex2@gmail.com>wrote:

> Please provide the full pulseaudio log and output of alsa-info.sh
>
> http://www.pulseaudio.org/wiki/Troubleshooting
>
> pulseaudio -k; pulseaudio -vvv
>
> and
>
> aplay -v -Dfront:0 32bit.wav
>
> aplay -v -M -Dfront:0 32bit.wav
>
> aplay -v -Dplughw:0 any.wav
>
> aplay -v -M -Dplughw:0 any.wav
>
>
> 2009/11/4 Lars Zobbe <fedesensfar@gmail.com>
>
> > Hi Raymond.
> >
> > I so sorry Raymond. But I'm not sure what to do with this info. Is there
> > something more I have to tell you? Is there anything I can do to make
> > pulseaudio able to detect via udev? Can I copy-paste that bit of code you
> > sent me somewhere?
> > Please tell me if there's more you need to know.
> > Greetings.
> > Lars.
> >
> >
> >
> >
> > On Tue, Nov 3, 2009 at 7:48 AM, Raymond Yau <superquad.vortex2@gmail.com
> >wrote:
> >
> >> I guess route plugin used by RME96*.conf does not support mmap when
> there
> >> is
> >> channel conversion since minimum channels supported by hdsp is 14
> >>
> >>
> >> static struct snd_pcm_hardware snd_hdsp_playback_subinfo =
> >> {
> >>    .info = (SNDRV_PCM_INFO_MMAP |
> >>                 SNDRV_PCM_INFO_MMAP_VALID |
> >>                 SNDRV_PCM_INFO_NONINTERLEAVED |
> >>                 SNDRV_PCM_INFO_SYNC_START |
> >>                 SNDRV_PCM_INFO_DOUBLE),
> >> #ifdef SNDRV_BIG_ENDIAN
> >>    .formats = SNDRV_PCM_FMTBIT_S32_BE,
> >> #else
> >>    .formats = SNDRV_PCM_FMTBIT_S32_LE,
> >> #endif
> >>    .rates = (SNDRV_PCM_RATE_32000 |
> >>                 SNDRV_PCM_RATE_44100 |
> >>                 SNDRV_PCM_RATE_48000 |
> >>                 SNDRV_PCM_RATE_64000 |
> >>                 SNDRV_PCM_RATE_88200 |
> >>                 SNDRV_PCM_RATE_96000),
> >>    .rate_min = 32000,
> >>    .rate_max = 96000,
> >>    .channels_min = 14,
> >>    .channels_max = HDSP_MAX_CHANNELS,
> >>    .buffer_bytes_max = HDSP_CHANNEL_BUFFER_BYTES * HDSP_MAX_CHANNELS,
> >>    .period_bytes_min = (64 * 4) * 10,
> >>    .period_bytes_max = (8192 * 4) * HDSP_MAX_CHANNELS,
> >>    .periods_min = 2,
> >>    .periods_max = 2,
> >>    .fifo_size = 0
> >> };
> >>
> >> 2009/11/2 Lars Zobbe <fedesensfar@gmail.com>
> >>
> >> > Hi.
> >> >
> >> > Talking to one of the pulseaudio developers (*Colin Guthrie*) about a
> >> > problem with pulseaudio loading modules and my sound card (RME HDSP
> >> 9632),
> >> > I
> >> > was adviced to inform you about the problem.
> >> >
> >> > I'm on ubuntu 9.10, 64bit, kernel 2.6.31 with an amd64 x2 3800+
> >> processor.
> >> >
> >> >
> >> > Symptoms are:
> >> > Can only make pulseaudio load modules with the deprecated load-module
> >> > module-detect command, module-udev-detect doesn't detect anything (no
> >> sound
> >> > - only null sink output in padevchooser).
> >> > I get terrible stuttering.
> >> > I can remove pulseaudio and make things work, more or less. However,
> >> that
> >> > leaves me without software mixing and apps fighting for the rights to
> >> make
> >> > sound. And more inconveniences (fx. no volume-control).
> >> > I can play sound from audacity without stuttering by choosing the
> >> cardname
> >> > directly in output HDSP, not ALSA, not pulseaudio.
> >> >
> >> >
> >> > When trying to run alsa-info.sh I get a lot of "not found" errors. So
> >> > you'll
> >> > get some manual info (they might have moved som files around in ubuntu
> >> > 9.10).
> >> >
> >> > This is part of my syslog during a boot. (I did the formatting to
> bold).
> >> >
> >> > Nov  2 10:57:32 lars-desktop pulseaudio[1524]: module.c: module-detect
> >> is
> >> > deprecated: Please use module-udev-detect instead of module-detect!
> >> > Nov  2 10:57:37 lars-desktop pulseaudio[1524]: ratelimit.c: 27 events
> >> > suppressed
> >> > Nov  2 10:57:39 lars-desktop pulseaudio[1612]: module.c: module-detect
> >> is
> >> > deprecated: Please use module-udev-detect instead of module-detect!
> >> > Nov  2 10:57:44 lars-desktop pulseaudio[1612]: ratelimit.c: 23 events
> >> > suppressed
> >> > Nov  2 10:57:44 lars-desktop pulseaudio[1612]: alsa-sink.c: ALSA woke
> us
> >> up
> >> > to write new data to the device, but there was actually nothing to
> >> write!
> >> > Nov  2 10:57:44 lars-desktop pulseaudio[1612]: alsa-sink.c: *Most
> likely
> >> > this is a bug in the ALSA driver 'snd_hdsp'. Please report this issue
> to
> >> > the
> >> > ALSA developers.*
> >> > Nov  2 10:57:44 lars-desktop pulseaudio[1612]: alsa-sink.c: We were
> >> woken
> >> > up
> >> > with POLLOUT set -- however a subsequent snd_pcm_avail() returned 0 or
> >> > another value < min_avail.
> >> > Nov  2 10:57:49 lars-desktop pulseaudio[1612]: ratelimit.c: 99 events
> >> > suppressed
> >> >
> >> > Later if I try to play audio I get terrible skipping or stuttering and
> >> my
> >> > syslog (in less than a minute) writes:
> >> > Nov  2 11:55:16 lars-desktop pulseaudio[1612]: ratelimit.c: 16 events
> >> > suppressed
> >> > Nov  2 11:55:21 lars-desktop pulseaudio[1612]: ratelimit.c: 34 events
> >> > suppressed
> >> > Nov  2 11:55:26 lars-desktop pulseaudio[1612]: ratelimit.c: 70 events
> >> > suppressed
> >> > Nov  2 11:55:31 lars-desktop pulseaudio[1612]: ratelimit.c: 29 events
> >> > suppressed
> >> > Nov  2 11:55:36 lars-desktop pulseaudio[1612]: ratelimit.c: 43 events
> >> > suppressed
> >> > Nov  2 11:55:41 lars-desktop pulseaudio[1612]: ratelimit.c: 161 events
> >> > suppressed
> >> > Nov  2 11:55:46 lars-desktop pulseaudio[1612]: ratelimit.c: 28 events
> >> > suppressed
> >> > Nov  2 11:55:51 lars-desktop pulseaudio[1612]: ratelimit.c: 18 events
> >> > suppressed
> >> > Nov  2 11:55:56 lars-desktop pulseaudio[1612]: ratelimit.c: 16 events
> >> > suppressed
> >> >
> >> > Here's the relevant part (concerning my sound card) of lspci -vvv
> >> >
> >> > 02:09.0 Multimedia audio controller: Xilinx Corporation RME Hammerfall
> >> DSP
> >> > (rev 9a)
> >> >    Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
> >> > Stepping- SERR- FastB2B- DisINTx-
> >> >    Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
> >> > <TAbort- <MAbort- >SERR- <PERR- INTx-
> >> >    Latency: 255
> >> >    Interrupt: pin A routed to IRQ 19
> >> >    Region 0: Memory at fdff0000 (32-bit, non-prefetchable) [size=64K]
> >> >    Kernel driver in use: RME Hammerfall DSP
> >> >    Kernel modules: snd-hdsp
> >> >
> >> > And:
> >> > lars@lars-desktop:~$ aplay -l
> >> > **** List of PLAYBACK Hardware Devices ****
> >> > card 0: DSP [Hammerfall DSP], device 0: RME Hammerfall HDSP 9632 [RME
> >> > Hammerfall HDSP 9632]
> >> >  Subdevices: 1/1
> >> >  Subdevice #0: subdevice #0
> >> >
> >> >
> >> > lars@lars-desktop:~$ cat /proc/asound/version
> >> > Advanced Linux Sound Architecture Driver Version 1.0.21.
> >> > Compiled on Oct 15 2009 for kernel 2.6.31-14-generic (SMP).
> >> >
> >> > lars@lars-desktop:~$ cat /proc/asound/cards
> >> >  0 [DSP            ]: H-DSP - Hammerfall DSP
> >> >                      RME Hammerfall HDSP 9632 at 0xfdff0000, irq 19
> >> >
> >> >
> >> > lars@lars-desktop:~$ cat /proc/asound/modules
> >> >  0 snd_hdsp
> >> >
> >> > I don't have .asound.conf files.
> >> >
> >> > lars@lars-desktop:~$ hdsploader
> >> > hdsploader - firmware loader for RME Hammerfall DSP cards
> >> > Looking for HDSP + Multiface or Digiface cards :
> >> > Card 0 : RME Hammerfall HDSP 9632 at 0xfdff0000, irq 19
> >> >
> >> > And of course. My computer makes no sound if I don't load the
> hdspmixer
> >> at
> >> > startup. I guess that's just normal for this card though.
> >> >
> >> > Please let me know, if you need more info. I really hope you can help
> >> out
> >> > here. And that this might help you to.
> >> >
> >> > Thanks for the great work you do. Greetings.
> >> > Lars Zobbe.
> >> > _______________________________________________
> >> > Alsa-devel mailing list
> >> > Alsa-devel@alsa-project.org
> >> > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> >> >
> >> _______________________________________________
> >> Alsa-devel mailing list
> >> Alsa-devel@alsa-project.org
> >> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> >>
> >
> >
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: snd-hdsp driver error?
       [not found]           ` <933ed0910911060823x4f512b32h546167eea73050df@mail.gmail.com>
@ 2009-11-06 23:12             ` Raymond Yau
       [not found]               ` <933ed0910911061523u2b592454ladd8b8cb7d8e2284@mail.gmail.com>
  2009-11-08 10:34               ` Takashi Iwai
  0 siblings, 2 replies; 12+ messages in thread
From: Raymond Yau @ 2009-11-06 23:12 UTC (permalink / raw)
  To: alsa-devel

AFAIK , alsa-lib use the driver name to find the name of corresponding
conf file from /usr/share/alsa/cards/aliases.conf
In your case , H-DSP.conf does not exist and there is no aliases in
/usr/share/alsa/cards/aliases.conf

You have to ask Takashi or Jaroslav to fix this issue for your card

open("/usr/share/alsa/cards/aliases.conf", O_RDONLY) = 3


access("/usr/share/alsa/cards/H-DSP.conf", R_OK) = -1 ENOENT (No such
file or directory)
open("/dev/snd/controlC1", O_RDONLY)    = 3
close(3)                                = 0


write(2, "ALSA lib confmisc.c:1286:(snd_fu"..., 42ALSA lib
confmisc.c:1286:(snd_func_refer) ) = 42
write(2, "Unable to find definition 'cards"..., 58Unable to find
definition 'cards.H-DSP.pcm.front.0:CARD=0') = 58
write(2, "\n", 1



2009/11/7 Lars Zobbe <fedesensfar@gmail.com>

> It is a clean install.
> lars@lars-desktop:~$ lsb_release -a && uname -a
> No LSB modules are available.
> Distributor ID:    Ubuntu
> Description:    Ubuntu 9.10
> Release:    9.10
> Codename:    karmic
> Linux lars-desktop 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:05:01 UTC
> 2009 x86_64 GNU/Linux
>
> It didn't work with pulseaudio in any previos version (of ubuntu or any
> other distro I've tried) either.
> And the standard answer from people "out there" is "forget about pulse it
> doesn't work with the HDSP" f.x. this guy
> http://ubuntuforums.org/showpost.php?p=7578331&postcount=10
> And that's why I contacted pulseaudio developers first when I found out the
> it was because snd_hdsp didn't load with the preferred udev but only with
> module-detect (se my first post). They said that I should inform Alsa
> developers as there seems to be a problem with the alsa driver.
>
> I've attached the strace output.
>
> Thanks.
> Lars.
>
>
>
>
> On Fri, Nov 6, 2009 at 2:53 AM, Raymond Yau <superquad.vortex2@gmail.com>wrote:
>
>> Is it a clean install of Ubuntu 9.10 or upgrade from previous Ubuntu ?
>>
>> you may need to find out why aplay -v -Dfront 32bit.wav fail ?
>>
>> strace aplay -v -Dfront 32bit.wav
>>
>>
>>
>>
>>
>> !!Linux Distribution
>>
>> !!------------------
>>
>> Ubuntu 9.10 \n \l DISTRIB_ID=Ubuntu DISTRIB_DESCRIPTION="Ubuntu 9.10"
>>
>> !!Sound Servers on this system
>> !!----------------------------
>>
>> Pulseaudio:
>>       Installed - Yes (/usr/bin/pulseaudio)
>>
>>
>>       Running - Yes
>>
>> ESound Daemon:
>>       Installed - Yes (/usr/bin/esd)
>>       Running - No
>>
>> Jack:
>>       Installed - Yes (/usr/bin/jackd)
>>       Running - No
>>
>>
>> !!ALSA configuration files
>>
>>
>> !!------------------------
>>
>> !!User specific config file (~/.asoundrc)
>>
>> pcm.!default {
>>     type plug
>>     slave { pcm "jack" }
>> }
>>
>> pcm.jack {
>>     type jack
>>     playback_ports {
>>
>>         0 alsa_pcm:playback_1
>>
>>         1 alsa_pcm:playback_2
>>     }
>>     capture_ports {
>>         0 alsa_pcm:capture_1
>>         1 alsa_pcm:capture_2
>>     }
>> }
>>
>> ctl.mixer0 {
>>     type hw
>>     card 0
>> }
>>
>>
>> lars@lars-desktop:~$ aplay -v -Dfront:0 32bit.wav
>> ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition
>> 'cards.H-DSP.pcm.front.0:CARD=0'
>> ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_refer
>> returned error: No such file or directory
>> ALSA lib conf.c:3985:(snd_config_expand) Evaluate error: No such file or
>> directory
>> ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM front:0
>> aplay: main:608: audio open error: No such file or directory
>>
>>
>> Did PA developer tell you not to load oss module ?
>>
>>
>>
>> D: alsa-util.c: Checking for subset analog-mono (hw:%f)
>> D: alsa-util.c: Trying hw:0 with SND_PCM_NO_AUTO_FORMAT ...
>> D: alsa-util.c: Managed to open hw:0
>> D: alsa-util.c: snd_pcm_hw_params_set_access() failed: Invalid argument
>> D: alsa-util.c: Trying hw:0 without SND_PCM_NO_AUTO_FORMAT ...
>> D: alsa-util.c: Managed to open hw:0
>> D: alsa-util.c: snd_pcm_hw_params_set_access() failed: Invalid argument
>> D: alsa-util.c: Trying plug:hw:0 with SND_PCM_NO_AUTO_FORMAT ...
>> D: alsa-util.c: Managed to open plug:hw:0
>> D: alsa-util.c: snd_pcm_hw_params_set_format(Signed 16 bit Little Endian)
>> failed: Invalid argument
>> D: alsa-util.c: snd_pcm_hw_params_set_format(Signed 16 bit Big Endian)
>> failed: Invalid argument
>> D: alsa-util.c: snd_pcm_hw_params_set_format(Float 32 bit Little Endian)
>> failed: Invalid argument
>> D: alsa-util.c: snd_pcm_hw_params_set_format(Float 32 bit Big Endian)
>> failed: Invalid argument
>> D: alsa-util.c: snd_pcm_hw_params_set_channels(1) failed: Invalid argument
>> D: alsa-util.c: Trying plug:hw:0 without SND_PCM_NO_AUTO_FORMAT ...
>> D: alsa-util.c: Managed to open plug:hw:0
>> D: alsa-util.c: snd_pcm_hw_params_set_channels(1) failed: Invalid argument
>> I: alsa-util.c: Failed to set hardware parameters on plug:hw:0: Invalid
>> argument
>> D: alsa-util.c: Trying hw:0 as last resort...
>> D: alsa-util.c: Trying hw:0 with SND_PCM_NO_AUTO_FORMAT ...
>> D: alsa-util.c: Managed to open hw:0
>> D: alsa-util.c: snd_pcm_hw_params_set_access() failed: Invalid argument
>> D: alsa-util.c: Trying hw:0 without SND_PCM_NO_AUTO_FORMAT ...
>> D: alsa-util.c: Managed to open hw:0
>> D: alsa-util.c: snd_pcm_hw_params_set_access() failed: Invalid argument
>> D: alsa-util.c: Trying plug:hw:0 with SND_PCM_NO_AUTO_FORMAT ...
>> D: alsa-util.c: Managed to open plug:hw:0
>> D: alsa-util.c: snd_pcm_hw_params_set_format(Signed 16 bit Little Endian)
>> failed: Invalid argument
>> D: alsa-util.c: snd_pcm_hw_params_set_format(Signed 16 bit Big Endian)
>> failed: Invalid argument
>> D: alsa-util.c: snd_pcm_hw_params_set_format(Float 32 bit Little Endian)
>> failed: Invalid argument
>> D: alsa-util.c: snd_pcm_hw_params_set_format(Float 32 bit Big Endian)
>> failed: Invalid argument
>> D: alsa-util.c: Maximum hw buffer size is 371 ms
>> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
>> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
>> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
>> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
>> D: alsa-util.c: Set neither period nor buffer size.
>> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
>> I: alsa-util.c: snd_pcm_hw_params failed: Device or resource busy
>> D: alsa-util.c: Trying plug:hw:0 without SND_PCM_NO_AUTO_FORMAT ...
>> D: alsa-util.c: Managed to open plug:hw:0
>> D: alsa-util.c: Maximum hw buffer size is 371 ms
>> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
>> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
>> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
>> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
>> D: alsa-util.c: Set neither period nor buffer size.
>> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
>> I: alsa-util.c: snd_pcm_hw_params failed: Device or resource busy
>> I: alsa-util.c: Failed to set hardware parameters on plug:hw:0: Device or
>> resource busy
>> E: module.c: Failed to load  module "module-alsa-source" (argument:
>> "device_id=0"): initialization failed.
>> W: module.c: module-oss is deprecated: Please use module-alsa-card instead
>> of module-oss!
>> D: oss-util.c: capabilities: MMAP REALTIME TRIGGER
>> I: module-oss.c: Device opened in O_RDONLY mode.
>> D: oss-util.c: Asking for 4 fragments of size 512 (requested 880)
>> E: oss-util.c: SNDCTL_DSP_SETFMT: Device or resource busy
>> E: module.c: Failed to load  module "module-oss" (argument:
>> "device=/dev/dsp"): initialization failed.
>> W: module-detect.c: failed to detect any sound hardware.
>>
>>
>> 2009/11/6 Lars Zobbe <fedesensfar@gmail.com>
>>
>> Sorry. I didn't realise that it was a bash script. Here is the link to my
>>> alsa-info
>>>
>>> http://www.alsa-project.org/db/?f=d3728557be71067e2ed0920747118ae7efff2829
>>>
>>> Thanks again.
>>> Lars.
>>>
>>>
>>> On Thu, Nov 5, 2009 at 5:29 AM, Raymond Yau <superquad.vortex2@gmail.com
>>> > wrote:
>>>
>>>> Please provide the full pulseaudio log and output of alsa-info.sh
>>>>
>>>> http://www.pulseaudio.org/wiki/Troubleshooting
>>>>
>>>> pulseaudio -k; pulseaudio -vvv
>>>>
>>>> and
>>>>
>>>> aplay -v -Dfront:0 32bit.wav
>>>>
>>>> aplay -v -M -Dfront:0 32bit.wav
>>>>
>>>> aplay -v -Dplughw:0 any.wav
>>>>
>>>> aplay -v -M -Dplughw:0 any.wav
>>>>
>>>>
>>>> 2009/11/4 Lars Zobbe <fedesensfar@gmail.com>
>>>>
>>>> > Hi Raymond.
>>>> >
>>>> > I so sorry Raymond. But I'm not sure what to do with this info. Is
>>>> there
>>>> > something more I have to tell you? Is there anything I can do to make
>>>> > pulseaudio able to detect via udev? Can I copy-paste that bit of code
>>>> you
>>>> > sent me somewhere?
>>>> > Please tell me if there's more you need to know.
>>>> > Greetings.
>>>> > Lars.
>>>> >
>>>> >
>>>> >
>>>> >
>>>> > On Tue, Nov 3, 2009 at 7:48 AM, Raymond Yau <
>>>> superquad.vortex2@gmail.com>wrote:
>>>> >
>>>> >> I guess route plugin used by RME96*.conf does not support mmap when
>>>> there
>>>> >> is
>>>> >> channel conversion since minimum channels supported by hdsp is 14
>>>> >>
>>>> >>
>>>> >> static struct snd_pcm_hardware snd_hdsp_playback_subinfo =
>>>> >> {
>>>> >>    .info = (SNDRV_PCM_INFO_MMAP |
>>>> >>                 SNDRV_PCM_INFO_MMAP_VALID |
>>>> >>                 SNDRV_PCM_INFO_NONINTERLEAVED |
>>>> >>                 SNDRV_PCM_INFO_SYNC_START |
>>>> >>                 SNDRV_PCM_INFO_DOUBLE),
>>>> >> #ifdef SNDRV_BIG_ENDIAN
>>>> >>    .formats = SNDRV_PCM_FMTBIT_S32_BE,
>>>> >> #else
>>>> >>    .formats = SNDRV_PCM_FMTBIT_S32_LE,
>>>> >> #endif
>>>> >>    .rates = (SNDRV_PCM_RATE_32000 |
>>>> >>                 SNDRV_PCM_RATE_44100 |
>>>> >>                 SNDRV_PCM_RATE_48000 |
>>>> >>                 SNDRV_PCM_RATE_64000 |
>>>> >>                 SNDRV_PCM_RATE_88200 |
>>>> >>                 SNDRV_PCM_RATE_96000),
>>>> >>    .rate_min = 32000,
>>>> >>    .rate_max = 96000,
>>>> >>    .channels_min = 14,
>>>> >>    .channels_max = HDSP_MAX_CHANNELS,
>>>> >>    .buffer_bytes_max = HDSP_CHANNEL_BUFFER_BYTES * HDSP_MAX_CHANNELS,
>>>> >>    .period_bytes_min = (64 * 4) * 10,
>>>> >>    .period_bytes_max = (8192 * 4) * HDSP_MAX_CHANNELS,
>>>> >>    .periods_min = 2,
>>>> >>    .periods_max = 2,
>>>> >>    .fifo_size = 0
>>>> >> };
>>>> >>
>>>> >> 2009/11/2 Lars Zobbe <fedesensfar@gmail.com>
>>>> >>
>>>> >> > Hi.
>>>> >> >
>>>> >> > Talking to one of the pulseaudio developers (*Colin Guthrie*) about
>>>> a
>>>> >> > problem with pulseaudio loading modules and my sound card (RME HDSP
>>>> >> 9632),
>>>> >> > I
>>>> >> > was adviced to inform you about the problem.
>>>> >> >
>>>> >> > I'm on ubuntu 9.10, 64bit, kernel 2.6.31 with an amd64 x2 3800+
>>>> >> processor.
>>>> >> >
>>>> >> >
>>>> >> > Symptoms are:
>>>> >> > Can only make pulseaudio load modules with the deprecated
>>>> load-module
>>>> >> > module-detect command, module-udev-detect doesn't detect anything
>>>> (no
>>>> >> sound
>>>> >> > - only null sink output in padevchooser).
>>>> >> > I get terrible stuttering.
>>>> >> > I can remove pulseaudio and make things work, more or less.
>>>> However,
>>>> >> that
>>>> >> > leaves me without software mixing and apps fighting for the rights
>>>> to
>>>> >> make
>>>> >> > sound. And more inconveniences (fx. no volume-control).
>>>> >> > I can play sound from audacity without stuttering by choosing the
>>>> >> cardname
>>>> >> > directly in output HDSP, not ALSA, not pulseaudio.
>>>> >> >
>>>> >> >
>>>> >> > When trying to run alsa-info.sh I get a lot of "not found" errors.
>>>> So
>>>> >> > you'll
>>>> >> > get some manual info (they might have moved som files around in
>>>> ubuntu
>>>> >> > 9.10).
>>>> >> >
>>>> >> > This is part of my syslog during a boot. (I did the formatting to
>>>> bold).
>>>> >> >
>>>> >> > Nov  2 10:57:32 lars-desktop pulseaudio[1524]: module.c:
>>>> module-detect
>>>> >> is
>>>> >> > deprecated: Please use module-udev-detect instead of module-detect!
>>>> >> > Nov  2 10:57:37 lars-desktop pulseaudio[1524]: ratelimit.c: 27
>>>> events
>>>> >> > suppressed
>>>> >> > Nov  2 10:57:39 lars-desktop pulseaudio[1612]: module.c:
>>>> module-detect
>>>> >> is
>>>> >> > deprecated: Please use module-udev-detect instead of module-detect!
>>>> >> > Nov  2 10:57:44 lars-desktop pulseaudio[1612]: ratelimit.c: 23
>>>> events
>>>> >> > suppressed
>>>> >> > Nov  2 10:57:44 lars-desktop pulseaudio[1612]: alsa-sink.c: ALSA
>>>> woke us
>>>> >> up
>>>> >> > to write new data to the device, but there was actually nothing to
>>>> >> write!
>>>> >> > Nov  2 10:57:44 lars-desktop pulseaudio[1612]: alsa-sink.c: *Most
>>>> likely
>>>> >> > this is a bug in the ALSA driver 'snd_hdsp'. Please report this
>>>> issue to
>>>> >> > the
>>>> >> > ALSA developers.*
>>>> >> > Nov  2 10:57:44 lars-desktop pulseaudio[1612]: alsa-sink.c: We were
>>>> >> woken
>>>> >> > up
>>>> >> > with POLLOUT set -- however a subsequent snd_pcm_avail() returned 0
>>>> or
>>>> >> > another value < min_avail.
>>>> >> > Nov  2 10:57:49 lars-desktop pulseaudio[1612]: ratelimit.c: 99
>>>> events
>>>> >> > suppressed
>>>> >> >
>>>> >> > Later if I try to play audio I get terrible skipping or stuttering
>>>> and
>>>> >> my
>>>> >> > syslog (in less than a minute) writes:
>>>> >> > Nov  2 11:55:16 lars-desktop pulseaudio[1612]: ratelimit.c: 16
>>>> events
>>>> >> > suppressed
>>>> >> > Nov  2 11:55:21 lars-desktop pulseaudio[1612]: ratelimit.c: 34
>>>> events
>>>> >> > suppressed
>>>> >> > Nov  2 11:55:26 lars-desktop pulseaudio[1612]: ratelimit.c: 70
>>>> events
>>>> >> > suppressed
>>>> >> > Nov  2 11:55:31 lars-desktop pulseaudio[1612]: ratelimit.c: 29
>>>> events
>>>> >> > suppressed
>>>> >> > Nov  2 11:55:36 lars-desktop pulseaudio[1612]: ratelimit.c: 43
>>>> events
>>>> >> > suppressed
>>>> >> > Nov  2 11:55:41 lars-desktop pulseaudio[1612]: ratelimit.c: 161
>>>> events
>>>> >> > suppressed
>>>> >> > Nov  2 11:55:46 lars-desktop pulseaudio[1612]: ratelimit.c: 28
>>>> events
>>>> >> > suppressed
>>>> >> > Nov  2 11:55:51 lars-desktop pulseaudio[1612]: ratelimit.c: 18
>>>> events
>>>> >> > suppressed
>>>> >> > Nov  2 11:55:56 lars-desktop pulseaudio[1612]: ratelimit.c: 16
>>>> events
>>>> >> > suppressed
>>>> >> >
>>>> >> > Here's the relevant part (concerning my sound card) of lspci -vvv
>>>> >> >
>>>> >> > 02:09.0 Multimedia audio controller: Xilinx Corporation RME
>>>> Hammerfall
>>>> >> DSP
>>>> >> > (rev 9a)
>>>> >> >    Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
>>>> ParErr-
>>>> >> > Stepping- SERR- FastB2B- DisINTx-
>>>> >> >    Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
>>>> >> > <TAbort- <MAbort- >SERR- <PERR- INTx-
>>>> >> >    Latency: 255
>>>> >> >    Interrupt: pin A routed to IRQ 19
>>>> >> >    Region 0: Memory at fdff0000 (32-bit, non-prefetchable)
>>>> [size=64K]
>>>> >> >    Kernel driver in use: RME Hammerfall DSP
>>>> >> >    Kernel modules: snd-hdsp
>>>> >> >
>>>> >> > And:
>>>> >> > lars@lars-desktop:~$ aplay -l
>>>> >> > **** List of PLAYBACK Hardware Devices ****
>>>> >> > card 0: DSP [Hammerfall DSP], device 0: RME Hammerfall HDSP 9632
>>>> [RME
>>>> >> > Hammerfall HDSP 9632]
>>>> >> >  Subdevices: 1/1
>>>> >> >  Subdevice #0: subdevice #0
>>>> >> >
>>>> >> >
>>>> >> > lars@lars-desktop:~$ cat /proc/asound/version
>>>> >> > Advanced Linux Sound Architecture Driver Version 1.0.21.
>>>> >> > Compiled on Oct 15 2009 for kernel 2.6.31-14-generic (SMP).
>>>> >> >
>>>> >> > lars@lars-desktop:~$ cat /proc/asound/cards
>>>> >> >  0 [DSP            ]: H-DSP - Hammerfall DSP
>>>> >> >                      RME Hammerfall HDSP 9632 at 0xfdff0000, irq 19
>>>> >> >
>>>> >> >
>>>> >> > lars@lars-desktop:~$ cat /proc/asound/modules
>>>> >> >  0 snd_hdsp
>>>> >> >
>>>> >> > I don't have .asound.conf files.
>>>> >> >
>>>> >> > lars@lars-desktop:~$ hdsploader
>>>> >> > hdsploader - firmware loader for RME Hammerfall DSP cards
>>>> >> > Looking for HDSP + Multiface or Digiface cards :
>>>> >> > Card 0 : RME Hammerfall HDSP 9632 at 0xfdff0000, irq 19
>>>> >> >
>>>> >> > And of course. My computer makes no sound if I don't load the
>>>> hdspmixer
>>>> >> at
>>>> >> > startup. I guess that's just normal for this card though.
>>>> >> >
>>>> >> > Please let me know, if you need more info. I really hope you can
>>>> help
>>>> >> out
>>>> >> > here. And that this might help you to.
>>>> >> >
>>>> >> > Thanks for the great work you do. Greetings.
>>>> >> > Lars Zobbe.
>>>> >> > _______________________________________________
>>>> >> > Alsa-devel mailing list
>>>> >> > Alsa-devel@alsa-project.org
>>>> >> > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>>>> >> >
>>>> >> _______________________________________________
>>>> >> Alsa-devel mailing list
>>>> >> Alsa-devel@alsa-project.org
>>>> >> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>>>> >>
>>>> >
>>>> >
>>>> _______________________________________________
>>>> Alsa-devel mailing list
>>>> Alsa-devel@alsa-project.org
>>>> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>>>>
>>>
>>>
>>
>

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: snd-hdsp driver error?
       [not found]               ` <933ed0910911061523u2b592454ladd8b8cb7d8e2284@mail.gmail.com>
@ 2009-11-08  0:42                 ` Raymond Yau
  0 siblings, 0 replies; 12+ messages in thread
From: Raymond Yau @ 2009-11-08  0:42 UTC (permalink / raw)
  To: alsa-devel

Not sure the H-DSP.conf uploaded by tom-ipp is OK since I don't have this
card

https://bugtrack.alsa-project.org/alsa-bug/view.php?id=4650

http://pulseaudio.org/ticket/564

The problem of using your card with pulseaudio

1) No front device defined
2) No master volume control
3) The card only support SNDRV_PCM_INFO_NONINTERLEAVED but seem PA only
support SNDRV_PCM_INFO_INTERLEAVED
4) PA expect your card support stereo but your card did not support stereo


2009/11/7 Lars Zobbe <fedesensfar@gmail.com>

> Thanks a lot Raymond. Now that's good news. Something that can be fixed is
> always good news.
>
> And Takashi and Jaroslav? Are they on this mailing list. I suppose it would
> just be a cuestion of putting their names in the subject field then.
>
> It would be so great if you could find a fix for this legendary card.
> Crossing my fingers.
>
> Thanks again. You've been a great help (I hope), now I'll just have to find
> those two guys.
>
> Lars.
>
>
>
> On Sat, Nov 7, 2009 at 12:12 AM, Raymond Yau <superquad.vortex2@gmail.com>wrote:
>
>> AFAIK , alsa-lib use the driver name to find the name of corresponding
>> conf file from /usr/share/alsa/cards/aliases.conf
>> In your case , H-DSP.conf does not exist and there is no aliases in
>> /usr/share/alsa/cards/aliases.conf
>>
>> You have to ask Takashi or Jaroslav to fix this issue for your card
>>
>> open("/usr/share/alsa/cards/aliases.conf", O_RDONLY) = 3
>>
>>
>> access("/usr/share/alsa/cards/H-DSP.conf", R_OK) = -1 ENOENT (No such
>> file or directory)
>> open("/dev/snd/controlC1", O_RDONLY)    = 3
>> close(3)                                = 0
>>
>>
>> write(2, "ALSA lib confmisc.c:1286:(snd_fu"..., 42ALSA lib
>> confmisc.c:1286:(snd_func_refer) ) = 42
>> write(2, "Unable to find definition 'cards"..., 58Unable to find
>> definition 'cards.H-DSP.pcm.front.0:CARD=0') = 58
>> write(2, "\n", 1
>>
>>
>>
>> 2009/11/7 Lars Zobbe <fedesensfar@gmail.com>
>>
>> > It is a clean install.
>> > lars@lars-desktop:~$ lsb_release -a && uname -a
>> > No LSB modules are available.
>> > Distributor ID:    Ubuntu
>> > Description:    Ubuntu 9.10
>> > Release:    9.10
>> > Codename:    karmic
>> > Linux lars-desktop 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:05:01
>> UTC
>> > 2009 x86_64 GNU/Linux
>> >
>> > It didn't work with pulseaudio in any previos version (of ubuntu or any
>> > other distro I've tried) either.
>> > And the standard answer from people "out there" is "forget about pulse
>> it
>> > doesn't work with the HDSP" f.x. this guy
>> > http://ubuntuforums.org/showpost.php?p=7578331&postcount=10
>> > And that's why I contacted pulseaudio developers first when I found out
>> the
>> > it was because snd_hdsp didn't load with the preferred udev but only
>> with
>> > module-detect (se my first post). They said that I should inform Alsa
>> > developers as there seems to be a problem with the alsa driver.
>> >
>> > I've attached the strace output.
>> >
>> > Thanks.
>> > Lars.
>> >
>> >
>> >
>> >
>> > On Fri, Nov 6, 2009 at 2:53 AM, Raymond Yau <
>> superquad.vortex2@gmail.com>wrote:
>> >
>> >> Is it a clean install of Ubuntu 9.10 or upgrade from previous Ubuntu ?
>> >>
>> >> you may need to find out why aplay -v -Dfront 32bit.wav fail ?
>> >>
>> >> strace aplay -v -Dfront 32bit.wav
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> !!Linux Distribution
>> >>
>> >> !!------------------
>> >>
>> >> Ubuntu 9.10 \n \l DISTRIB_ID=Ubuntu DISTRIB_DESCRIPTION="Ubuntu 9.10"
>> >>
>> >> !!Sound Servers on this system
>> >> !!----------------------------
>> >>
>> >> Pulseaudio:
>> >>       Installed - Yes (/usr/bin/pulseaudio)
>> >>
>> >>
>> >>       Running - Yes
>> >>
>> >> ESound Daemon:
>> >>       Installed - Yes (/usr/bin/esd)
>> >>       Running - No
>> >>
>> >> Jack:
>> >>       Installed - Yes (/usr/bin/jackd)
>> >>       Running - No
>> >>
>> >>
>> >> !!ALSA configuration files
>> >>
>> >>
>> >> !!------------------------
>> >>
>> >> !!User specific config file (~/.asoundrc)
>> >>
>> >> pcm.!default {
>> >>     type plug
>> >>     slave { pcm "jack" }
>> >> }
>> >>
>> >> pcm.jack {
>> >>     type jack
>> >>     playback_ports {
>> >>
>> >>         0 alsa_pcm:playback_1
>> >>
>> >>         1 alsa_pcm:playback_2
>> >>     }
>> >>     capture_ports {
>> >>         0 alsa_pcm:capture_1
>> >>         1 alsa_pcm:capture_2
>> >>     }
>> >> }
>> >>
>> >> ctl.mixer0 {
>> >>     type hw
>> >>     card 0
>> >> }
>> >>
>> >>
>> >> lars@lars-desktop:~$ aplay -v -Dfront:0 32bit.wav
>> >> ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition
>> >> 'cards.H-DSP.pcm.front.0:CARD=0'
>> >> ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_refer
>> >> returned error: No such file or directory
>> >> ALSA lib conf.c:3985:(snd_config_expand) Evaluate error: No such file
>> or
>> >> directory
>> >> ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM front:0
>> >> aplay: main:608: audio open error: No such file or directory
>> >>
>> >>
>> >> Did PA developer tell you not to load oss module ?
>> >>
>> >>
>> >>
>> >> D: alsa-util.c: Checking for subset analog-mono (hw:%f)
>> >> D: alsa-util.c: Trying hw:0 with SND_PCM_NO_AUTO_FORMAT ...
>> >> D: alsa-util.c: Managed to open hw:0
>> >> D: alsa-util.c: snd_pcm_hw_params_set_access() failed: Invalid argument
>> >> D: alsa-util.c: Trying hw:0 without SND_PCM_NO_AUTO_FORMAT ...
>> >> D: alsa-util.c: Managed to open hw:0
>> >> D: alsa-util.c: snd_pcm_hw_params_set_access() failed: Invalid argument
>> >> D: alsa-util.c: Trying plug:hw:0 with SND_PCM_NO_AUTO_FORMAT ...
>> >> D: alsa-util.c: Managed to open plug:hw:0
>> >> D: alsa-util.c: snd_pcm_hw_params_set_format(Signed 16 bit Little
>> Endian)
>> >> failed: Invalid argument
>> >> D: alsa-util.c: snd_pcm_hw_params_set_format(Signed 16 bit Big Endian)
>> >> failed: Invalid argument
>> >> D: alsa-util.c: snd_pcm_hw_params_set_format(Float 32 bit Little
>> Endian)
>> >> failed: Invalid argument
>> >> D: alsa-util.c: snd_pcm_hw_params_set_format(Float 32 bit Big Endian)
>> >> failed: Invalid argument
>> >> D: alsa-util.c: snd_pcm_hw_params_set_channels(1) failed: Invalid
>> argument
>> >> D: alsa-util.c: Trying plug:hw:0 without SND_PCM_NO_AUTO_FORMAT ...
>> >> D: alsa-util.c: Managed to open plug:hw:0
>> >> D: alsa-util.c: snd_pcm_hw_params_set_channels(1) failed: Invalid
>> argument
>> >> I: alsa-util.c: Failed to set hardware parameters on plug:hw:0: Invalid
>> >> argument
>> >> D: alsa-util.c: Trying hw:0 as last resort...
>> >> D: alsa-util.c: Trying hw:0 with SND_PCM_NO_AUTO_FORMAT ...
>> >> D: alsa-util.c: Managed to open hw:0
>> >> D: alsa-util.c: snd_pcm_hw_params_set_access() failed: Invalid argument
>> >> D: alsa-util.c: Trying hw:0 without SND_PCM_NO_AUTO_FORMAT ...
>> >> D: alsa-util.c: Managed to open hw:0
>> >> D: alsa-util.c: snd_pcm_hw_params_set_access() failed: Invalid argument
>> >> D: alsa-util.c: Trying plug:hw:0 with SND_PCM_NO_AUTO_FORMAT ...
>> >> D: alsa-util.c: Managed to open plug:hw:0
>> >> D: alsa-util.c: snd_pcm_hw_params_set_format(Signed 16 bit Little
>> Endian)
>> >> failed: Invalid argument
>> >> D: alsa-util.c: snd_pcm_hw_params_set_format(Signed 16 bit Big Endian)
>> >> failed: Invalid argument
>> >> D: alsa-util.c: snd_pcm_hw_params_set_format(Float 32 bit Little
>> Endian)
>> >> failed: Invalid argument
>> >> D: alsa-util.c: snd_pcm_hw_params_set_format(Float 32 bit Big Endian)
>> >> failed: Invalid argument
>> >> D: alsa-util.c: Maximum hw buffer size is 371 ms
>> >> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
>> >> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
>> >> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
>> >> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
>> >> D: alsa-util.c: Set neither period nor buffer size.
>> >> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
>> >> I: alsa-util.c: snd_pcm_hw_params failed: Device or resource busy
>> >> D: alsa-util.c: Trying plug:hw:0 without SND_PCM_NO_AUTO_FORMAT ...
>> >> D: alsa-util.c: Managed to open plug:hw:0
>> >> D: alsa-util.c: Maximum hw buffer size is 371 ms
>> >> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
>> >> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
>> >> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
>> >> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
>> >> D: alsa-util.c: Set neither period nor buffer size.
>> >> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
>> >> I: alsa-util.c: snd_pcm_hw_params failed: Device or resource busy
>> >> I: alsa-util.c: Failed to set hardware parameters on plug:hw:0: Device
>> or
>> >> resource busy
>> >> E: module.c: Failed to load  module "module-alsa-source" (argument:
>> >> "device_id=0"): initialization failed.
>> >> W: module.c: module-oss is deprecated: Please use module-alsa-card
>> instead
>> >> of module-oss!
>> >> D: oss-util.c: capabilities: MMAP REALTIME TRIGGER
>> >> I: module-oss.c: Device opened in O_RDONLY mode.
>> >> D: oss-util.c: Asking for 4 fragments of size 512 (requested 880)
>> >> E: oss-util.c: SNDCTL_DSP_SETFMT: Device or resource busy
>> >> E: module.c: Failed to load  module "module-oss" (argument:
>> >> "device=/dev/dsp"): initialization failed.
>> >> W: module-detect.c: failed to detect any sound hardware.
>> >>
>> >>
>> >> 2009/11/6 Lars Zobbe <fedesensfar@gmail.com>
>> >>
>> >> Sorry. I didn't realise that it was a bash script. Here is the link to
>> my
>> >>> alsa-info
>> >>>
>> >>>
>> http://www.alsa-project.org/db/?f=d3728557be71067e2ed0920747118ae7efff2829
>> >>>
>> >>> Thanks again.
>> >>> Lars.
>> >>>
>> >>>
>> >>> On Thu, Nov 5, 2009 at 5:29 AM, Raymond Yau <
>> superquad.vortex2@gmail.com
>> >>> > wrote:
>> >>>
>> >>>> Please provide the full pulseaudio log and output of alsa-info.sh
>> >>>>
>> >>>> http://www.pulseaudio.org/wiki/Troubleshooting
>> >>>>
>> >>>> pulseaudio -k; pulseaudio -vvv
>> >>>>
>> >>>> and
>> >>>>
>> >>>> aplay -v -Dfront:0 32bit.wav
>> >>>>
>> >>>> aplay -v -M -Dfront:0 32bit.wav
>> >>>>
>> >>>> aplay -v -Dplughw:0 any.wav
>> >>>>
>> >>>> aplay -v -M -Dplughw:0 any.wav
>> >>>>
>> >>>>
>> >>>> 2009/11/4 Lars Zobbe <fedesensfar@gmail.com>
>> >>>>
>> >>>> > Hi Raymond.
>> >>>> >
>> >>>> > I so sorry Raymond. But I'm not sure what to do with this info. Is
>> >>>> there
>> >>>> > something more I have to tell you? Is there anything I can do to
>> make
>> >>>> > pulseaudio able to detect via udev? Can I copy-paste that bit of
>> code
>> >>>> you
>> >>>> > sent me somewhere?
>> >>>> > Please tell me if there's more you need to know.
>> >>>> > Greetings.
>> >>>> > Lars.
>> >>>> >
>> >>>> >
>> >>>> >
>> >>>> >
>> >>>> > On Tue, Nov 3, 2009 at 7:48 AM, Raymond Yau <
>> >>>> superquad.vortex2@gmail.com>wrote:
>> >>>> >
>> >>>> >> I guess route plugin used by RME96*.conf does not support mmap
>> when
>> >>>> there
>> >>>> >> is
>> >>>> >> channel conversion since minimum channels supported by hdsp is 14
>> >>>> >>
>> >>>> >>
>> >>>> >> static struct snd_pcm_hardware snd_hdsp_playback_subinfo =
>> >>>> >> {
>> >>>> >>    .info = (SNDRV_PCM_INFO_MMAP |
>> >>>> >>                 SNDRV_PCM_INFO_MMAP_VALID |
>> >>>> >>                 SNDRV_PCM_INFO_NONINTERLEAVED |
>> >>>> >>                 SNDRV_PCM_INFO_SYNC_START |
>> >>>> >>                 SNDRV_PCM_INFO_DOUBLE),
>> >>>> >> #ifdef SNDRV_BIG_ENDIAN
>> >>>> >>    .formats = SNDRV_PCM_FMTBIT_S32_BE,
>> >>>> >> #else
>> >>>> >>    .formats = SNDRV_PCM_FMTBIT_S32_LE,
>> >>>> >> #endif
>> >>>> >>    .rates = (SNDRV_PCM_RATE_32000 |
>> >>>> >>                 SNDRV_PCM_RATE_44100 |
>> >>>> >>                 SNDRV_PCM_RATE_48000 |
>> >>>> >>                 SNDRV_PCM_RATE_64000 |
>> >>>> >>                 SNDRV_PCM_RATE_88200 |
>> >>>> >>                 SNDRV_PCM_RATE_96000),
>> >>>> >>    .rate_min = 32000,
>> >>>> >>    .rate_max = 96000,
>> >>>> >>    .channels_min = 14,
>> >>>> >>    .channels_max = HDSP_MAX_CHANNELS,
>> >>>> >>    .buffer_bytes_max = HDSP_CHANNEL_BUFFER_BYTES *
>> HDSP_MAX_CHANNELS,
>> >>>> >>    .period_bytes_min = (64 * 4) * 10,
>> >>>> >>    .period_bytes_max = (8192 * 4) * HDSP_MAX_CHANNELS,
>> >>>> >>    .periods_min = 2,
>> >>>> >>    .periods_max = 2,
>> >>>> >>    .fifo_size = 0
>> >>>> >> };
>> >>>> >>
>> >>>> >> 2009/11/2 Lars Zobbe <fedesensfar@gmail.com>
>> >>>> >>
>> >>>> >> > Hi.
>> >>>> >> >
>> >>>> >> > Talking to one of the pulseaudio developers (*Colin Guthrie*)
>> about
>> >>>> a
>> >>>> >> > problem with pulseaudio loading modules and my sound card (RME
>> HDSP
>> >>>> >> 9632),
>> >>>> >> > I
>> >>>> >> > was adviced to inform you about the problem.
>> >>>> >> >
>> >>>> >> > I'm on ubuntu 9.10, 64bit, kernel 2.6.31 with an amd64 x2 3800+
>> >>>> >> processor.
>> >>>> >> >
>> >>>> >> >
>> >>>> >> > Symptoms are:
>> >>>> >> > Can only make pulseaudio load modules with the deprecated
>> >>>> load-module
>> >>>> >> > module-detect command, module-udev-detect doesn't detect
>> anything
>> >>>> (no
>> >>>> >> sound
>> >>>> >> > - only null sink output in padevchooser).
>> >>>> >> > I get terrible stuttering.
>> >>>> >> > I can remove pulseaudio and make things work, more or less.
>> >>>> However,
>> >>>> >> that
>> >>>> >> > leaves me without software mixing and apps fighting for the
>> rights
>> >>>> to
>> >>>> >> make
>> >>>> >> > sound. And more inconveniences (fx. no volume-control).
>> >>>> >> > I can play sound from audacity without stuttering by choosing
>> the
>> >>>> >> cardname
>> >>>> >> > directly in output HDSP, not ALSA, not pulseaudio.
>> >>>> >> >
>> >>>> >> >
>> >>>> >> > When trying to run alsa-info.sh I get a lot of "not found"
>> errors.
>> >>>> So
>> >>>> >> > you'll
>> >>>> >> > get some manual info (they might have moved som files around in
>> >>>> ubuntu
>> >>>> >> > 9.10).
>> >>>> >> >
>> >>>> >> > This is part of my syslog during a boot. (I did the formatting
>> to
>> >>>> bold).
>> >>>> >> >
>> >>>> >> > Nov  2 10:57:32 lars-desktop pulseaudio[1524]: module.c:
>> >>>> module-detect
>> >>>> >> is
>> >>>> >> > deprecated: Please use module-udev-detect instead of
>> module-detect!
>> >>>> >> > Nov  2 10:57:37 lars-desktop pulseaudio[1524]: ratelimit.c: 27
>> >>>> events
>> >>>> >> > suppressed
>> >>>> >> > Nov  2 10:57:39 lars-desktop pulseaudio[1612]: module.c:
>> >>>> module-detect
>> >>>> >> is
>> >>>> >> > deprecated: Please use module-udev-detect instead of
>> module-detect!
>> >>>> >> > Nov  2 10:57:44 lars-desktop pulseaudio[1612]: ratelimit.c: 23
>> >>>> events
>> >>>> >> > suppressed
>> >>>> >> > Nov  2 10:57:44 lars-desktop pulseaudio[1612]: alsa-sink.c: ALSA
>> >>>> woke us
>> >>>> >> up
>> >>>> >> > to write new data to the device, but there was actually nothing
>> to
>> >>>> >> write!
>> >>>> >> > Nov  2 10:57:44 lars-desktop pulseaudio[1612]: alsa-sink.c:
>> *Most
>> >>>> likely
>> >>>> >> > this is a bug in the ALSA driver 'snd_hdsp'. Please report this
>> >>>> issue to
>> >>>> >> > the
>> >>>> >> > ALSA developers.*
>> >>>> >> > Nov  2 10:57:44 lars-desktop pulseaudio[1612]: alsa-sink.c: We
>> were
>> >>>> >> woken
>> >>>> >> > up
>> >>>> >> > with POLLOUT set -- however a subsequent snd_pcm_avail()
>> returned 0
>> >>>> or
>> >>>> >> > another value < min_avail.
>> >>>> >> > Nov  2 10:57:49 lars-desktop pulseaudio[1612]: ratelimit.c: 99
>> >>>> events
>> >>>> >> > suppressed
>> >>>> >> >
>> >>>> >> > Later if I try to play audio I get terrible skipping or
>> stuttering
>> >>>> and
>> >>>> >> my
>> >>>> >> > syslog (in less than a minute) writes:
>> >>>> >> > Nov  2 11:55:16 lars-desktop pulseaudio[1612]: ratelimit.c: 16
>> >>>> events
>> >>>> >> > suppressed
>> >>>> >> > Nov  2 11:55:21 lars-desktop pulseaudio[1612]: ratelimit.c: 34
>> >>>> events
>> >>>> >> > suppressed
>> >>>> >> > Nov  2 11:55:26 lars-desktop pulseaudio[1612]: ratelimit.c: 70
>> >>>> events
>> >>>> >> > suppressed
>> >>>> >> > Nov  2 11:55:31 lars-desktop pulseaudio[1612]: ratelimit.c: 29
>> >>>> events
>> >>>> >> > suppressed
>> >>>> >> > Nov  2 11:55:36 lars-desktop pulseaudio[1612]: ratelimit.c: 43
>> >>>> events
>> >>>> >> > suppressed
>> >>>> >> > Nov  2 11:55:41 lars-desktop pulseaudio[1612]: ratelimit.c: 161
>> >>>> events
>> >>>> >> > suppressed
>> >>>> >> > Nov  2 11:55:46 lars-desktop pulseaudio[1612]: ratelimit.c: 28
>> >>>> events
>> >>>> >> > suppressed
>> >>>> >> > Nov  2 11:55:51 lars-desktop pulseaudio[1612]: ratelimit.c: 18
>> >>>> events
>> >>>> >> > suppressed
>> >>>> >> > Nov  2 11:55:56 lars-desktop pulseaudio[1612]: ratelimit.c: 16
>> >>>> events
>> >>>> >> > suppressed
>> >>>> >> >
>> >>>> >> > Here's the relevant part (concerning my sound card) of lspci
>> -vvv
>> >>>> >> >
>> >>>> >> > 02:09.0 Multimedia audio controller: Xilinx Corporation RME
>> >>>> Hammerfall
>> >>>> >> DSP
>> >>>> >> > (rev 9a)
>> >>>> >> >    Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
>> >>>> ParErr-
>> >>>> >> > Stepping- SERR- FastB2B- DisINTx-
>> >>>> >> >    Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium
>> >TAbort-
>> >>>> >> > <TAbort- <MAbort- >SERR- <PERR- INTx-
>> >>>> >> >    Latency: 255
>> >>>> >> >    Interrupt: pin A routed to IRQ 19
>> >>>> >> >    Region 0: Memory at fdff0000 (32-bit, non-prefetchable)
>> >>>> [size=64K]
>> >>>> >> >    Kernel driver in use: RME Hammerfall DSP
>> >>>> >> >    Kernel modules: snd-hdsp
>> >>>> >> >
>> >>>> >> > And:
>> >>>> >> > lars@lars-desktop:~$ aplay -l
>> >>>> >> > **** List of PLAYBACK Hardware Devices ****
>> >>>> >> > card 0: DSP [Hammerfall DSP], device 0: RME Hammerfall HDSP 9632
>> >>>> [RME
>> >>>> >> > Hammerfall HDSP 9632]
>> >>>> >> >  Subdevices: 1/1
>> >>>> >> >  Subdevice #0: subdevice #0
>> >>>> >> >
>> >>>> >> >
>> >>>> >> > lars@lars-desktop:~$ cat /proc/asound/version
>> >>>> >> > Advanced Linux Sound Architecture Driver Version 1.0.21.
>> >>>> >> > Compiled on Oct 15 2009 for kernel 2.6.31-14-generic (SMP).
>> >>>> >> >
>> >>>> >> > lars@lars-desktop:~$ cat /proc/asound/cards
>> >>>> >> >  0 [DSP            ]: H-DSP - Hammerfall DSP
>> >>>> >> >                      RME Hammerfall HDSP 9632 at 0xfdff0000, irq
>> 19
>> >>>> >> >
>> >>>> >> >
>> >>>> >> > lars@lars-desktop:~$ cat /proc/asound/modules
>> >>>> >> >  0 snd_hdsp
>> >>>> >> >
>> >>>> >> > I don't have .asound.conf files.
>> >>>> >> >
>> >>>> >> > lars@lars-desktop:~$ hdsploader
>> >>>> >> > hdsploader - firmware loader for RME Hammerfall DSP cards
>> >>>> >> > Looking for HDSP + Multiface or Digiface cards :
>> >>>> >> > Card 0 : RME Hammerfall HDSP 9632 at 0xfdff0000, irq 19
>> >>>> >> >
>> >>>> >> > And of course. My computer makes no sound if I don't load the
>> >>>> hdspmixer
>> >>>> >> at
>> >>>> >> > startup. I guess that's just normal for this card though.
>> >>>> >> >
>> >>>> >> > Please let me know, if you need more info. I really hope you can
>> >>>> help
>> >>>> >> out
>> >>>> >> > here. And that this might help you to.
>> >>>> >> >
>> >>>> >> > Thanks for the great work you do. Greetings.
>> >>>> >> > Lars Zobbe.
>> >>>> >> > _______________________________________________
>> >>>> >> > Alsa-devel mailing list
>> >>>> >> > Alsa-devel@alsa-project.org
>> >>>> >> > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>> >>>> >> >
>> >>>> >> _______________________________________________
>> >>>> >> Alsa-devel mailing list
>> >>>> >> Alsa-devel@alsa-project.org
>> >>>> >> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>> >>>> >>
>> >>>> >
>> >>>> >
>> >>>> _______________________________________________
>> >>>> Alsa-devel mailing list
>> >>>> Alsa-devel@alsa-project.org
>> >>>> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>> >>>>
>> >>>
>> >>>
>> >>
>> >
>> _______________________________________________
>> Alsa-devel mailing list
>> Alsa-devel@alsa-project.org
>> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>>
>
>

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: snd-hdsp driver error?
  2009-11-06 23:12             ` Raymond Yau
       [not found]               ` <933ed0910911061523u2b592454ladd8b8cb7d8e2284@mail.gmail.com>
@ 2009-11-08 10:34               ` Takashi Iwai
  2009-11-08 18:30                 ` Lars Zobbe
  1 sibling, 1 reply; 12+ messages in thread
From: Takashi Iwai @ 2009-11-08 10:34 UTC (permalink / raw)
  To: Raymond Yau; +Cc: alsa-devel, Lars Zobbe

At Sat, 7 Nov 2009 07:12:21 +0800,
Raymond Yau wrote:
> 
> AFAIK , alsa-lib use the driver name to find the name of corresponding
> conf file from /usr/share/alsa/cards/aliases.conf
> In your case , H-DSP.conf does not exist and there is no aliases in
> /usr/share/alsa/cards/aliases.conf
> 
> You have to ask Takashi or Jaroslav to fix this issue for your card
> 
> open("/usr/share/alsa/cards/aliases.conf", O_RDONLY) = 3
> 
> 
> access("/usr/share/alsa/cards/H-DSP.conf", R_OK) = -1 ENOENT (No such
> file or directory)
> open("/dev/snd/controlC1", O_RDONLY)    = 3
> close(3)                                = 0
> 
> 
> write(2, "ALSA lib confmisc.c:1286:(snd_fu"..., 42ALSA lib
> confmisc.c:1286:(snd_func_refer) ) = 42
> write(2, "Unable to find definition 'cards"..., 58Unable to find
> definition 'cards.H-DSP.pcm.front.0:CARD=0') = 58
> write(2, "\n", 1

Finally I can catch up pending posts...

For hdsp, there is no clear definition for "front" or any surround
outputs due to the nature of the hardware.  So, getting an error isn't
a bug in this case.

PA should fall back into "hw" if all such pre-defined PCMs are not
available.  So, this is no critical situation for PA.
The problem is somewhere else.


Takashi

> 
> 2009/11/7 Lars Zobbe <fedesensfar@gmail.com>
> 
> > It is a clean install.
> > lars@lars-desktop:~$ lsb_release -a && uname -a
> > No LSB modules are available.
> > Distributor ID:    Ubuntu
> > Description:    Ubuntu 9.10
> > Release:    9.10
> > Codename:    karmic
> > Linux lars-desktop 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:05:01 UTC
> > 2009 x86_64 GNU/Linux
> >
> > It didn't work with pulseaudio in any previos version (of ubuntu or any
> > other distro I've tried) either.
> > And the standard answer from people "out there" is "forget about pulse it
> > doesn't work with the HDSP" f.x. this guy
> > http://ubuntuforums.org/showpost.php?p=7578331&postcount=10
> > And that's why I contacted pulseaudio developers first when I found out the
> > it was because snd_hdsp didn't load with the preferred udev but only with
> > module-detect (se my first post). They said that I should inform Alsa
> > developers as there seems to be a problem with the alsa driver.
> >
> > I've attached the strace output.
> >
> > Thanks.
> > Lars.
> >
> >
> >
> >
> > On Fri, Nov 6, 2009 at 2:53 AM, Raymond Yau <superquad.vortex2@gmail.com>wrote:
> >
> >> Is it a clean install of Ubuntu 9.10 or upgrade from previous Ubuntu ?
> >>
> >> you may need to find out why aplay -v -Dfront 32bit.wav fail ?
> >>
> >> strace aplay -v -Dfront 32bit.wav
> >>
> >>
> >>
> >>
> >>
> >> !!Linux Distribution
> >>
> >> !!------------------
> >>
> >> Ubuntu 9.10 \n \l DISTRIB_ID=Ubuntu DISTRIB_DESCRIPTION="Ubuntu 9.10"
> >>
> >> !!Sound Servers on this system
> >> !!----------------------------
> >>
> >> Pulseaudio:
> >>       Installed - Yes (/usr/bin/pulseaudio)
> >>
> >>
> >>       Running - Yes
> >>
> >> ESound Daemon:
> >>       Installed - Yes (/usr/bin/esd)
> >>       Running - No
> >>
> >> Jack:
> >>       Installed - Yes (/usr/bin/jackd)
> >>       Running - No
> >>
> >>
> >> !!ALSA configuration files
> >>
> >>
> >> !!------------------------
> >>
> >> !!User specific config file (~/.asoundrc)
> >>
> >> pcm.!default {
> >>     type plug
> >>     slave { pcm "jack" }
> >> }
> >>
> >> pcm.jack {
> >>     type jack
> >>     playback_ports {
> >>
> >>         0 alsa_pcm:playback_1
> >>
> >>         1 alsa_pcm:playback_2
> >>     }
> >>     capture_ports {
> >>         0 alsa_pcm:capture_1
> >>         1 alsa_pcm:capture_2
> >>     }
> >> }
> >>
> >> ctl.mixer0 {
> >>     type hw
> >>     card 0
> >> }
> >>
> >>
> >> lars@lars-desktop:~$ aplay -v -Dfront:0 32bit.wav
> >> ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition
> >> 'cards.H-DSP.pcm.front.0:CARD=0'
> >> ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_refer
> >> returned error: No such file or directory
> >> ALSA lib conf.c:3985:(snd_config_expand) Evaluate error: No such file or
> >> directory
> >> ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM front:0
> >> aplay: main:608: audio open error: No such file or directory
> >>
> >>
> >> Did PA developer tell you not to load oss module ?
> >>
> >>
> >>
> >> D: alsa-util.c: Checking for subset analog-mono (hw:%f)
> >> D: alsa-util.c: Trying hw:0 with SND_PCM_NO_AUTO_FORMAT ...
> >> D: alsa-util.c: Managed to open hw:0
> >> D: alsa-util.c: snd_pcm_hw_params_set_access() failed: Invalid argument
> >> D: alsa-util.c: Trying hw:0 without SND_PCM_NO_AUTO_FORMAT ...
> >> D: alsa-util.c: Managed to open hw:0
> >> D: alsa-util.c: snd_pcm_hw_params_set_access() failed: Invalid argument
> >> D: alsa-util.c: Trying plug:hw:0 with SND_PCM_NO_AUTO_FORMAT ...
> >> D: alsa-util.c: Managed to open plug:hw:0
> >> D: alsa-util.c: snd_pcm_hw_params_set_format(Signed 16 bit Little Endian)
> >> failed: Invalid argument
> >> D: alsa-util.c: snd_pcm_hw_params_set_format(Signed 16 bit Big Endian)
> >> failed: Invalid argument
> >> D: alsa-util.c: snd_pcm_hw_params_set_format(Float 32 bit Little Endian)
> >> failed: Invalid argument
> >> D: alsa-util.c: snd_pcm_hw_params_set_format(Float 32 bit Big Endian)
> >> failed: Invalid argument
> >> D: alsa-util.c: snd_pcm_hw_params_set_channels(1) failed: Invalid argument
> >> D: alsa-util.c: Trying plug:hw:0 without SND_PCM_NO_AUTO_FORMAT ...
> >> D: alsa-util.c: Managed to open plug:hw:0
> >> D: alsa-util.c: snd_pcm_hw_params_set_channels(1) failed: Invalid argument
> >> I: alsa-util.c: Failed to set hardware parameters on plug:hw:0: Invalid
> >> argument
> >> D: alsa-util.c: Trying hw:0 as last resort...
> >> D: alsa-util.c: Trying hw:0 with SND_PCM_NO_AUTO_FORMAT ...
> >> D: alsa-util.c: Managed to open hw:0
> >> D: alsa-util.c: snd_pcm_hw_params_set_access() failed: Invalid argument
> >> D: alsa-util.c: Trying hw:0 without SND_PCM_NO_AUTO_FORMAT ...
> >> D: alsa-util.c: Managed to open hw:0
> >> D: alsa-util.c: snd_pcm_hw_params_set_access() failed: Invalid argument
> >> D: alsa-util.c: Trying plug:hw:0 with SND_PCM_NO_AUTO_FORMAT ...
> >> D: alsa-util.c: Managed to open plug:hw:0
> >> D: alsa-util.c: snd_pcm_hw_params_set_format(Signed 16 bit Little Endian)
> >> failed: Invalid argument
> >> D: alsa-util.c: snd_pcm_hw_params_set_format(Signed 16 bit Big Endian)
> >> failed: Invalid argument
> >> D: alsa-util.c: snd_pcm_hw_params_set_format(Float 32 bit Little Endian)
> >> failed: Invalid argument
> >> D: alsa-util.c: snd_pcm_hw_params_set_format(Float 32 bit Big Endian)
> >> failed: Invalid argument
> >> D: alsa-util.c: Maximum hw buffer size is 371 ms
> >> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
> >> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
> >> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
> >> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
> >> D: alsa-util.c: Set neither period nor buffer size.
> >> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
> >> I: alsa-util.c: snd_pcm_hw_params failed: Device or resource busy
> >> D: alsa-util.c: Trying plug:hw:0 without SND_PCM_NO_AUTO_FORMAT ...
> >> D: alsa-util.c: Managed to open plug:hw:0
> >> D: alsa-util.c: Maximum hw buffer size is 371 ms
> >> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
> >> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
> >> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
> >> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
> >> D: alsa-util.c: Set neither period nor buffer size.
> >> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
> >> I: alsa-util.c: snd_pcm_hw_params failed: Device or resource busy
> >> I: alsa-util.c: Failed to set hardware parameters on plug:hw:0: Device or
> >> resource busy
> >> E: module.c: Failed to load  module "module-alsa-source" (argument:
> >> "device_id=0"): initialization failed.
> >> W: module.c: module-oss is deprecated: Please use module-alsa-card instead
> >> of module-oss!
> >> D: oss-util.c: capabilities: MMAP REALTIME TRIGGER
> >> I: module-oss.c: Device opened in O_RDONLY mode.
> >> D: oss-util.c: Asking for 4 fragments of size 512 (requested 880)
> >> E: oss-util.c: SNDCTL_DSP_SETFMT: Device or resource busy
> >> E: module.c: Failed to load  module "module-oss" (argument:
> >> "device=/dev/dsp"): initialization failed.
> >> W: module-detect.c: failed to detect any sound hardware.
> >>
> >>
> >> 2009/11/6 Lars Zobbe <fedesensfar@gmail.com>
> >>
> >> Sorry. I didn't realise that it was a bash script. Here is the link to my
> >>> alsa-info
> >>>
> >>> http://www.alsa-project.org/db/?f=d3728557be71067e2ed0920747118ae7efff2829
> >>>
> >>> Thanks again.
> >>> Lars.
> >>>
> >>>
> >>> On Thu, Nov 5, 2009 at 5:29 AM, Raymond Yau <superquad.vortex2@gmail.com
> >>> > wrote:
> >>>
> >>>> Please provide the full pulseaudio log and output of alsa-info.sh
> >>>>
> >>>> http://www.pulseaudio.org/wiki/Troubleshooting
> >>>>
> >>>> pulseaudio -k; pulseaudio -vvv
> >>>>
> >>>> and
> >>>>
> >>>> aplay -v -Dfront:0 32bit.wav
> >>>>
> >>>> aplay -v -M -Dfront:0 32bit.wav
> >>>>
> >>>> aplay -v -Dplughw:0 any.wav
> >>>>
> >>>> aplay -v -M -Dplughw:0 any.wav
> >>>>
> >>>>
> >>>> 2009/11/4 Lars Zobbe <fedesensfar@gmail.com>
> >>>>
> >>>> > Hi Raymond.
> >>>> >
> >>>> > I so sorry Raymond. But I'm not sure what to do with this info. Is
> >>>> there
> >>>> > something more I have to tell you? Is there anything I can do to make
> >>>> > pulseaudio able to detect via udev? Can I copy-paste that bit of code
> >>>> you
> >>>> > sent me somewhere?
> >>>> > Please tell me if there's more you need to know.
> >>>> > Greetings.
> >>>> > Lars.
> >>>> >
> >>>> >
> >>>> >
> >>>> >
> >>>> > On Tue, Nov 3, 2009 at 7:48 AM, Raymond Yau <
> >>>> superquad.vortex2@gmail.com>wrote:
> >>>> >
> >>>> >> I guess route plugin used by RME96*.conf does not support mmap when
> >>>> there
> >>>> >> is
> >>>> >> channel conversion since minimum channels supported by hdsp is 14
> >>>> >>
> >>>> >>
> >>>> >> static struct snd_pcm_hardware snd_hdsp_playback_subinfo =
> >>>> >> {
> >>>> >>    .info = (SNDRV_PCM_INFO_MMAP |
> >>>> >>                 SNDRV_PCM_INFO_MMAP_VALID |
> >>>> >>                 SNDRV_PCM_INFO_NONINTERLEAVED |
> >>>> >>                 SNDRV_PCM_INFO_SYNC_START |
> >>>> >>                 SNDRV_PCM_INFO_DOUBLE),
> >>>> >> #ifdef SNDRV_BIG_ENDIAN
> >>>> >>    .formats = SNDRV_PCM_FMTBIT_S32_BE,
> >>>> >> #else
> >>>> >>    .formats = SNDRV_PCM_FMTBIT_S32_LE,
> >>>> >> #endif
> >>>> >>    .rates = (SNDRV_PCM_RATE_32000 |
> >>>> >>                 SNDRV_PCM_RATE_44100 |
> >>>> >>                 SNDRV_PCM_RATE_48000 |
> >>>> >>                 SNDRV_PCM_RATE_64000 |
> >>>> >>                 SNDRV_PCM_RATE_88200 |
> >>>> >>                 SNDRV_PCM_RATE_96000),
> >>>> >>    .rate_min = 32000,
> >>>> >>    .rate_max = 96000,
> >>>> >>    .channels_min = 14,
> >>>> >>    .channels_max = HDSP_MAX_CHANNELS,
> >>>> >>    .buffer_bytes_max = HDSP_CHANNEL_BUFFER_BYTES * HDSP_MAX_CHANNELS,
> >>>> >>    .period_bytes_min = (64 * 4) * 10,
> >>>> >>    .period_bytes_max = (8192 * 4) * HDSP_MAX_CHANNELS,
> >>>> >>    .periods_min = 2,
> >>>> >>    .periods_max = 2,
> >>>> >>    .fifo_size = 0
> >>>> >> };
> >>>> >>
> >>>> >> 2009/11/2 Lars Zobbe <fedesensfar@gmail.com>
> >>>> >>
> >>>> >> > Hi.
> >>>> >> >
> >>>> >> > Talking to one of the pulseaudio developers (*Colin Guthrie*) about
> >>>> a
> >>>> >> > problem with pulseaudio loading modules and my sound card (RME HDSP
> >>>> >> 9632),
> >>>> >> > I
> >>>> >> > was adviced to inform you about the problem.
> >>>> >> >
> >>>> >> > I'm on ubuntu 9.10, 64bit, kernel 2.6.31 with an amd64 x2 3800+
> >>>> >> processor.
> >>>> >> >
> >>>> >> >
> >>>> >> > Symptoms are:
> >>>> >> > Can only make pulseaudio load modules with the deprecated
> >>>> load-module
> >>>> >> > module-detect command, module-udev-detect doesn't detect anything
> >>>> (no
> >>>> >> sound
> >>>> >> > - only null sink output in padevchooser).
> >>>> >> > I get terrible stuttering.
> >>>> >> > I can remove pulseaudio and make things work, more or less.
> >>>> However,
> >>>> >> that
> >>>> >> > leaves me without software mixing and apps fighting for the rights
> >>>> to
> >>>> >> make
> >>>> >> > sound. And more inconveniences (fx. no volume-control).
> >>>> >> > I can play sound from audacity without stuttering by choosing the
> >>>> >> cardname
> >>>> >> > directly in output HDSP, not ALSA, not pulseaudio.
> >>>> >> >
> >>>> >> >
> >>>> >> > When trying to run alsa-info.sh I get a lot of "not found" errors.
> >>>> So
> >>>> >> > you'll
> >>>> >> > get some manual info (they might have moved som files around in
> >>>> ubuntu
> >>>> >> > 9.10).
> >>>> >> >
> >>>> >> > This is part of my syslog during a boot. (I did the formatting to
> >>>> bold).
> >>>> >> >
> >>>> >> > Nov  2 10:57:32 lars-desktop pulseaudio[1524]: module.c:
> >>>> module-detect
> >>>> >> is
> >>>> >> > deprecated: Please use module-udev-detect instead of module-detect!
> >>>> >> > Nov  2 10:57:37 lars-desktop pulseaudio[1524]: ratelimit.c: 27
> >>>> events
> >>>> >> > suppressed
> >>>> >> > Nov  2 10:57:39 lars-desktop pulseaudio[1612]: module.c:
> >>>> module-detect
> >>>> >> is
> >>>> >> > deprecated: Please use module-udev-detect instead of module-detect!
> >>>> >> > Nov  2 10:57:44 lars-desktop pulseaudio[1612]: ratelimit.c: 23
> >>>> events
> >>>> >> > suppressed
> >>>> >> > Nov  2 10:57:44 lars-desktop pulseaudio[1612]: alsa-sink.c: ALSA
> >>>> woke us
> >>>> >> up
> >>>> >> > to write new data to the device, but there was actually nothing to
> >>>> >> write!
> >>>> >> > Nov  2 10:57:44 lars-desktop pulseaudio[1612]: alsa-sink.c: *Most
> >>>> likely
> >>>> >> > this is a bug in the ALSA driver 'snd_hdsp'. Please report this
> >>>> issue to
> >>>> >> > the
> >>>> >> > ALSA developers.*
> >>>> >> > Nov  2 10:57:44 lars-desktop pulseaudio[1612]: alsa-sink.c: We were
> >>>> >> woken
> >>>> >> > up
> >>>> >> > with POLLOUT set -- however a subsequent snd_pcm_avail() returned 0
> >>>> or
> >>>> >> > another value < min_avail.
> >>>> >> > Nov  2 10:57:49 lars-desktop pulseaudio[1612]: ratelimit.c: 99
> >>>> events
> >>>> >> > suppressed
> >>>> >> >
> >>>> >> > Later if I try to play audio I get terrible skipping or stuttering
> >>>> and
> >>>> >> my
> >>>> >> > syslog (in less than a minute) writes:
> >>>> >> > Nov  2 11:55:16 lars-desktop pulseaudio[1612]: ratelimit.c: 16
> >>>> events
> >>>> >> > suppressed
> >>>> >> > Nov  2 11:55:21 lars-desktop pulseaudio[1612]: ratelimit.c: 34
> >>>> events
> >>>> >> > suppressed
> >>>> >> > Nov  2 11:55:26 lars-desktop pulseaudio[1612]: ratelimit.c: 70
> >>>> events
> >>>> >> > suppressed
> >>>> >> > Nov  2 11:55:31 lars-desktop pulseaudio[1612]: ratelimit.c: 29
> >>>> events
> >>>> >> > suppressed
> >>>> >> > Nov  2 11:55:36 lars-desktop pulseaudio[1612]: ratelimit.c: 43
> >>>> events
> >>>> >> > suppressed
> >>>> >> > Nov  2 11:55:41 lars-desktop pulseaudio[1612]: ratelimit.c: 161
> >>>> events
> >>>> >> > suppressed
> >>>> >> > Nov  2 11:55:46 lars-desktop pulseaudio[1612]: ratelimit.c: 28
> >>>> events
> >>>> >> > suppressed
> >>>> >> > Nov  2 11:55:51 lars-desktop pulseaudio[1612]: ratelimit.c: 18
> >>>> events
> >>>> >> > suppressed
> >>>> >> > Nov  2 11:55:56 lars-desktop pulseaudio[1612]: ratelimit.c: 16
> >>>> events
> >>>> >> > suppressed
> >>>> >> >
> >>>> >> > Here's the relevant part (concerning my sound card) of lspci -vvv
> >>>> >> >
> >>>> >> > 02:09.0 Multimedia audio controller: Xilinx Corporation RME
> >>>> Hammerfall
> >>>> >> DSP
> >>>> >> > (rev 9a)
> >>>> >> >    Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
> >>>> ParErr-
> >>>> >> > Stepping- SERR- FastB2B- DisINTx-
> >>>> >> >    Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
> >>>> >> > <TAbort- <MAbort- >SERR- <PERR- INTx-
> >>>> >> >    Latency: 255
> >>>> >> >    Interrupt: pin A routed to IRQ 19
> >>>> >> >    Region 0: Memory at fdff0000 (32-bit, non-prefetchable)
> >>>> [size=64K]
> >>>> >> >    Kernel driver in use: RME Hammerfall DSP
> >>>> >> >    Kernel modules: snd-hdsp
> >>>> >> >
> >>>> >> > And:
> >>>> >> > lars@lars-desktop:~$ aplay -l
> >>>> >> > **** List of PLAYBACK Hardware Devices ****
> >>>> >> > card 0: DSP [Hammerfall DSP], device 0: RME Hammerfall HDSP 9632
> >>>> [RME
> >>>> >> > Hammerfall HDSP 9632]
> >>>> >> >  Subdevices: 1/1
> >>>> >> >  Subdevice #0: subdevice #0
> >>>> >> >
> >>>> >> >
> >>>> >> > lars@lars-desktop:~$ cat /proc/asound/version
> >>>> >> > Advanced Linux Sound Architecture Driver Version 1.0.21.
> >>>> >> > Compiled on Oct 15 2009 for kernel 2.6.31-14-generic (SMP).
> >>>> >> >
> >>>> >> > lars@lars-desktop:~$ cat /proc/asound/cards
> >>>> >> >  0 [DSP            ]: H-DSP - Hammerfall DSP
> >>>> >> >                      RME Hammerfall HDSP 9632 at 0xfdff0000, irq 19
> >>>> >> >
> >>>> >> >
> >>>> >> > lars@lars-desktop:~$ cat /proc/asound/modules
> >>>> >> >  0 snd_hdsp
> >>>> >> >
> >>>> >> > I don't have .asound.conf files.
> >>>> >> >
> >>>> >> > lars@lars-desktop:~$ hdsploader
> >>>> >> > hdsploader - firmware loader for RME Hammerfall DSP cards
> >>>> >> > Looking for HDSP + Multiface or Digiface cards :
> >>>> >> > Card 0 : RME Hammerfall HDSP 9632 at 0xfdff0000, irq 19
> >>>> >> >
> >>>> >> > And of course. My computer makes no sound if I don't load the
> >>>> hdspmixer
> >>>> >> at
> >>>> >> > startup. I guess that's just normal for this card though.
> >>>> >> >
> >>>> >> > Please let me know, if you need more info. I really hope you can
> >>>> help
> >>>> >> out
> >>>> >> > here. And that this might help you to.
> >>>> >> >
> >>>> >> > Thanks for the great work you do. Greetings.
> >>>> >> > Lars Zobbe.
> >>>> >> > _______________________________________________
> >>>> >> > Alsa-devel mailing list
> >>>> >> > Alsa-devel@alsa-project.org
> >>>> >> > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> >>>> >> >
> >>>> >> _______________________________________________
> >>>> >> Alsa-devel mailing list
> >>>> >> Alsa-devel@alsa-project.org
> >>>> >> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> >>>> >>
> >>>> >
> >>>> >
> >>>> _______________________________________________
> >>>> Alsa-devel mailing list
> >>>> Alsa-devel@alsa-project.org
> >>>> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> >>>>
> >>>
> >>>
> >>
> >
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> 

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: snd-hdsp driver error?
  2009-11-08 10:34               ` Takashi Iwai
@ 2009-11-08 18:30                 ` Lars Zobbe
  2010-01-14 16:02                   ` Raymond Yau
  0 siblings, 1 reply; 12+ messages in thread
From: Lars Zobbe @ 2009-11-08 18:30 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: Raymond Yau, alsa-devel

Thanks a lot Takashi and Raymond.

I guess that means the fix from tom-ipp, that Raymond referred to, won't
work. So what can I do to help you fix this. Do you want me to try and run
something? I would be pleased to help out.
When you say "the problem is somewhere else". Do you have an idea about
where that could be?

Greetings
Lars.


On Sun, Nov 8, 2009 at 11:34 AM, Takashi Iwai <tiwai@suse.de> wrote:

> At Sat, 7 Nov 2009 07:12:21 +0800,
> Raymond Yau wrote:
> >
> > AFAIK , alsa-lib use the driver name to find the name of corresponding
> > conf file from /usr/share/alsa/cards/aliases.conf
> > In your case , H-DSP.conf does not exist and there is no aliases in
> > /usr/share/alsa/cards/aliases.conf
> >
> > You have to ask Takashi or Jaroslav to fix this issue for your card
> >
> > open("/usr/share/alsa/cards/aliases.conf", O_RDONLY) = 3
> >
> >
> > access("/usr/share/alsa/cards/H-DSP.conf", R_OK) = -1 ENOENT (No such
> > file or directory)
> > open("/dev/snd/controlC1", O_RDONLY)    = 3
> > close(3)                                = 0
> >
> >
> > write(2, "ALSA lib confmisc.c:1286:(snd_fu"..., 42ALSA lib
> > confmisc.c:1286:(snd_func_refer) ) = 42
> > write(2, "Unable to find definition 'cards"..., 58Unable to find
> > definition 'cards.H-DSP.pcm.front.0:CARD=0') = 58
> > write(2, "\n", 1
>
> Finally I can catch up pending posts...
>
> For hdsp, there is no clear definition for "front" or any surround
> outputs due to the nature of the hardware.  So, getting an error isn't
> a bug in this case.
>
> PA should fall back into "hw" if all such pre-defined PCMs are not
> available.  So, this is no critical situation for PA.
> The problem is somewhere else.
>
>
> Takashi
>
> >
> > 2009/11/7 Lars Zobbe <fedesensfar@gmail.com>
> >
> > > It is a clean install.
> > > lars@lars-desktop:~$ lsb_release -a && uname -a
> > > No LSB modules are available.
> > > Distributor ID:    Ubuntu
> > > Description:    Ubuntu 9.10
> > > Release:    9.10
> > > Codename:    karmic
> > > Linux lars-desktop 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:05:01
> UTC
> > > 2009 x86_64 GNU/Linux
> > >
> > > It didn't work with pulseaudio in any previos version (of ubuntu or any
> > > other distro I've tried) either.
> > > And the standard answer from people "out there" is "forget about pulse
> it
> > > doesn't work with the HDSP" f.x. this guy
> > > http://ubuntuforums.org/showpost.php?p=7578331&postcount=10
> > > And that's why I contacted pulseaudio developers first when I found out
> the
> > > it was because snd_hdsp didn't load with the preferred udev but only
> with
> > > module-detect (se my first post). They said that I should inform Alsa
> > > developers as there seems to be a problem with the alsa driver.
> > >
> > > I've attached the strace output.
> > >
> > > Thanks.
> > > Lars.
> > >
> > >
> > >
> > >
> > > On Fri, Nov 6, 2009 at 2:53 AM, Raymond Yau <
> superquad.vortex2@gmail.com>wrote:
> > >
> > >> Is it a clean install of Ubuntu 9.10 or upgrade from previous Ubuntu ?
> > >>
> > >> you may need to find out why aplay -v -Dfront 32bit.wav fail ?
> > >>
> > >> strace aplay -v -Dfront 32bit.wav
> > >>
> > >>
> > >>
> > >>
> > >>
> > >> !!Linux Distribution
> > >>
> > >> !!------------------
> > >>
> > >> Ubuntu 9.10 \n \l DISTRIB_ID=Ubuntu DISTRIB_DESCRIPTION="Ubuntu 9.10"
> > >>
> > >> !!Sound Servers on this system
> > >> !!----------------------------
> > >>
> > >> Pulseaudio:
> > >>       Installed - Yes (/usr/bin/pulseaudio)
> > >>
> > >>
> > >>       Running - Yes
> > >>
> > >> ESound Daemon:
> > >>       Installed - Yes (/usr/bin/esd)
> > >>       Running - No
> > >>
> > >> Jack:
> > >>       Installed - Yes (/usr/bin/jackd)
> > >>       Running - No
> > >>
> > >>
> > >> !!ALSA configuration files
> > >>
> > >>
> > >> !!------------------------
> > >>
> > >> !!User specific config file (~/.asoundrc)
> > >>
> > >> pcm.!default {
> > >>     type plug
> > >>     slave { pcm "jack" }
> > >> }
> > >>
> > >> pcm.jack {
> > >>     type jack
> > >>     playback_ports {
> > >>
> > >>         0 alsa_pcm:playback_1
> > >>
> > >>         1 alsa_pcm:playback_2
> > >>     }
> > >>     capture_ports {
> > >>         0 alsa_pcm:capture_1
> > >>         1 alsa_pcm:capture_2
> > >>     }
> > >> }
> > >>
> > >> ctl.mixer0 {
> > >>     type hw
> > >>     card 0
> > >> }
> > >>
> > >>
> > >> lars@lars-desktop:~$ aplay -v -Dfront:0 32bit.wav
> > >> ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition
> > >> 'cards.H-DSP.pcm.front.0:CARD=0'
> > >> ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_refer
> > >> returned error: No such file or directory
> > >> ALSA lib conf.c:3985:(snd_config_expand) Evaluate error: No such file
> or
> > >> directory
> > >> ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM front:0
> > >> aplay: main:608: audio open error: No such file or directory
> > >>
> > >>
> > >> Did PA developer tell you not to load oss module ?
> > >>
> > >>
> > >>
> > >> D: alsa-util.c: Checking for subset analog-mono (hw:%f)
> > >> D: alsa-util.c: Trying hw:0 with SND_PCM_NO_AUTO_FORMAT ...
> > >> D: alsa-util.c: Managed to open hw:0
> > >> D: alsa-util.c: snd_pcm_hw_params_set_access() failed: Invalid
> argument
> > >> D: alsa-util.c: Trying hw:0 without SND_PCM_NO_AUTO_FORMAT ...
> > >> D: alsa-util.c: Managed to open hw:0
> > >> D: alsa-util.c: snd_pcm_hw_params_set_access() failed: Invalid
> argument
> > >> D: alsa-util.c: Trying plug:hw:0 with SND_PCM_NO_AUTO_FORMAT ...
> > >> D: alsa-util.c: Managed to open plug:hw:0
> > >> D: alsa-util.c: snd_pcm_hw_params_set_format(Signed 16 bit Little
> Endian)
> > >> failed: Invalid argument
> > >> D: alsa-util.c: snd_pcm_hw_params_set_format(Signed 16 bit Big Endian)
> > >> failed: Invalid argument
> > >> D: alsa-util.c: snd_pcm_hw_params_set_format(Float 32 bit Little
> Endian)
> > >> failed: Invalid argument
> > >> D: alsa-util.c: snd_pcm_hw_params_set_format(Float 32 bit Big Endian)
> > >> failed: Invalid argument
> > >> D: alsa-util.c: snd_pcm_hw_params_set_channels(1) failed: Invalid
> argument
> > >> D: alsa-util.c: Trying plug:hw:0 without SND_PCM_NO_AUTO_FORMAT ...
> > >> D: alsa-util.c: Managed to open plug:hw:0
> > >> D: alsa-util.c: snd_pcm_hw_params_set_channels(1) failed: Invalid
> argument
> > >> I: alsa-util.c: Failed to set hardware parameters on plug:hw:0:
> Invalid
> > >> argument
> > >> D: alsa-util.c: Trying hw:0 as last resort...
> > >> D: alsa-util.c: Trying hw:0 with SND_PCM_NO_AUTO_FORMAT ...
> > >> D: alsa-util.c: Managed to open hw:0
> > >> D: alsa-util.c: snd_pcm_hw_params_set_access() failed: Invalid
> argument
> > >> D: alsa-util.c: Trying hw:0 without SND_PCM_NO_AUTO_FORMAT ...
> > >> D: alsa-util.c: Managed to open hw:0
> > >> D: alsa-util.c: snd_pcm_hw_params_set_access() failed: Invalid
> argument
> > >> D: alsa-util.c: Trying plug:hw:0 with SND_PCM_NO_AUTO_FORMAT ...
> > >> D: alsa-util.c: Managed to open plug:hw:0
> > >> D: alsa-util.c: snd_pcm_hw_params_set_format(Signed 16 bit Little
> Endian)
> > >> failed: Invalid argument
> > >> D: alsa-util.c: snd_pcm_hw_params_set_format(Signed 16 bit Big Endian)
> > >> failed: Invalid argument
> > >> D: alsa-util.c: snd_pcm_hw_params_set_format(Float 32 bit Little
> Endian)
> > >> failed: Invalid argument
> > >> D: alsa-util.c: snd_pcm_hw_params_set_format(Float 32 bit Big Endian)
> > >> failed: Invalid argument
> > >> D: alsa-util.c: Maximum hw buffer size is 371 ms
> > >> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
> > >> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
> > >> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
> > >> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
> > >> D: alsa-util.c: Set neither period nor buffer size.
> > >> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
> > >> I: alsa-util.c: snd_pcm_hw_params failed: Device or resource busy
> > >> D: alsa-util.c: Trying plug:hw:0 without SND_PCM_NO_AUTO_FORMAT ...
> > >> D: alsa-util.c: Managed to open plug:hw:0
> > >> D: alsa-util.c: Maximum hw buffer size is 371 ms
> > >> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
> > >> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
> > >> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
> > >> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
> > >> D: alsa-util.c: Set neither period nor buffer size.
> > >> I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
> > >> I: alsa-util.c: snd_pcm_hw_params failed: Device or resource busy
> > >> I: alsa-util.c: Failed to set hardware parameters on plug:hw:0: Device
> or
> > >> resource busy
> > >> E: module.c: Failed to load  module "module-alsa-source" (argument:
> > >> "device_id=0"): initialization failed.
> > >> W: module.c: module-oss is deprecated: Please use module-alsa-card
> instead
> > >> of module-oss!
> > >> D: oss-util.c: capabilities: MMAP REALTIME TRIGGER
> > >> I: module-oss.c: Device opened in O_RDONLY mode.
> > >> D: oss-util.c: Asking for 4 fragments of size 512 (requested 880)
> > >> E: oss-util.c: SNDCTL_DSP_SETFMT: Device or resource busy
> > >> E: module.c: Failed to load  module "module-oss" (argument:
> > >> "device=/dev/dsp"): initialization failed.
> > >> W: module-detect.c: failed to detect any sound hardware.
> > >>
> > >>
> > >> 2009/11/6 Lars Zobbe <fedesensfar@gmail.com>
> > >>
> > >> Sorry. I didn't realise that it was a bash script. Here is the link to
> my
> > >>> alsa-info
> > >>>
> > >>>
> http://www.alsa-project.org/db/?f=d3728557be71067e2ed0920747118ae7efff2829
> > >>>
> > >>> Thanks again.
> > >>> Lars.
> > >>>
> > >>>
> > >>> On Thu, Nov 5, 2009 at 5:29 AM, Raymond Yau <
> superquad.vortex2@gmail.com
> > >>> > wrote:
> > >>>
> > >>>> Please provide the full pulseaudio log and output of alsa-info.sh
> > >>>>
> > >>>> http://www.pulseaudio.org/wiki/Troubleshooting
> > >>>>
> > >>>> pulseaudio -k; pulseaudio -vvv
> > >>>>
> > >>>> and
> > >>>>
> > >>>> aplay -v -Dfront:0 32bit.wav
> > >>>>
> > >>>> aplay -v -M -Dfront:0 32bit.wav
> > >>>>
> > >>>> aplay -v -Dplughw:0 any.wav
> > >>>>
> > >>>> aplay -v -M -Dplughw:0 any.wav
> > >>>>
> > >>>>
> > >>>> 2009/11/4 Lars Zobbe <fedesensfar@gmail.com>
> > >>>>
> > >>>> > Hi Raymond.
> > >>>> >
> > >>>> > I so sorry Raymond. But I'm not sure what to do with this info. Is
> > >>>> there
> > >>>> > something more I have to tell you? Is there anything I can do to
> make
> > >>>> > pulseaudio able to detect via udev? Can I copy-paste that bit of
> code
> > >>>> you
> > >>>> > sent me somewhere?
> > >>>> > Please tell me if there's more you need to know.
> > >>>> > Greetings.
> > >>>> > Lars.
> > >>>> >
> > >>>> >
> > >>>> >
> > >>>> >
> > >>>> > On Tue, Nov 3, 2009 at 7:48 AM, Raymond Yau <
> > >>>> superquad.vortex2@gmail.com>wrote:
> > >>>> >
> > >>>> >> I guess route plugin used by RME96*.conf does not support mmap
> when
> > >>>> there
> > >>>> >> is
> > >>>> >> channel conversion since minimum channels supported by hdsp is 14
> > >>>> >>
> > >>>> >>
> > >>>> >> static struct snd_pcm_hardware snd_hdsp_playback_subinfo =
> > >>>> >> {
> > >>>> >>    .info = (SNDRV_PCM_INFO_MMAP |
> > >>>> >>                 SNDRV_PCM_INFO_MMAP_VALID |
> > >>>> >>                 SNDRV_PCM_INFO_NONINTERLEAVED |
> > >>>> >>                 SNDRV_PCM_INFO_SYNC_START |
> > >>>> >>                 SNDRV_PCM_INFO_DOUBLE),
> > >>>> >> #ifdef SNDRV_BIG_ENDIAN
> > >>>> >>    .formats = SNDRV_PCM_FMTBIT_S32_BE,
> > >>>> >> #else
> > >>>> >>    .formats = SNDRV_PCM_FMTBIT_S32_LE,
> > >>>> >> #endif
> > >>>> >>    .rates = (SNDRV_PCM_RATE_32000 |
> > >>>> >>                 SNDRV_PCM_RATE_44100 |
> > >>>> >>                 SNDRV_PCM_RATE_48000 |
> > >>>> >>                 SNDRV_PCM_RATE_64000 |
> > >>>> >>                 SNDRV_PCM_RATE_88200 |
> > >>>> >>                 SNDRV_PCM_RATE_96000),
> > >>>> >>    .rate_min = 32000,
> > >>>> >>    .rate_max = 96000,
> > >>>> >>    .channels_min = 14,
> > >>>> >>    .channels_max = HDSP_MAX_CHANNELS,
> > >>>> >>    .buffer_bytes_max = HDSP_CHANNEL_BUFFER_BYTES *
> HDSP_MAX_CHANNELS,
> > >>>> >>    .period_bytes_min = (64 * 4) * 10,
> > >>>> >>    .period_bytes_max = (8192 * 4) * HDSP_MAX_CHANNELS,
> > >>>> >>    .periods_min = 2,
> > >>>> >>    .periods_max = 2,
> > >>>> >>    .fifo_size = 0
> > >>>> >> };
> > >>>> >>
> > >>>> >> 2009/11/2 Lars Zobbe <fedesensfar@gmail.com>
> > >>>> >>
> > >>>> >> > Hi.
> > >>>> >> >
> > >>>> >> > Talking to one of the pulseaudio developers (*Colin Guthrie*)
> about
> > >>>> a
> > >>>> >> > problem with pulseaudio loading modules and my sound card (RME
> HDSP
> > >>>> >> 9632),
> > >>>> >> > I
> > >>>> >> > was adviced to inform you about the problem.
> > >>>> >> >
> > >>>> >> > I'm on ubuntu 9.10, 64bit, kernel 2.6.31 with an amd64 x2 3800+
> > >>>> >> processor.
> > >>>> >> >
> > >>>> >> >
> > >>>> >> > Symptoms are:
> > >>>> >> > Can only make pulseaudio load modules with the deprecated
> > >>>> load-module
> > >>>> >> > module-detect command, module-udev-detect doesn't detect
> anything
> > >>>> (no
> > >>>> >> sound
> > >>>> >> > - only null sink output in padevchooser).
> > >>>> >> > I get terrible stuttering.
> > >>>> >> > I can remove pulseaudio and make things work, more or less.
> > >>>> However,
> > >>>> >> that
> > >>>> >> > leaves me without software mixing and apps fighting for the
> rights
> > >>>> to
> > >>>> >> make
> > >>>> >> > sound. And more inconveniences (fx. no volume-control).
> > >>>> >> > I can play sound from audacity without stuttering by choosing
> the
> > >>>> >> cardname
> > >>>> >> > directly in output HDSP, not ALSA, not pulseaudio.
> > >>>> >> >
> > >>>> >> >
> > >>>> >> > When trying to run alsa-info.sh I get a lot of "not found"
> errors.
> > >>>> So
> > >>>> >> > you'll
> > >>>> >> > get some manual info (they might have moved som files around in
> > >>>> ubuntu
> > >>>> >> > 9.10).
> > >>>> >> >
> > >>>> >> > This is part of my syslog during a boot. (I did the formatting
> to
> > >>>> bold).
> > >>>> >> >
> > >>>> >> > Nov  2 10:57:32 lars-desktop pulseaudio[1524]: module.c:
> > >>>> module-detect
> > >>>> >> is
> > >>>> >> > deprecated: Please use module-udev-detect instead of
> module-detect!
> > >>>> >> > Nov  2 10:57:37 lars-desktop pulseaudio[1524]: ratelimit.c: 27
> > >>>> events
> > >>>> >> > suppressed
> > >>>> >> > Nov  2 10:57:39 lars-desktop pulseaudio[1612]: module.c:
> > >>>> module-detect
> > >>>> >> is
> > >>>> >> > deprecated: Please use module-udev-detect instead of
> module-detect!
> > >>>> >> > Nov  2 10:57:44 lars-desktop pulseaudio[1612]: ratelimit.c: 23
> > >>>> events
> > >>>> >> > suppressed
> > >>>> >> > Nov  2 10:57:44 lars-desktop pulseaudio[1612]: alsa-sink.c:
> ALSA
> > >>>> woke us
> > >>>> >> up
> > >>>> >> > to write new data to the device, but there was actually nothing
> to
> > >>>> >> write!
> > >>>> >> > Nov  2 10:57:44 lars-desktop pulseaudio[1612]: alsa-sink.c:
> *Most
> > >>>> likely
> > >>>> >> > this is a bug in the ALSA driver 'snd_hdsp'. Please report this
> > >>>> issue to
> > >>>> >> > the
> > >>>> >> > ALSA developers.*
> > >>>> >> > Nov  2 10:57:44 lars-desktop pulseaudio[1612]: alsa-sink.c: We
> were
> > >>>> >> woken
> > >>>> >> > up
> > >>>> >> > with POLLOUT set -- however a subsequent snd_pcm_avail()
> returned 0
> > >>>> or
> > >>>> >> > another value < min_avail.
> > >>>> >> > Nov  2 10:57:49 lars-desktop pulseaudio[1612]: ratelimit.c: 99
> > >>>> events
> > >>>> >> > suppressed
> > >>>> >> >
> > >>>> >> > Later if I try to play audio I get terrible skipping or
> stuttering
> > >>>> and
> > >>>> >> my
> > >>>> >> > syslog (in less than a minute) writes:
> > >>>> >> > Nov  2 11:55:16 lars-desktop pulseaudio[1612]: ratelimit.c: 16
> > >>>> events
> > >>>> >> > suppressed
> > >>>> >> > Nov  2 11:55:21 lars-desktop pulseaudio[1612]: ratelimit.c: 34
> > >>>> events
> > >>>> >> > suppressed
> > >>>> >> > Nov  2 11:55:26 lars-desktop pulseaudio[1612]: ratelimit.c: 70
> > >>>> events
> > >>>> >> > suppressed
> > >>>> >> > Nov  2 11:55:31 lars-desktop pulseaudio[1612]: ratelimit.c: 29
> > >>>> events
> > >>>> >> > suppressed
> > >>>> >> > Nov  2 11:55:36 lars-desktop pulseaudio[1612]: ratelimit.c: 43
> > >>>> events
> > >>>> >> > suppressed
> > >>>> >> > Nov  2 11:55:41 lars-desktop pulseaudio[1612]: ratelimit.c: 161
> > >>>> events
> > >>>> >> > suppressed
> > >>>> >> > Nov  2 11:55:46 lars-desktop pulseaudio[1612]: ratelimit.c: 28
> > >>>> events
> > >>>> >> > suppressed
> > >>>> >> > Nov  2 11:55:51 lars-desktop pulseaudio[1612]: ratelimit.c: 18
> > >>>> events
> > >>>> >> > suppressed
> > >>>> >> > Nov  2 11:55:56 lars-desktop pulseaudio[1612]: ratelimit.c: 16
> > >>>> events
> > >>>> >> > suppressed
> > >>>> >> >
> > >>>> >> > Here's the relevant part (concerning my sound card) of lspci
> -vvv
> > >>>> >> >
> > >>>> >> > 02:09.0 Multimedia audio controller: Xilinx Corporation RME
> > >>>> Hammerfall
> > >>>> >> DSP
> > >>>> >> > (rev 9a)
> > >>>> >> >    Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
> > >>>> ParErr-
> > >>>> >> > Stepping- SERR- FastB2B- DisINTx-
> > >>>> >> >    Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium
> >TAbort-
> > >>>> >> > <TAbort- <MAbort- >SERR- <PERR- INTx-
> > >>>> >> >    Latency: 255
> > >>>> >> >    Interrupt: pin A routed to IRQ 19
> > >>>> >> >    Region 0: Memory at fdff0000 (32-bit, non-prefetchable)
> > >>>> [size=64K]
> > >>>> >> >    Kernel driver in use: RME Hammerfall DSP
> > >>>> >> >    Kernel modules: snd-hdsp
> > >>>> >> >
> > >>>> >> > And:
> > >>>> >> > lars@lars-desktop:~$ aplay -l
> > >>>> >> > **** List of PLAYBACK Hardware Devices ****
> > >>>> >> > card 0: DSP [Hammerfall DSP], device 0: RME Hammerfall HDSP
> 9632
> > >>>> [RME
> > >>>> >> > Hammerfall HDSP 9632]
> > >>>> >> >  Subdevices: 1/1
> > >>>> >> >  Subdevice #0: subdevice #0
> > >>>> >> >
> > >>>> >> >
> > >>>> >> > lars@lars-desktop:~$ cat /proc/asound/version
> > >>>> >> > Advanced Linux Sound Architecture Driver Version 1.0.21.
> > >>>> >> > Compiled on Oct 15 2009 for kernel 2.6.31-14-generic (SMP).
> > >>>> >> >
> > >>>> >> > lars@lars-desktop:~$ cat /proc/asound/cards
> > >>>> >> >  0 [DSP            ]: H-DSP - Hammerfall DSP
> > >>>> >> >                      RME Hammerfall HDSP 9632 at 0xfdff0000,
> irq 19
> > >>>> >> >
> > >>>> >> >
> > >>>> >> > lars@lars-desktop:~$ cat /proc/asound/modules
> > >>>> >> >  0 snd_hdsp
> > >>>> >> >
> > >>>> >> > I don't have .asound.conf files.
> > >>>> >> >
> > >>>> >> > lars@lars-desktop:~$ hdsploader
> > >>>> >> > hdsploader - firmware loader for RME Hammerfall DSP cards
> > >>>> >> > Looking for HDSP + Multiface or Digiface cards :
> > >>>> >> > Card 0 : RME Hammerfall HDSP 9632 at 0xfdff0000, irq 19
> > >>>> >> >
> > >>>> >> > And of course. My computer makes no sound if I don't load the
> > >>>> hdspmixer
> > >>>> >> at
> > >>>> >> > startup. I guess that's just normal for this card though.
> > >>>> >> >
> > >>>> >> > Please let me know, if you need more info. I really hope you
> can
> > >>>> help
> > >>>> >> out
> > >>>> >> > here. And that this might help you to.
> > >>>> >> >
> > >>>> >> > Thanks for the great work you do. Greetings.
> > >>>> >> > Lars Zobbe.
> > >>>> >> > _______________________________________________
> > >>>> >> > Alsa-devel mailing list
> > >>>> >> > Alsa-devel@alsa-project.org
> > >>>> >> > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> > >>>> >> >
> > >>>> >> _______________________________________________
> > >>>> >> Alsa-devel mailing list
> > >>>> >> Alsa-devel@alsa-project.org
> > >>>> >> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> > >>>> >>
> > >>>> >
> > >>>> >
> > >>>> _______________________________________________
> > >>>> Alsa-devel mailing list
> > >>>> Alsa-devel@alsa-project.org
> > >>>> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> > >>>>
> > >>>
> > >>>
> > >>
> > >
> > _______________________________________________
> > Alsa-devel mailing list
> > Alsa-devel@alsa-project.org
> > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> >
>

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: snd-hdsp driver error?
  2009-11-08 18:30                 ` Lars Zobbe
@ 2010-01-14 16:02                   ` Raymond Yau
       [not found]                     ` <933ed0911001160530n79a0bb06m5ffb44c40565d5de@mail.gmail.com>
  0 siblings, 1 reply; 12+ messages in thread
From: Raymond Yau @ 2010-01-14 16:02 UTC (permalink / raw)
  To: alsa-devel

2009/11/9 Lars Zobbe <fedesensfar@gmail.com>

> Thanks a lot Takashi and Raymond.
>
> I guess that means the fix from tom-ipp, that Raymond referred to, won't
> work. So what can I do to help you fix this. Do you want me to try and run
> something? I would be pleased to help out.
> When you say "the problem is somewhere else". Do you have an idea about
> where that could be?
>
> Greetings
> Lars.
>
>
Refer to

http://pulseaudio.org/ticket/764#comment:1


load-module module-alsa-sink device_id=0 tsched=0 load-module
module-alsa-source device_id=0 tsched=0

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: snd-hdsp driver error?
       [not found]                     ` <933ed0911001160530n79a0bb06m5ffb44c40565d5de@mail.gmail.com>
@ 2010-01-19  7:08                       ` Raymond Yau
  0 siblings, 0 replies; 12+ messages in thread
From: Raymond Yau @ 2010-01-19  7:08 UTC (permalink / raw)
  To: alsa-devel

2010/1/16 Lars Zobbe <fedesensfar@gmail.com>

> Thansk a lot Raymond. That actually works! My HDSP now loads without mayor
> problems. This is brilliant. I've been struggling for so long to make this
> work and finally...
> I recommend everyone with a RME HDSP, who wants to use pulseaudio, to check
> out ticket 764.
> Thanks again Raymond.
> Lars.
>
> 2010/1/14 Raymond Yau <superquad.vortex2@gmail.com>
>
>>
>> Refer to
>>
>> http://pulseaudio.org/ticket/764#comment:1
>>
>>
>> load-module module-alsa-sink device_id=0 tsched=0
>>
> load-module module-alsa-source device_id=0 tsched=0
>>
>
if your hdsp works , this mean that this is a bug introduced at pulseaudio
since 0.9.15 ( working profile )

I guess none of PA develpers had your card ,

if you want the pulseaudio bug fixed ,

you will need to post the output of full pulseaudio log of module-alsa-sink
( pulseaudio -k;pulseaudio -vvvvv ) and the outout of aplay -v -Dplughw:0,0
any.wav

in the pulseaudio bug tracker

 so that PA developer can compare with the non-working pulseaudio log

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-01-19  7:08 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-02 12:33 snd-hdsp driver error? Lars Zobbe
2009-11-03  6:48 ` Raymond Yau
     [not found]   ` <933ed0910911031105m608009cbg2ccd1c543887befa@mail.gmail.com>
2009-11-05  4:29     ` Raymond Yau
2009-11-05 23:30       ` Lars Zobbe
2009-11-05 23:35       ` Lars Zobbe
2009-11-06  0:46       ` Lars Zobbe
     [not found]         ` <4f3252890911051753x650bc617te8086af4fc3a745f@mail.gmail.com>
     [not found]           ` <933ed0910911060823x4f512b32h546167eea73050df@mail.gmail.com>
2009-11-06 23:12             ` Raymond Yau
     [not found]               ` <933ed0910911061523u2b592454ladd8b8cb7d8e2284@mail.gmail.com>
2009-11-08  0:42                 ` Raymond Yau
2009-11-08 10:34               ` Takashi Iwai
2009-11-08 18:30                 ` Lars Zobbe
2010-01-14 16:02                   ` Raymond Yau
     [not found]                     ` <933ed0911001160530n79a0bb06m5ffb44c40565d5de@mail.gmail.com>
2010-01-19  7:08                       ` Raymond Yau

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.