Ubuntu

Pulseaudio fails to initialize ICE1712 chipsets

Reported by Florian Zeitz on 2007-12-24
612
This bug affects 91 people
Affects Status Importance Assigned to Milestone
alsa-lib (Ubuntu)
Undecided
Unassigned
Declined for Karmic by Daniel T Chen
Lucid
Undecided
Unassigned
pulseaudio (Ubuntu)
Low
Unassigned
Declined for Karmic by Daniel T Chen
Lucid
Low
Daniel T Chen

Bug Description

Binary package hint: pulseaudio

I have a problem that makes pulseaudio unusable for me.
I noticed the only device listed by pulseaudio is my webcam (as an input device obviously), so I tried starting pulseaudio from the command line to see what was happening.
This resulted in:
"ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.ICE1712.pcm.surround71.0:CARD=0'
ALSA lib conf.c:3510:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:3982:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM surround71:0
W: alsa-util.c: Device hw:0 doesn't support 2 channels, changed to 10.
W: alsa-util.c: Device hw:0 doesn't support sample format s16le, changed to s32le.
W: alsa-util.c: Cannot find fallback mixer control "PCM".
E: module-alsa-sink.c: Failed to create sink object
E: module.c: Failed to load module "module-alsa-sink" (argument: "device_id=0 sink_name=alsa_output.pci_1412_1712_sound_card_0_alsa_playback_0"): initialization failed.ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.ICE1712.pcm.surround71.0:CARD=0'
ALSA lib conf.c:3510:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:3982:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM surround71:0
W: alsa-util.c: Device hw:0 doesn't support 2 channels, changed to 12.
W: alsa-util.c: Device hw:0 doesn't support sample format s16le, changed to s32le.
W: alsa-util.c: Cannot find fallback mixer control "Mic".
E: module-alsa-source.c: Failed to create source object
E: module.c: Failed to load module "module-alsa-source" (argument: "device_id=0 source_name=alsa_input.pci_1412_1712_sound_card_0_alsa_capture_0"): initialization failed."

This is an up to date Hardy installation.
Soundcard is a M-Audio Audiophile 2496.

Related branches

Daniel T Chen (crimsun) wrote :

Do you have an /etc/asound.conf and/or ~/.asoundrc* ? What does `asoundconf list` return? If you kill pulseaudio and use `aplay /usr/share/sounds/*up.wav`, is it audible or do the above errors appear?

Changed in pulseaudio:
status: New → Incomplete
Florian Zeitz (florian-zeitz) wrote :

I have neither /etc/asound.conf nor ~/.asoundrc*

asoundconf list returns:
Names of available sound cards:
M2496
UART
U0x46d0x8ad

Playing waves through aplay works fine.

Daniel T Chen (crimsun) wrote :

(Note to self: cross-reference also alsa-lib definitions.)

Changed in pulseaudio:
importance: Undecided → Low
status: Incomplete → In Progress
Florian Zeitz (florian-zeitz) wrote :

