[Alsa-user] No sound on Dell XPS after suspend to RAM (ALC275)
Hello everybody I hope I can get some help here. My system is: - Dell XPS One 2710, Ubuntu 12.04, Kernel 3.2.0.31 or 3.2.0.32 or 3.6.2 The Problem is: --- Sound works out of the box, until machine is suspended to RAM (STR). After resume there is no sound at all. Interestingly, a suspend to Disk (STD) and resume restores sound functionality! aplay -l: Karte 0: PCH [HDA Intel PCH], Gerät 0: ALC275 Analog [ALC275 Analog] Sub-Geräte: 1/1 Sub-Gerät #0: subdevice #0 Karte 0: PCH [HDA Intel PCH], Gerät 3: HDMI 0 [HDMI 0] Sub-Geräte: 1/1 Sub-Gerät #0: subdevice #0 lsmod|grep snd: snd_hda_codec_hdmi 32506 1 snd_hda_codec_realtek 79668 1 snd_hda_intel 34147 3 snd_hda_codec 135374 3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel snd_hwdep 13668 1 snd_hda_codec snd_pcm 97661 3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec snd_timer 29989 1 snd_pcm snd 79391 13 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer soundcore 15091 1 snd snd_page_alloc 18572 2 snd_hda_intel,snd_pcm I tried to reload alsa modules to restore sound, but it is not possible to unload or reload snd modules: # sudo /sbin/alsa force-unload Unloading ALSA sound driver modules: snd-hda-codec-hdmi snd-hda-codec-realtek snd-hda-intel snd-hda-codec snd-hwdep snd-pcm snd-seq-midi snd-rawmidi snd-seq-midi-event snd-seq snd-timer snd-seq-device snd-page-alloc (failed: modules still loaded: snd-hda-codec-hdmi snd-hda-codec-realtek snd-hda-intel snd-hda-codec snd-hwdep snd-pcm snd-timer snd-page-alloc). All information in the net that I found is unfortunately either depreciated (using acpi_suspend) or refers to other chips that have options (e.g. modprobe snd_hda_intel option=acer). It seems, there is no documentation about options of the ALC275 chip available. Anybody has a solution or a hint for me how to fix this? Thanks Michael -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
[Alsa-user] aplay issue
Hi All, I am using aplay to run the audio. I get this error message when i run the wav file, ALSA pcm_lib.c:1770: playback write error (DMA or IRQ trouble?) I am able to detect the card, aplay -l lists all the cards available. When i run the audio file, i can see the clock generated also. Any comments!! Thanks, msep -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] Ticks when playing to USB DAC at high sample rates
On 25.10.2012 17:18, Jeffrey Barish wrote: > I found something in the snd_usb_audio code (in endpoint.c) that could > explain one of the problems I have observed (the ticks). I would > normally test my theory by modifying the code. In this case, I would > like to stick in a print statement to see what values are being assigned > to certain variables. Unfortunately, I am too ignorant to do something > even this trivial as I have never worked on kernel code. I think I am > supposed to use printk, printk is nice for simple debugging, yes. But note that this call is timing critical and should not be used in "fast path" code. Introducing a printk for each received packet for example will almost certainly make the driver behave quite differently. > but beyond that I am lost. Can someone provide > me with some directions? I need to know how to make the driver. To that > end, I probably will have to install additional packages. After making > the driver, I need to know how to install it over the existing driver. Here's one way to do it: 1. git clone git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git (your patch should apply on top of this tree eventually) 2. cd sound 3. zcat /proc/config.gz >.config 4. build and install the kernel image. How that is done depends on the distribution you're using. For Ubuntu follow the docs at [1] (start at point #5). For Fedora and others, something like "make && make install" should do 5. reboot and check that the new kernel is running 6. hack on sound/usb 7. make M=sound/usb 8. reload the module with "sudo rmmod snd_usb_audio; sudo insmod sound/usb/snd-usb-audio.ko" (better plug out the device before so you always have the same defined point of start) Hope that works for you. Daniel [1] https://wiki.ubuntu.com/KernelTeam/GitKernelBuild -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] Ticks when playing to USB DAC at high sample rates
On Wed 17 October 2012 01:04:13 Daniel Mack wrote: On Oct 16, 2012 11:29 PM, "Jeffrey Barish" wrote: > > On Fri 28 September 2012 10:37:01 Daniel Mack wrote: > > On 28.09.2012 04:55, Jeffrey Barish wrote: > > > On Fri 28 September 2012 03:06:22 Daniel Mack wrote: > > >> (adding back the mailing list - please don't drop it in replies) > > > > > > Oops. My bad. > > > > > >> On 28.09.2012 02:43, Jeffrey Barish wrote: > > >>> On Fri 28 September 2012 02:02:05 you wrote: > > On 28.09.2012 01:56, Jeffrey Barish wrote: > > > I am using a USB DAC (HRT Music Streamer II) which operates in > > > asynchronous mode. It works perfectly at sample rates up to 48 kHz. > > > > > > When I go to 88.2 or 96, it works perfectly sometimes. Most of the > > > > > > time I get ticks. When it starts playing without ticks, it will > > > continue to play without ticks to the end of the track. A different > > > USB > > > DAC that operates in isochronous mode is able to play at the high > > > sample > > > rates without problem. > > > > Which kernel are you on? And please post the output of 'lsusb -v'. > > >>> > > >>> I am on the latest kernel, 3.2.0-31-generic > > >> > > >> That is not the latest kernel - we're currently close to the final > > >> version of 3.6, and the snd-usb driver has seen major overhaul in the > > >> last versions. > > >> > > >> So it would be interesting to know whether you see these effects when > > >> > > >> running a kernel built from this git: > > >> git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > > >> > > >> Daniel > > > > > > You seem to have me confused with someone who knows what he's doing. I > > > meant that 3.2.0-31-generic was the latest kernel available from Ubuntu. > > > You're proposing what sounds like a worthwhile experiment considering the > > > major overhaul to the snd-usb driver, but I've never upgraded a kernel > > > except from deb packages, so I'm quaking in my boots just thinking about > > > it. Ooh, and I bet you're telling me that I would have to make the > > > kernel. More quaking. > > You could as well just wait for the next ppa kernel and install that one > > form the package once it's there. > > > > http://kernel.ubuntu.com/~kernel-ppa/mainline/ > > > > There was unfortunately one small regression in the last versions that I > > just fixed, so be sure to wait for one more packaged release or even for > > 3.6-final. > > > > > Out of curiousity, are you aware of any specific characteristics of the > > > old > > > snd-usb driver that could account for what I am experiencing? > > > > No, but it would be way easier to have a look into that if it also > > happens with the current version :) > > > > > > Daniel > > Kernel 3.6.2-quantal does the same thing. > > When I interpose a USB hub between the computer and the USB DAC, the ticks go > away. Playback works perfectly at 96 kHz. However, at 88.2 kHz, I now get > occasional "blips" (instead of steady "ticks"). These symptoms point to > excessive delay in the control feedback loop, probably because of buffers in > the driver that are too big. If I wanted to take a look at the source code > for the driver to see whether I can find anything, where would I find it? Here: http://git.kernel.org/?p=linux/kernel/git/tiwai/sound.git;a=tree;f=sound/usb Please don't hessitate to share any patches or questions. I found something in the snd_usb_audio code (in endpoint.c) that could explain one of the problems I have observed (the ticks). I would normally test my theory by modifying the code. In this case, I would like to stick in a print statement to see what values are being assigned to certain variables. Unfortunately, I am too ignorant to do something even this trivial as I have never worked on kernel code. I think I am supposed to use printk, but beyond that I am lost. Can someone provide me with some directions? I need to know how to make the driver. To that end, I probably will have to install additional packages. After making the driver, I need to know how to install it over the existing driver. Jeff-- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user