All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kailang <kailang@realtek.com>
To: Takashi Iwai <tiwai@suse.de>, George Gugulea <gugulea@gmail.com>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>
Subject: Re: No sound after suspend-to-ram
Date: Fri, 23 Oct 2015 08:28:13 +0000	[thread overview]
Message-ID: <6FAB7C47BCF00940BB0999A99BE3547A17A236B9@RTITMBSV09.realtek.com.tw> (raw)
In-Reply-To: <s5hsi52ujmp.wl-tiwai@suse.de>


Was speaker no sound only? Or Headphone also no sound. 

> -----Original Message-----
> From: Takashi Iwai [mailto:tiwai@suse.de] 
> Sent: Friday, October 23, 2015 3:31 PM
> To: George Gugulea
> Cc: Kailang; alsa-devel@alsa-project.org
> Subject: Re: [alsa-devel] No sound after suspend-to-ram
> 
> On Thu, 22 Oct 2015 23:23:05 +0200,
> George Gugulea wrote:
> > 
> > I did now with 4.3.0-rc6 and there is the same problem.
> > I reattached the two outputs, before and after (as a patch) 
> suspend-to-ram:
> > diff -u alsa-info.txt.4.3-rc6.before alsa-info.txt.4.3-rc6.after > 
> > alsa-info.txt.4.3-rc6.patch
> 
> OK, so we need to hunt more.
> 
> Kailang, could you check whether anything missing for this codec?
> The symptom appears like the COEF thingy you fixed by extra 
> init verbs.
> 
> 
> thanks,
> 
> Takashi
> 
> > 
> > 
> > 
> > On Thu, Oct 22, 2015 at 6:15 PM, Takashi Iwai <tiwai@suse.de> wrote:
> > > On Thu, 22 Oct 2015 10:38:37 +0200,
> > > George Gugulea wrote:
> > >>
> > >> After a fresh reboot, the sound works ok but if I put 
> the computer 
> > >> to sleep (pm-suspend), after it wakes up there is no 
> sound anymore.
> > >>
> > >> I did try 'alsa force-reload' after suspend but still no sound.
> > >> After 'pm-hibernate' sound is back again.
> > >>
> > >> I found an old thread here:
> > >> https://bugzilla.kernel.org/show_bug.cgi?id=49421 where Michael 
> > >> seems to have the same problem which is still unsolved; 
> maybe I can 
> > >> help with more info.
> > >>
> > >> I attached the 'alsa-info.sh' output before and after suspend:
> > >> 'alsa-info.txt.before' and 'alsa-info.txt.after' (as a patch to 
> > >> stay below 80k mail size rule: diff -u alsa-info.txt.before 
> > >> alsa-info.txt.after > alsa-info.txt.patch)
> > >>
> > >> The only difference between before and after is this one:
> > >> @@ -241,7 +241,7 @@
> > >>  Node 0x11 [Audio Input] wcaps 0x10051b: Stereo Amp-In
> > >>    Amp-In caps: ofs=0x11, nsteps=0x2e, stepsize=0x03, mute=1
> > >>    Amp-In vals:  [0x12 0x12]
> > >> -  Converter: stream=4, channel=0
> > >> +  Converter: stream=0, channel=0
> > >>    SDI-Select: 0
> > >>    PCM:
> > >>      rates [0x160]: 44100 48000 96000
> > >>
> > >>
> > >> The PC is here: 
> > >> http://www.dell.com/us/p/xps-27-2720-aio/pd?ref=PD_OC,
> > >> but the 2y older version with no touch
> > >>
> > >> If I boot into windows (8.1) everything works great, including 
> > >> sound (even after suspend)
> > >
> > > Did you test with 4.3-rc kernel?  3.19 is very old.
> > >
> > > It's likely codec-specific stuff, as there is no 
> difference seen in 
> > > alsa-info.sh outputs (the converter is the value assigned 
> > > dynamically at playback, so it doesn't matter at all).
> > >
> > >
> > > Takashi
> > 
> > 
> > 
> > --
> > gg
> > [2 alsa-info.txt.4.3-rc6.before <application/octet-stream (base64)>]
> > 
> > --- alsa-info.txt.4.3-rc6.before	2015-10-22 
> 23:41:24.265081408 +0300
> > +++ alsa-info.txt.4.3-rc6.after	2015-10-22 
> 23:46:30.584791012 +0300
> > @@ -3,7 +3,7 @@
> >  !!ALSA Information Script v 0.4.64
> >  !!################################
> >  
> > -!!Script ran on: Thu Oct 22 20:41:23 UTC 2015
> > +!!Script ran on: Thu Oct 22 20:46:30 UTC 2015
> >  
> >  
> >  !!Linux Distribution
> > @@ -142,26 +142,26 @@
> >      ControlAmp: chs=3, dir=Out, idx=0, ofs=0
> >    Device: name="ALC3260 Analog", type="Audio", device=0
> >    Amp-Out caps: ofs=0x3f, nsteps=0x40, stepsize=0x03, mute=0
> > -  Amp-Out vals:  [0x25 0x25]
> > -  Converter: stream=5, channel=0
> > +  Amp-Out vals:  [0x21 0x21]
> > +  Converter: stream=0, channel=0
> >    PCM:
> >      rates [0x560]: 44100 48000 96000 192000
> >      bits [0xe]: 16 20 24
> >      formats [0x1]: PCM
> >    Power states:  D0 D1 D2 D3 EPSS
> > -  Power: setting=D0, actual=D0
> > +  Power: setting=D3, actual=D3
> >  Node 0x03 [Audio Output] wcaps 0x41d: Stereo Amp-Out
> >    Control: name="Speaker Playback Volume", index=0, device=0
> >      ControlAmp: chs=3, dir=Out, idx=0, ofs=0
> >    Amp-Out caps: ofs=0x3f, nsteps=0x40, stepsize=0x03, mute=0
> > -  Amp-Out vals:  [0x25 0x25]
> > -  Converter: stream=5, channel=0
> > +  Amp-Out vals:  [0x21 0x21]
> > +  Converter: stream=0, channel=0
> >    PCM:
> >      rates [0x560]: 44100 48000 96000 192000
> >      bits [0xe]: 16 20 24
> >      formats [0x1]: PCM
> >    Power states:  D0 D1 D2 D3 EPSS
> > -  Power: setting=D0, actual=D0
> > +  Power: setting=D3, actual=D3
> >  Node 0x04 [Vendor Defined Widget] wcaps 0xf00000: Mono  Node 0x05 
> > [Vendor Defined Widget] wcaps 0xf00000: Mono  Node 0x06 
> [Audio Output] 
> > wcaps 0x611: Stereo Digital @@ -182,7 +182,7 @@
> >      ControlAmp: chs=3, dir=In, idx=0, ofs=0
> >    Device: name="ALC3260 Analog", type="Audio", device=0
> >    Amp-In caps: ofs=0x11, nsteps=0x2e, stepsize=0x03, mute=1
> > -  Amp-In vals:  [0x11 0x11]
> > +  Amp-In vals:  [0x10 0x10]
> >    Converter: stream=0, channel=0
> >    SDI-Select: 0
> >    PCM:
> > @@ -240,7 +240,7 @@
> >  Node 0x10 [Vendor Defined Widget] wcaps 0xf00000: Mono  Node 0x11 
> > [Audio Input] wcaps 0x10051b: Stereo Amp-In
> >    Amp-In caps: ofs=0x11, nsteps=0x2e, stepsize=0x03, mute=1
> > -  Amp-In vals:  [0x11 0x11]
> > +  Amp-In vals:  [0x10 0x10]
> >    Converter: stream=1, channel=0
> >    SDI-Select: 0
> >    PCM:
> > @@ -288,7 +288,7 @@
> >      Misc = NO_PRESENCE
> >    Pin-ctls: 0x40: OUT
> >    Power states:  D0 D1 D2 D3 EPSS
> > -  Power: setting=D0, actual=D0
> > +  Power: setting=D3, actual=D3
> >    Connection: 2
> >       0x0c 0x0d*
> >  Node 0x15 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out @@ -531,8 
> > +531,8 @@  crw-rw----+ 1 root audio 116,  2 Oct 22 23:40 
> > /dev/snd/controlC0  crw-rw----+ 1 root audio 116,  6 Oct 22 23:40 
> > /dev/snd/hwC0D0  crw-rw----+ 1 root audio 116,  7 Oct 22 23:40 
> > /dev/snd/hwC0D3
> > -crw-rw----+ 1 root audio 116,  4 Oct 22 23:40 /dev/snd/pcmC0D0c
> > -crw-rw----+ 1 root audio 116,  3 Oct 22 23:40 /dev/snd/pcmC0D0p
> > +crw-rw----+ 1 root audio 116,  4 Oct 22 23:46 /dev/snd/pcmC0D0c
> > +crw-rw----+ 1 root audio 116,  3 Oct 22 23:45 /dev/snd/pcmC0D0p
> >  crw-rw----+ 1 root audio 116,  5 Oct 22 23:40 /dev/snd/pcmC0D3p  
> > crw-rw----+ 1 root audio 116,  1 Oct 22 23:40 /dev/snd/seq  
> > crw-rw----+ 1 root audio 116, 33 Oct 22 23:40 
> /dev/snd/timer @@ -578,7 
> > +578,7 @@
> >    Capabilities: pvolume pvolume-joined pswitch pswitch-joined
> >    Playback channels: Mono
> >    Limits: Playback 0 - 64
> > -  Mono: Playback 38 [59%] [-26.00dB] [on]
> > +  Mono: Playback 34 [53%] [-30.00dB] [on]
> >  Simple mixer control 'Headphone',0
> >    Capabilities: pvolume pswitch
> >    Playback channels: Front Left - Front Right @@ -598,8 +598,8 @@
> >    Playback channels: Front Left - Front Right
> >    Limits: Playback 0 - 255
> >    Mono:
> > -  Front Left: Playback 255 [100%] [0.00dB]
> > -  Front Right: Playback 255 [100%] [0.00dB]
> > +  Front Left: Playback 253 [99%] [-0.40dB]  Front Right: 
> Playback 253 
> > + [99%] [-0.40dB]
> >  Simple mixer control 'Mic',0
> >    Capabilities: pvolume pswitch
> >    Playback channels: Front Left - Front Right @@ -629,8 +629,8 @@
> >    Capabilities: cvolume cswitch
> >    Capture channels: Front Left - Front Right
> >    Limits: Capture 0 - 46
> > -  Front Left: Capture 17 [37%] [0.00dB] [on]
> > -  Front Right: Capture 17 [37%] [0.00dB] [on]
> > +  Front Left: Capture 16 [35%] [-1.00dB] [on]  Front 
> Right: Capture 
> > + 16 [35%] [-1.00dB] [on]
> >  Simple mixer control 'Auto-Mute Mode',0
> >    Capabilities: enum
> >    Items: 'Disabled' 'Enabled'
> > @@ -745,8 +745,8 @@
> >  	control.8 {
> >  		iface MIXER
> >  		name 'Capture Volume'
> > -		value.0 17
> > -		value.1 17
> > +		value.0 16
> > +		value.1 16
> >  		comment {
> >  			access 'read write'
> >  			type INTEGER
> > @@ -754,8 +754,8 @@
> >  			range '0 - 46'
> >  			dbmin -1700
> >  			dbmax 2900
> > -			dbvalue.0 0
> > -			dbvalue.1 0
> > +			dbvalue.0 -100
> > +			dbvalue.1 -100
> >  		}
> >  	}
> >  	control.9 {
> > @@ -804,7 +804,7 @@
> >  	control.12 {
> >  		iface MIXER
> >  		name 'Master Playback Volume'
> > -		value 38
> > +		value 34
> >  		comment {
> >  			access 'read write'
> >  			type INTEGER
> > @@ -812,7 +812,7 @@
> >  			range '0 - 64'
> >  			dbmin -6400
> >  			dbmax 0
> > -			dbvalue.0 -2600
> > +			dbvalue.0 -3000
> >  		}
> >  	}
> >  	control.13 {
> > @@ -999,8 +999,8 @@
> >  	control.29 {
> >  		iface MIXER
> >  		name 'PCM Playback Volume'
> > -		value.0 255
> > -		value.1 255
> > +		value.0 253
> > +		value.1 253
> >  		comment {
> >  			access 'read write user'
> >  			type INTEGER
> > @@ -1009,8 +1009,8 @@
> >  			tlv '0000000100000008ffffec1400000014'
> >  			dbmin -5100
> >  			dbmax 0
> > -			dbvalue.0 0
> > -			dbvalue.1 0
> > +			dbvalue.0 -40
> > +			dbvalue.1 -40
> >  		}
> >  	}
> >  }
> > @@ -1021,6 +1021,8 @@
> >  !!------------------
> >  
> >  Module
> > +alx
> > +mdio
> >  cmac
> >  rfcomm
> >  bnep
> > @@ -1131,11 +1133,9 @@
> >  psmouse
> >  ahci
> >  sdhci_pci
> > -alx
> >  rtsx_pci
> >  libahci
> >  sdhci
> > -mdio
> >  floppy
> >  
> >  
> > _______________________________________________
> > Alsa-devel mailing list
> > Alsa-devel@alsa-project.org
> > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> 
> ------Please consider the environment before printing this e-mail.
> 

  parent reply	other threads:[~2015-10-23  8:28 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-22  8:38 No sound after suspend-to-ram George Gugulea
2015-10-22 15:15 ` Takashi Iwai
2015-10-22 21:23   ` George Gugulea
2015-10-23  7:30     ` Takashi Iwai
2015-10-23  7:34       ` Takashi Iwai
2015-10-23  8:28       ` Kailang [this message]
2015-10-23 22:01         ` George Gugulea
2015-10-24  7:38           ` Takashi Iwai
2015-10-26  3:20             ` Kailang
2015-10-26  7:00             ` Kailang
2015-10-26  7:13               ` Takashi Iwai
     [not found]                 ` <6FAB7C47BCF00940BB0999A99BE3547A17A237D4@RTITMBSV09.realtek.com.tw>
2015-10-26  9:00                   ` George Gugulea
2015-10-26 11:39                   ` Takashi Iwai
2015-10-26 21:51                     ` George Gugulea
2015-10-27  6:50                       ` Takashi Iwai
  -- strict thread matches above, loose matches on Subject: below --
2015-10-21 17:29 George Gugulea

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6FAB7C47BCF00940BB0999A99BE3547A17A236B9@RTITMBSV09.realtek.com.tw \
    --to=kailang@realtek.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=gugulea@gmail.com \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is 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.