Sorry to be annoying, but I was wondering if this going to be fixed for hardy or will be "In Progress" 'till hardy+1.
Beta is aproaching and this bug that renders pulseaudio (the default) useless for a good hand full of people ist still there.
I'm sure you have more important bugs to fix, but I'd really suck for me if this would not get in hardy (yes I know it's the old "Your own bugs always seem the most important" thing, my bad).

Tom Kiesel (tom-nonotyet) wrote :

This problem also exists on the M-Audio Delta 410 which uses the same driver and is quite similar (from the computer's perspective) to the Audiophile 2496 I believe.

There isn't a control named "Master" or "PCM" on the Delta 410. The relevant channels are "DAC" and "DAC 1" through "DAC 7" for a total of 8. In order to get stereo volume control, I have to tell Ubuntu to control "DAC" and "DAC 1" together, as they are the left and right audio outputs.

I think that this non-standard naming convention is a part of the trouble in the log below

Here are the errors generated, starting just before things begin to go wrong:

I: alsa-util.c: Successfully attached to mixer 'hw:0'
I: alsa-util.c: Cannot find mixer control "Master".
W: alsa-util.c: Cannot find fallback mixer control "PCM".
E: module-alsa-sink.c: Failed to create sink object
E: module.c: Failed to load module "module-alsa-sink" (argument: "device_id=0 sink_name=alsa_output.pci_1412_1712_sound_card_0_alsa_playback_0"): initialization failed.
I: alsa-util.c: PCM device front:0 refused our hw parameters: Invalid argument
I: alsa-util.c: PCM device surround40:0 refused our hw parameters: Invalid argument
I: alsa-util.c: PCM device surround41:0 refused our hw parameters: Invalid argument
I: alsa-util.c: PCM device surround50:0 refused our hw parameters: Invalid argument
I: alsa-util.c: PCM device surround51:0 refused our hw parameters: Invalid argument
ALSA lib conf.c:3952:(snd_config_expand) Unknown parameters 0
ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM surround71:0
I: alsa-util.c: Couldn't open PCM device surround71:0: Invalid argument
W: alsa-util.c: Device hw:0 doesn't support 2 channels, changed to 12.
W: alsa-util.c: Device hw:0 doesn't support sample format s16le, changed to s32le.
I: module-alsa-source.c: Successfully opened device hw:0.
I: module-alsa-source.c: Successfully enabled mmap() mode.
I: alsa-util.c: Successfully attached to mixer 'hw:0'
I: alsa-util.c: Cannot find mixer control "Capture".
W: alsa-util.c: Cannot find fallback mixer control "Mic".
E: module-alsa-source.c: Failed to create source object
E: module.c: Failed to load module "module-alsa-source" (argument: "device_id=0 source_name=alsa_input.pci_1412_1712_sound_card_0_alsa_capture_0"): initialization failed.
I: module-hal-detect.c: Loaded 0 modules.
I: module.c: Loaded "module-hal-detect" (index: #0; argument: "").
I: module.c: Loaded "module-esound-protocol-unix" (index: #1; argument: "").
I: protocol-native.c: loading cookie from disk.
I: module.c: Loaded "module-native-protocol-unix" (index: #2; argument: "").
I: module-volume-restore.c: starting with empty ruleset.
I: module.c: Loaded "module-volume-restore" (index: #3; argument: "").
I: module.c: Loaded "module-default-device-restore" (index: #4; argument: "").
I: module.c: Loaded "module-rescue-streams" (index: #5; argument: "").
I: module.c: Loaded "module-suspend-on-idle" (index: #6; argument: "").
I: module.c: Loaded "module-gconf" (index: #7; argument: "").
I: main.c: Daemon startup complete.

Tom Kiesel (tom-nonotyet) wrote :

Ugly work around for an maudio Delta 44 here:

https://tango.0pointer.de/pipermail/pulseaudio-discuss/2008-January/001240.html

Basically having to manually etch a static config into a config file in /etc

Florian Zeitz (florian-zeitz) wrote :

That workaround works for me too, but I don't really get why it fails in the first place. Everything that is given in the static configuration is already used as a fallback by the auto-detection according to the warnings displayed.
Just to be a bit more sepcific, this two lines in /etc/pulse/default.pa (and commenting auto-detection) work for me:
load-module module-alsa-sink sink_name=M2496_out device=hw:M2496 format=s32le channels=10 channel_map=left,right,aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7
load-module module-alsa-source source_name=M2496_in device=hw:M2496 format=s32le channels=12 channel_map=left,right,aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7,aux8,aux9

For what it's worth mixer channels are still not found with this configuration. I wonder if this makes a difference or if pulseaudio is always doing software mixing. If it makes a difference pulseaudio should really make it possible to specify how the channels are called on your soundcard.

Laurent Moussault (drakmaniso) wrote :

Same problem with a M-Audio Delta 44 (same alsa driver ice1712).

The workaround above works, with "device=hw:M44".

From what I read in the link posted above, the problem seems to be that there is no default channel map (i.e. knowing which channel is left and which is right) for 10 channels cards, and that the driver (or may be the card) refuse to open for just 2 channels.

IMHO the bug importance is more than "low", since the ice1712 based cards are quite common among "music-oriented" linux users (these are affordable high-quality cards, supported by alsa for a long time).

Tom Kiesel (tom-nonotyet) wrote :

I'd hoped that fixing <a href="https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/211592">Bug 211592</a> today meant that all was well and this bug would be fixed. Alas, this bug remains for my ice1712 based card.

The workaround posted here remains the only way to have working Pulseaudio. (that I know of)

Ilmari J. (tohtorijep) wrote :

I'm surprised that this bug's importance is rated so low.
I don't know about you but this bug gets my computer so stuck that I have
to reboot from powerbutton once in a while if I try to watch some videos or listen
to music.

I am using pulseaudio 0.9.10 on 64-bit Ubuntu 8.04 with kernel 2.6.24-16-rt.

(A month ago I was using 8.04-beta but I had to return to 7.10 because the bug
was so dominant. Yesterday I installed the stable and the bug still exists)

The thing is, the bug is very nasty for those who are using this (popular) soundcard.
I hope I could help you more with this...

fstafforini (fstafforini) wrote :

The link for the workaround is dead. Does someone remember what it was? Thanks.

I added this to /etc/pulse/default.pa and it works for me (I didn't
comment out any lines like the original workaround said).

# Workaround for MAudio Audiophile
# https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/178442/comments/7
load-module module-alsa-sink sink_name=M2496_out device=hw:M2496
format=s32le channels=10
channel_map=left,right,aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7
load-module module-alsa-source source_name=M2496_in device=hw:M2496
format=s32le channels=12
channel_map=left,right,aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7,aux8,aux9

On Mon, May 5, 2008 at 8:49 PM, fstafforini <email address hidden> wrote:
> The link for the workaround is dead. Does someone remember what it was?
> Thanks.
>
> --
> Pulseaudio fails to initialize Audiophile 2496
> https://bugs.launchpad.net/bugs/178442
> You received this bug notification because you are a direct subscriber
> of the bug.
>

This really is an annoying bug, I have to kill pulseaudio every time I start up my system to get sound working and I couldn't get the fix working for me... I bet I'm not the only one using m-audio 2496, so I'm as well surprised with the low priority of this bug... Well ok, not many people of normal users have this gear, but probably m-audio 2496 is one of the most common audio cards used by computer music hobbyists. We are talking about people who use audio a lot, I guess... Just wanted to point that out, peace.

Stefan Metzger (kosh-unearth) wrote :

I can confirm this bug. After upgrading from Gutsy to Hardy sound output stopped working on my M2496 card due to pulseaudio being used as soundserver. This is quite annoying. I have to kill pulseaudio every time I log in to be able to use the soundcard. In fairness, I have not tried any of the above mentioned workarounds to get pulseaudio to work together with the Delta soundcard since I am happy with the way it works when pulseaudio is deactivated.

The file /etc/default/pulseaudio suggests to disable ESD in System->Preferences->Sound to prevent pulseaudio from being loaded by GNOME, which works for me but of course disables all system sounds. Still I think this is nicer than having to kill the process after it has been loaded already.

Saelynh (saelynh) wrote :

I have exactly the same problem, the workaround posted here doesn't work for me.

EricD (debois) wrote :

The problem is not isolated to pulseaudio. It can show up in any audio app that expects to be able to control certain audio card settings.

The ICE1712 driver only takes 10 channels of output in s32 format, or nothing. Also the rate locking feature, if turned on, will limit the sample rate to one option.

All in all, you have one exact format that works (and programs that go with the defaults usually find it), and audio specific software usually expects to be able to tinker with those settings.

So, I'd peg this as an ALSA bug. And I think it's been known for about 5 years or so.

So the question is perhaps, is this how a proper driver for the M-Audio 2496 should work? ..and my feeling is..no. The Delta *ASIO* driver manages deal with different numbers of channels. Also, there is the thing with consistency with other cards.

Even if this 10 channel thing is a requirement of the hardware, making the driver zero out the redundant buffers should be kind of easy, I think?

Craig (candrews-integralblue) wrote :

Should someone a file a bug with ALSA and/or the kernel requesting this issue be resolved in the driver?

Tony McKenzie (mckenzie-tony) wrote :

I had to switch completely back to alsa to get my 24/96 working under hardy, I am running intrepid now and my soundcard works flawlessly with pulseaudio, so I'm assuming they fixed this extremely annoying bug; or at least under my system :)

Geoff123 (gsking1) wrote :

I'm also having this problem. Cannot use Hardy or Intrepid sound with the default pulseaudio setup.
Like another bug reported, when I open the sound preferences and change to pulse and click Test, it puts up an error message and locks up until I kill gnome-sound-properties.

This is the console output of the error message:
(gnome-sound-properties:30998): sound-properties-DEBUG: setting theme ubuntu
sound-properties-Message: Error running pipeline 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! gconfaudiosink': Failed to connect stream: Invalid argument [pulsesink.c(634): gst_pulsesink_prepare (): /GstPipeline:pipeline0/GstGConfAudioSink:gconfaudiosink0/GstBin:bin0/GstPulseSink:pulsesink0]

I guess my next steps are to remove pulseaudio and try alsa by itself.

Geoff123 (gsking1) wrote :

I cannot log into a gnome session now that pulseaudio has been removed. I removed pulseaudio related packages and now ubuntu gnome desktop will not load (I got some message at login from gdm or Xinit that gconf could not find /bin/pulseaudio....) I was able to login to KDE4 though.

Sorry, I'm not at that computer now so I cannot give more specific error message. I can post it in the next day or two if I don't figure out how to fix this.

This seems like a pretty serious regression to me. I don't recall ever being blocked out of the desktop due to sound preferences. Would suggest that the priority of this bug be raised.

Windsor Schmidt (winferno) wrote :

The manual module loading <a href="https://tango.0pointer.de/pipermail/pulseaudio-discuss/2008-January/001240.html">work-around</a> mentioned by Tom Kiesel above works for me EXCEPT that I had to change the line where the default sink is selected, as the newline seems to be in the wrong place, separating that line from the next.

I changed:

set-default-sink
delta_out set-default-source delta_in

to:

set-default-sink delta_out
set-default-source delta_in

That fixed my problem and Pulse + my Delta 44 are working fine now. I hope this helps someone.

On Thu, 2008-11-06 at 08:00 +0000, Windsor Schmidt wrote:
> The manual module loading <a href="https://tango.0pointer.de/pipermail
> /pulseaudio-discuss/2008-January/001240.html">work-around</a> mentioned
> by Tom Kiesel above works for me EXCEPT that I had to change the line
> where the default sink is selected, as the newline seems to be in the
> wrong place, separating that line from the next.
>
> I changed:
>
> set-default-sink
> delta_out set-default-source delta_in
>
> to:
>
> set-default-sink delta_out
> set-default-source delta_in
>
> That fixed my problem and Pulse + my Delta 44 are working fine now. I
> hope this helps someone.

These tips allowed me to get my Audiophile 2496 working in Hardy.
Thanks.

Thanks the workaround posted here helped me get my sound card ( H71 [Hoontech STA DSP24 Media 7.1], device 0: ICE1712 multi) to work with pulseaudio too after much stuffing around and hours of googling. I posted my workaround on the forum http://ubuntuforums.org/showpost.php?p=6449370&postcount=989.

Daniel T Chen (crimsun) on 2009-01-05
Changed in pulseaudio:
status: In Progress → Confirmed
Florian Zeitz (florian-zeitz) wrote :

Update: In jaunty pulseaudio can now initialize the card, but sound only comes out of the right speaker. The workaround posted here is therefore still needed.

<silly_rant>This is after over a year after reporting the bug and there are 6 duplicates. I wonder why some people think pulseaudio sucks.</silly_rant>

ubby (kostas-sytske) wrote :

I hope the problem will be solved before the final release of Jaunty.

usr (usrlp) wrote :

Fixed on Ubuntu 9.04.

Changed in pulseaudio (Ubuntu):
status: Confirmed → Fix Released
Florian Zeitz (florian-zeitz) wrote :

I don't know how you got the idea it was fixed.
I never actually tried Jaunty without the workaround but testing Karmic with the default default.pa this bug is still alive and kicking. I really hope this will finally be fixed for Karmic stable.

Changed in pulseaudio (Ubuntu):
status: Fix Released → Confirmed

Hi Florian

I did a clean install of Jaunty around the time of its release, and pulse
just worked with my MAudio 2496. I don't know how to explain it if as you
say the bug is still alive and kicking. It's a while ago now but I'll have a
look in more detail.

Cheers

2009/6/20 Florian Zeitz <email address hidden>

> I don't know how you got the idea it was fixed.
> I never actually tried Jaunty without the workaround but testing Karmic
> with the default default.pa this bug is still alive and kicking. I really
> hope this will finally be fixed for Karmic stable.
>
> ** Changed in: pulseaudio (Ubuntu)
> Status: Fix Released => Confirmed
>
> --
> Pulseaudio fails to initialize Audiophile 2496
> https://bugs.launchpad.net/bugs/178442
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “pulseaudio” source package in Ubuntu: Confirmed
>
> Bug description:
> Binary package hint: pulseaudio
>
> I have a problem that makes pulseaudio unusable for me.
> I noticed the only device listed by pulseaudio is my webcam (as an input
> device obviously), so I tried starting pulseaudio from the command line to
> see what was happening.
> This resulted in:
> "ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition
> 'cards.ICE1712.pcm.surround71.0:CARD=0'
> ALSA lib conf.c:3510:(_snd_config_evaluate) function snd_func_refer
> returned error: No such file or directory
> ALSA lib conf.c:3982:(snd_config_expand) Evaluate error: No such file or
> directory
> ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM surround71:0
> W: alsa-util.c: Device hw:0 doesn't support 2 channels, changed to 10.
> W: alsa-util.c: Device hw:0 doesn't support sample format s16le, changed to
> s32le.
> W: alsa-util.c: Cannot find fallback mixer control "PCM".
> E: module-alsa-sink.c: Failed to create sink object
> E: module.c: Failed to load module "module-alsa-sink" (argument:
> "device_id=0
> sink_name=alsa_output.pci_1412_1712_sound_card_0_alsa_playback_0"):
> initialization failed.ALSA lib confmisc.c:1286:(snd_func_refer) Unable to
> find definition 'cards.ICE1712.pcm.surround71.0:CARD=0'
> ALSA lib conf.c:3510:(_snd_config_evaluate) function snd_func_refer
> returned error: No such file or directory
> ALSA lib conf.c:3982:(snd_config_expand) Evaluate error: No such file or
> directory
> ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM surround71:0
> W: alsa-util.c: Device hw:0 doesn't support 2 channels, changed to 12.
> W: alsa-util.c: Device hw:0 doesn't support sample format s16le, changed to
> s32le.
> W: alsa-util.c: Cannot find fallback mixer control "Mic".
> E: module-alsa-source.c: Failed to create source object
> E: module.c: Failed to load module "module-alsa-source" (argument:
> "device_id=0
> source_name=alsa_input.pci_1412_1712_sound_card_0_alsa_capture_0"):
> initialization failed."
>
> This is an up to date Hardy installation.
> Soundcard is a M-Audio Audiophile 2496.
>

Hi, Florian. You're right, the problem is still alive!
Kubuntu 9.04 doesn't do the bug because this version doesn't install pulseaudio, but when you install totem (for example) pulseaudio is installed, and when your are listening a song with a KDE app, GTK+ apps can't play any audio.

Florian Zeitz (florian-zeitz) wrote :

The reason pulseaudio right now doesn't work with this card is that it expects a front device that has only 2 channels.
A possible fix for this is changing it's definition to:
ICE1712.pcm.front.0 {
        @args [ CARD ]
        @args.CARD {
                type string
        }
        type route
        ttable.0.0 1
        ttable.1.1 1
        slave.pcm {
                type hw
                card $CARD
        }
        slave.format S32_LE
        slave.channels 10
}
in /usr/share/alsa/cards/ICE1712.conf
This is taken from RedHat's and pulseaudio's bugtracker and the alsa list, I can't find the relevant thread/bugs right now though...

Florian Zeitz (florian-zeitz) wrote :

Tada and it's a pulseaduio problem again:
Since tsched="0" has been removed from the default config pulseaudio doesn't work any longer even with the above change. It claims there is no plug:front:0 even though I can play sound through that device using mplayer just fine. Adding back tsched="0" helps (but is not the right solution I guess).

I *really* which this was fixed before karmic. Doing two rather unobvious changes from the default config just to get sound working is pretty annoying...

defce (romanticrecords) wrote :

I can confirm for Jaunty 9.04 this bug is still an issue. I use an maudio 2496 and currently cannot get a stereo sound working, mono only. I am yet to try the workaround but will report back when i have

For those who are running Karmic? Could you please try the test version of pulseaudio 0.9.16? You can fetch the packages from the ubuntu-audio-dev PPA, http://launchpad.net/~ubuntu-audio-dev/+archive

Thanks

The PPA packages are exactly the same. Works as long as front:0 has only 2 channels and tsched="0" is specified.
Otherwise it fails to open any output (the card is detected though).

ianc (ian-criddle) wrote :

I've been following this from upstream:

http://www.pulseaudio.org/ticket/624

Profile configuration isn't yet perfect, but for me it's a major step forward in terms of mapping (I don't have the problem with glitch-free).

summary: - Pulseaudio fails to initialize Audiophile 2496
+ Pulseaudio fails to initialize ICE1712 chipsets
David Favor (davidfavor) wrote :

Answer to comment #33 is no change for this card with these packages installed.

David Favor (davidfavor) wrote :

Related to commend #12.

Both speaker-test -Dplug:front and aplay -Dplug:front $(locate Noise.wav) work with or without comment #33 packages.

Changing /etc/pulse/default.pa per comment #7 fixes output at least.

###fix### #7 https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/178442
load-module module-alsa-sink sink_name=M2496_out device=hw:M2496 format=s32le channels=10 channel_map=left,right,aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7
load-module module-alsa-source source_name=M2496_in device=hw:M2496 format=s32le channels=12 channel_map=left,right,aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7,aux8,aux9

###fix### ### Automatically load driver modules depending on the hardware available
###fix### .ifexists module-udev-detect.so
###fix### load-module module-udev-detect
###fix### .else
###fix### ### Alternatively use the static hardware detection module (for systems that
###fix### ### lack udev support)
###fix### load-module module-detect
###fix### .endif

What a nightmare for someone desiring sound to work out of the box.

David Favor (davidfavor) wrote :

HAL Policies no longer seem to work - https://bugs.launchpad.net/ubuntu/+bug/421150

If someone can tell me how to trace/debug pulseaudio startup and HAL policy parsing, I'll try to figure out a HAL Policy for this card as it's the only card out of a dozen I've tried on Ubuntu that works at all.

Also if someone can tell me how to save the default sound level between boots I'd be grateful as Ubuntu seems to always startup at max volume. A great way to destroy speakers & ears.

David Favor (davidfavor) wrote :

Hum... Looks like HAL is now deprecated in Karmic. How confusing to leave a deprecated service running when it does nothing.

Looks like some PolicyKit magic is required. If someone can point me to appropriate info I'll give it a shot.

ianc (ian-criddle) wrote :

David - take a look at the Pulseaudio ticket (#35 above) - it has the udev policy info.

Daniel T Chen (crimsun) on 2010-03-03
Changed in alsa-lib (Ubuntu):
status: New → Confirmed
Daniel T Chen (crimsun) on 2010-03-05
Changed in alsa-lib (Ubuntu Lucid):
status: Confirmed → Won't Fix
Changed in pulseaudio (Ubuntu Lucid):
status: Confirmed → Won't Fix
Daniel T Chen (crimsun) on 2010-03-07
Changed in pulseaudio (Ubuntu Lucid):
assignee: nobody → Daniel T Chen (crimsun)
status: Won't Fix → Triaged
Richard Corner (rcorner) on 2010-05-01
tags: added: audio driver m-audio pulseaudio sound soundcard
tags: added: terratec
Daniel T Chen (crimsun) on 2010-06-09
summary: - Pulseaudio fails to initialize ICE1712 chipsets
+ Pulseaudio fails to initialize ICE17xx chipsets
tags: added: patch
109 comments hidden view all 189 comments
Download full text (4.0 KiB)

Did you see: Configuring default soundcards / stopping soundcards from
switching
https://help.ubuntu.com/community/SoundTroubleshooting#Configuring%20default%20soundcards%20/%20stopping%20soundcards%20from%20switching
I hope help.
Marcelo
=======================================================

2010/11/8 Richard Rath <email address hidden>

> In comment 145 I reported that the problem had mysterious gotten fixed
> without me doing anything after a regular update. Now just as
> mysteriously, it has stopped working again. Desired behaviour:
> pulseaudio works on boot, jack works when loaded. Actual current
> behavior: PA does not work, though meters in PA manager show activity
> when a file is played using a PA app, mplayer, or aplay. Envy mixer app
> shows no activity. Once I have tried to play something this way, jack
> will no longer work, though if I start jack on boot, jack enabled apps
> (audacious, audacity, etc) playback fine. if I turn jack off and try a
> pulseaudio app, I get the previous behavior, and jack then no longer
> works. It starts, but no sound comes out, or else starting the jack
> server results in a hardware busy signal and failure to start. reboot,
> repeat.
>
> I also filed a comment on bug 3327 at Alsa-project, as per Daniel's
> comment 148: https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3327
>
> ** Bug watch added: ALSA Bug Tracker #3327
> https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3327
>
> --
> Pulseaudio fails to initialize ICE17xx chipsets
> https://bugs.launchpad.net/bugs/178442
> You received this bug notification because you are a direct subscriber
> of a duplicate bug (670182).
>
> Status in “alsa-lib” package in Ubuntu: Confirmed
> Status in “pulseaudio” package in Ubuntu: Confirmed
> Status in “alsa-lib” source package in Lucid: Won't Fix
> Status in “pulseaudio” source package in Lucid: Triaged
>
> Bug description:
> Binary package hint: pulseaudio
>
> I have a problem that makes pulseaudio unusable for me.
> I noticed the only device listed by pulseaudio is my webcam (as an input
> device obviously), so I tried starting pulseaudio from the command line to
> see what was happening.
> This resulted in:
> "ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition
> 'cards.ICE1712.pcm.surround71.0:CARD=0'
> ALSA lib conf.c:3510:(_snd_config_evaluate) function snd_func_refer
> returned error: No such file or directory
> ALSA lib conf.c:3982:(snd_config_expand) Evaluate error: No such file or
> directory
> ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM surround71:0
> W: alsa-util.c: Device hw:0 doesn't support 2 channels, changed to 10.
> W: alsa-util.c: Device hw:0 doesn't support sample format s16le, changed to
> s32le.
> W: alsa-util.c: Cannot find fallback mixer control "PCM".
> E: module-alsa-sink.c: Failed to create sink object
> E: module.c: Failed to load module "module-alsa-sink" (argument:
> "device_id=0
> sink_name=alsa_output.pci_1412_1712_sound_card_0_alsa_playback_0"):
> initialization failed.ALSA lib confmisc.c:1286:(snd_func_refer) Unable to
> find definition 'cards.ICE1712.pcm.surround71.0:CARD=0'
> ALSA lib conf.c:3510:(_snd_config_evalua...

Read more...

64-bit PC (AMD64) alternate install CD - I do have M-Audio Delta 66.

http://cdimage.ubuntu.com/daily/20101108/

I needed fix #30.

Best Regards Asmo Koskinen.

Richard Rath (rcrath) wrote :

Thanks Marcello, I'm pretty familiar with that page! I have the onboard soundcard disabled in bios, so switching is not a problem (yet...I still have a presonus firepod to hook up). The fix in comment seven appears to have worked for me too, with the appropriate sound card code substituted.

rod singleton (rod40cool) wrote :

Well for some reason my pulseaudio sound just stopped a couple of days ago. Not sure why it stopped, so I revisited my old post (#96) to get my workaround for my (ICE1712 - Hoontech STA DSP24 Media 7.1) card working again under Maverick but the alsa mod didn't work. So I read further and a couple of posts caught my attention.

I now have to agree with #112 and #113 in tweaking pulseaudio rather than alsa. Using Jack and apps like Hydrogen, Rosegarden all work fine with my card as Jack is not using pulse.

So, I tried the solution at #52 as suggested but used the via-ice1712.conf direct from PulseAudio ticket #624 here: http://pulseaudio.org/ticket/624 (rather than the one at #53) and rebooted and now confirm that pulse is working even better than using the previous ALSA mod for me. I now have additional outputs to select in sound preferences and there are now sliders to control 'balance', 'fader', and 'subwoofer' which were never there before.

Richard Rath (rcrath) wrote :

Tried solution from # 53 instead of # 7 and sound fails on resume from sleep. PA meters show the sound as going through, but no sound comes out the speakers, and when I try to start jack, it fails to connect as well. reboot fixes it until next sleep.going back to fix in #7 (edit default.pa instead of /lib/udev/rules.d/90-pulseaudio.rules to see if that wakes up any better.

blackvd (jeremyrutledge) wrote :

I followed the fix on #30 which gives me audio out using a m-audio 24/96. The problem I am having now is crackling and slight skipping during playing back. However if I use aplay it plays fine. Has anyone else experienced and/or figured a way around this? Or how can I use alsa for playback as default as it plays fine with aplay?

HippieDave (dalden) wrote :

I can't believe this issue is still out there.

I had to revert back to Jaunty because this issue could not be worked around in Koala. I've now upgraded to Lynx (10.4) because I thought a fix had been found. But I still get zero sound.

aplay -l lists Maudio 2496 as only sound card. I've disabled the onboard sound in BIOS

I've added "options snd-ice1712 model=audiophile" to the alsa-base.conf file

When I go to alsamixer, I have a full array of choices, all of which look "on", but I have no clue really how to set things in alsamixer, or in sound preferences for that matter. The Maudio2496 is recognized everywhere I look, but I get no sound.

I've tested it by booting into windows, and get full sound capability over the same card. I note that people refer to the "fix on #30" but if that refers to the 30th posting here, I do not understand it sufficiently to implement it.

HippieDave (dalden) wrote :

OK, I finally figured out how to implement workaround suggested in comment 7 above, and so far that seems to work, although I had to play around a lot with Alsamixer first. When I first implemented the work around I had playback sound out of one channel only. Went into Alsamixer and set all channels to on at a moderate level. Turned out I had to set the H/W and H/W1 channels to "PCM Out" before I had complete sound.

So now the sound works, but the Sound Preferences button and function under Systems appears to be disabled. Is this endemic to this workaround?

nmsrnm1 (nmsrnm1) wrote :

I can't use my M-Audio Delta Audiophile 24/96 with Pulseaudio, too.
Please fix this bug!

nmsrnm1 (nmsrnm1) wrote :

This bug makes a sound-card totally unusable on standard installations, affects at least 57 confirmed people and has been reported since more than 3 years ago.
How is it possible it has LOW priority???

Asmo Koskinen (asmok) wrote :

Natty Alternate AMD64 Alpha 3 installation - I needed as usual fix #30...

Please do something...

(This is going just like very ridiculous Java 64-bit plug-in bug... "2115 days since submit date, and counting..."

http://bugs.sun.com/view_bug.do?bug_id=4802695)

Best Regards Asmo Koskinen.

David Henningsson (diwic) wrote :

Ok, I have now read up a little on this issue, looked a little in kernel, alsa-lib, and pulseaudio code.

It seems to me the basic limitation in the hw or kernel driver, is that the number of channels is fixed to 10 out and 12 in, and the s32le format.

For the channels, I think it's reasonable to expect someone opening front:x to be able to send a 2 channel stream in. Which points us to a modified version of comment #30 as the preferred fix. I'd be positive to commit such a fix into Ubuntu, at least until upstream has agreed on something else. I don't think that will hurt professional audio applications (e g JACK), because they seldom use anything but the hw: interface, which is not affected by changes made in the front: interface.

However, for the s32le restriction, I think pulseaudio already tries all possible formats, so it should be unwise to have that conversion in alsa-lib - better let pulseaudio do the conversions.

An additional problem is that for recording, I've seen both channel 8,9 [1] and 0,1 [2] being used for input. Is the main input channel different between the different ICE1712 cards? I'd be glad if we could sort this out before the commit is made - could you help?

[1] http://article.gmane.org/gmane.linux.alsa.devel/59480

[2] Comment #7 in this thread.

Mike A. Kuznetsov (mike4gg) wrote :

David, plz give more or less exact instructions (e.g. 1. install fresh beta of Ubuntu 2. change this, this and this etc...)
I have this http://www.m-audio.com/products/en_us/Audiophile2496.html card in my desktop machine (but only analog output equipment - 2.0 system) and would glad to help, if you explain how. Thanks.

Yann Hamon (yannh) wrote :

I also use the same card as Mike - David, thanks a lot for your time, a *lot* of people are hoping to see this fixed! Could you tell us how to find out what the main input channel is?
To other subscribers to this bug: if anyone is using a different card with the same chipset, please raise your hand, and specify what model, thanks

David Henningsson (diwic) wrote :

Ok, I have now modified the comment #30 solution a little, and uploaded the result to ppa:diwic/ppa.
Please try the following:

1) Make sure you have a clean Natty (11.04) install without any workarounds installed.
2) Download and install the alsa-lib package from ppa:diwic/ppa (see https://launchpad.net/~diwic/+archive/ppa/+packages )
3) Reboot your computer and test both playback and capture.
4) Tell me - by reporting back into this bug:
 - whether playback and capture worked or not
 - what card you have
 - and include a PulseAudio log ( https://wiki.ubuntu.com/PulseAudio/Log )

Thanks for helping out with resolving this long-standing issue!

David Henningsson (diwic) wrote :

Setting to incomplete while waiting for answer to comment #164

Changed in alsa-lib (Ubuntu):
status: Confirmed → Incomplete
1 comments hidden view all 189 comments
pablomme (pablomme) wrote :

@David: sorry for not testing this earlier - I think the main issue is that you provide natty packages in your ppa, while probably most people affected by this bug are on maverick, or maybe even lucid.

Anyway, I tried your packages on maverick and they work - I simply removed my workaround, added your ppa for natty, updated libasound and lib32asound (which pulled python2.7 as a dependency) via synaptic and rebooted. Results:
- playback (totem) and capture (sound-recorder) work as expected
- I have the M-Audio Delta 1010LT (subsystem_vendor=0x1412, subsystem_device=0xd63b)
- ... sorry, hadn't read this. I'll re-test and attach a pulseaudio log.

To get more people trying this, could you perhaps produce maverick versions of your packages, provided it's not too much work?

Thanks for fixing this.

pablomme (pablomme) wrote :

Pulseaudio log attached.

Mike A. Kuznetsov (mike4gg) wrote :

I have m-audio audiophile 2496 card

I have installed 11.04 alpha3 amd64, then run partial upgrade and all updates, then checked out sound config (bug was here, only "digital" config presets for my card). Then i installed https://launchpad.net/~diwic/+archive/ppa/+files/lib32asound2_1.0.24.1-0ubuntu4%7Ediwicppa_amd64.deb and https://launchpad.net/~diwic/+archive/ppa/+files/libasound2_1.0.24.1-0ubuntu4%7Ediwicppa_amd64.deb. Then i rebooted computer and "Analog" presets appears in sound preferences, but no sound anyway. ("Analog duplex" + "Output source - my 2496 card" ). I'm sorry can not test capture - have no mic. Pulseaudio log in attachment.

David Henningsson (diwic) wrote :

@pablomme, why I want you to test this on Natty is for two reasons:
1) It's easier for me (less administration) to fix something in the upcoming release (Natty) than in stable releases (Lucid, Maverick). In fact, we're about to run out of time for Natty as it starts go into its testing phase with various degrees of freezes... :-/
2) The SRU policy - which controls how things can be updated in stable releases - dictates that the fix should first be verified in the unstable release before considering backporting the fix to a stable release.
Therefore testing on Maverick is not good enough at this point, sorry.

@Mike, thanks for testing. You seem to be suffering from underruns on the client side, which might or might not be related to this issue, let's try to figure out.
Could you please try the following and see and if it helps:
 - Start pulseaudio in the logging mode
 - Make sure no other CPU intensive or audio applications are running at the same time. In particular, make sure gnome-volume-control is not open - and wait 10 seconds after having closed gnome-volume-control before starting the sound test.
 - Go into alsamixer and make sure volume is at 75 - 100%, are there controls labeled "DAC 0" and "DAC 1"? If so make sure they are also turned on.
 - Use this terminal command to test sound: "speaker-test -D pulse -t sine -c 2"
 - Afterwards, please attach the resulting pulseaudio log and in addition, an alsa-info according to https://wiki.ubuntu.com/Audio/AlsaInfo
Thanks!

pablomme (pablomme) wrote :

@david: Ok. I've upgraded to natty and re-tested. Log attached.

On first test I got no sound, but then I installed alsa-tools-gui and used envy24control to increase the volume of the first two channels (basically as you suggest to mike in your previous post), and then it works properly. Ditto for recording.

pablomme (pablomme) wrote :

...and my alsa-info in case you need it.

David Henningsson (diwic) wrote :

pablomme, thanks. I've sent this patch upstream, let's see what they say. http://mailman.alsa-project.org/pipermail/alsa-devel/2011-March/038265.html

David Henningsson (diwic) wrote :

And it's in and committed to alsa-lib both upstream and in Ubuntu. Luke or Daniel, mind uploading alsa-lib when you have a spare moment? Thanks!

Changed in alsa-lib (Ubuntu):
status: Incomplete → Fix Committed
summary: - Pulseaudio fails to initialize ICE17xx chipsets
+ Pulseaudio fails to initialize ICE1712 chipsets
David Henningsson (diwic) wrote :

Due to beta freeze this will likely be uploaded after Beta 1 has been released.

Changed in alsa-lib (Ubuntu):
milestone: none → ubuntu-11.04
nmsrnm1 (nmsrnm1) wrote :

I just tested Beta 1 and the bug is still not fixed there.
I get no sound.

The above proposed fix has not yet been uploaded to natty. I hope to get this uploaded ASAP, however I have some patches incoming for other fixes which I would like to upload all at once if possible. A notification will be added to this bug once the fix has been uploaded.

markus haider (markus.haider) wrote :

I tested the packages in #164 on a fresh natty beta 1 install and I get sound. However, I have one question: What would I have to do, if I want to switch output to channels 3&4 (where I connected headphones). Is this possible with the current bugfix? If not, where would I have to make the changes?

In Ubuntu 10.10, I mad a mapping in via-ice1712.conf which looked like this

[Mapping headphones]
description = headphones
device-strings = hw:%f,0
#channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side
-left,side-right,aux0,aux1
channel-map = aux0,aux1,front-left,front-right,aux2,aux3,aux4,aux5,aux6,aux7
direction = output

David Henningsson (diwic) wrote :

> What would I have to do, if I want to switch output to channels 3&4 (where I connected headphones)

Just to gather information, what is the soundcard that allows for this configuration?

> In Ubuntu 10.10, I mad a mapping in via-ice1712.conf which looked like this

It seems to me like that workaround would work equally well in 11.04.

You can also modify /usr/share/alsa/cards/ICE1712.conf to output to both 1&2 and 3&4 simultaneously by inserting ttable entries, should be something like:

 ttable.0.2 1
 ttable.1.3 1

...next to the other ttable entries in the definition you want to modify.

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package alsa-lib - 1.0.24.1-0ubuntu4

---------------
alsa-lib (1.0.24.1-0ubuntu4) natty; urgency=low

  * lp178442-ICE1712.patch: Makes pulseaudio succeed in opening
    ICE1712 chips such as Maudio 2496 and Delta 1010LT.
    (LP: #178442)
 -- David Henningsson <email address hidden> Mon, 28 Mar 2011 11:01:55 +0200

Changed in alsa-lib (Ubuntu):
status: Fix Committed → Fix Released
markus haider (markus.haider) wrote :

@David Henningsson
> Just to gather information, what is the soundcard that allows for this configuration?
I have a M-Audio Delta 1010lt which has 10 output channels.

markus haider (markus.haider) wrote :

I don't have any problems with this bug anymore on Natty. So I can confirm that this is fixed for me with alsa-lib - 1.0.24.1-0ubuntu4.

@ David Henningsson
Thank you for your tip with the ttable entries. I was not possible to make a mapping through via-ice1712.conf (but perhaps I just did something wrong), but changing /usr/share/alsa/cards/ICE1712.conf works to allow simultanuous output on channels 1-4. Here the relevant section in /usr/share/alsa/cards/ICE1712.conf, where I added the two lines you suggested:
<confdir:pcm/front.conf>

ICE1712.pcm.front.0 {
 @args [ CARD ]
 @args.CARD {
  type string
 }
 type asym
 playback.pcm {
  type route
  ttable.0.0 1
  ttable.1.1 1
  ttable.0.2 1
  ttable.1.3 1

Thanks a lot

Zoran (zoran-juginovic) wrote :
Download full text (3.9 KiB)

Marcus,

Thank you for informing me about the issue, but I must admit I don't
understand it at all and I hope I will succeed to find somebody who could
explain me what I am supposed to do...
:) I suppose this is related to my soundcard Audiphile 2496 and it could be
connected with its driver problem or similar, but, I cannot assume more of
that right now.
Forgive me for beeing honest with you and thank you.

Zoran

2011/5/6 markus haider <email address hidden>

> I don't have any problems with this bug anymore on Natty. So I can
> confirm that this is fixed for me with alsa-lib - 1.0.24.1-0ubuntu4.
>
> @ David Henningsson
> Thank you for your tip with the ttable entries. I was not possible to make
> a mapping through via-ice1712.conf (but perhaps I just did something wrong),
> but changing /usr/share/alsa/cards/ICE1712.conf works to allow simultanuous
> output on channels 1-4. Here the relevant section in
> /usr/share/alsa/cards/ICE1712.conf, where I added the two lines you
> suggested:
> <confdir:pcm/front.conf>
>
> ICE1712.pcm.front.0 {
> @args [ CARD ]
> @args.CARD {
> type string
> }
> type asym
> playback.pcm {
> type route
> ttable.0.0 1
> ttable.1.1 1
> ttable.0.2 1
> ttable.1.3 1
>
> Thanks a lot
>
> --
> You received this bug notification because you are a direct subscriber
> of a duplicate bug (769066).
> https://bugs.launchpad.net/bugs/178442
>
> Title:
> Pulseaudio fails to initialize ICE1712 chipsets
>
> Status in “alsa-lib” package in Ubuntu:
> Fix Released
> Status in “pulseaudio” package in Ubuntu:
> Confirmed
> Status in “alsa-lib” source package in Lucid:
> Won't Fix
> Status in “pulseaudio” source package in Lucid:
> Triaged
>
> Bug description:
> Binary package hint: pulseaudio
>
> I have a problem that makes pulseaudio unusable for me.
> I noticed the only device listed by pulseaudio is my webcam (as an input
> device obviously), so I tried starting pulseaudio from the command line to
> see what was happening.
> This resulted in:
> "ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition
> 'cards.ICE1712.pcm.surround71.0:CARD=0'
> ALSA lib conf.c:3510:(_snd_config_evaluate) function snd_func_refer
> returned error: No such file or directory
> ALSA lib conf.c:3982:(snd_config_expand) Evaluate error: No such file or
> directory
> ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM surround71:0
> W: alsa-util.c: Device hw:0 doesn't support 2 channels, changed to 10.
> W: alsa-util.c: Device hw:0 doesn't support sample format s16le, changed
> to s32le.
> W: alsa-util.c: Cannot find fallback mixer control "PCM".
> E: module-alsa-sink.c: Failed to create sink object
> E: module.c: Failed to load module "module-alsa-sink" (argument:
> "device_id=0
> sink_name=alsa_output.pci_1412_1712_sound_card_0_alsa_playback_0"):
> initialization failed.ALSA lib confmisc.c:1286:(snd_func_refer) Unable to
> find definition 'cards.ICE1712.pcm.surround71.0:CARD=0'
> ALSA lib conf.c:3510:(_snd_config_evaluate) function snd_func_refer
> returned error: No such file or directo...

Read more...

HannesB (hannesb) wrote :

Hello,

the neverending story continues...
just made a fresh install of 11.10.
No Sound with my Terratec EWX 24/96
I had to run the envy mixer (mudita24)
DAC0 and DAC1 were set to 0 by default.
After fixing that it works fine,

BTW suspend is still broken.

David Henningsson (diwic) wrote :

Well, there are several ways we could go about the initial mixer setting. We could initialize DAC0 and DAC1 to be on by default in the ALSA init db, which would be just a quick fix. Better would be if we could rename these devices in the kernel to be labelled "Front", "Surround", "LFE", "Headphone" and so on, so that PulseAudio would use it automatically. That, however, requires that we know the channel alignment for all devices, i e, if DAC2 corresponds to the headphone on one of these devices and the LFE on another, that has to be taken into account.
Some kind of workaround would be to create PulseAudio profiles for this, but it feels like the kernel is the proper place to fix it.

Fixing suspend/resume is trickier, and might require someone with both kernel knowledge and the physical hardware at hand to fix it.

Raymond (superquad-vortex2) wrote :

http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/?id=078a39af886ea3bb590595b973343af77c2837fe

if the thinkpad_acpi card can be ignored by modifying ENV{PULSE_IGNORE}="1" in 90-pulseaudio.rules

this may mean that you can add an entry to ignore your ice1712 card and you can run Jack server with your ice1712

Chris (csumm101) wrote :

This is still an issue with me on ubuntu 13.10 unbelievable

madbiologist (me-again) wrote :

Initial power management support for M-Audio devices will finally be available in the ICE1712 driver in the upcoming upstream 3.15 kernel. The 3.15 kernel will be available at http://kernel.ubuntu.com/~kernel-ppa/mainline/ and instructions on how to install and uninstall it are available at https://wiki.ubuntu.com/Kernel/MainlineBuilds

Displaying first 40 and last 40 comments. View all 189 comments or add a comment.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.