Re: CMI8738 sound card - cannot hear sound in Lenny - SOLVED

2009-01-17 Thread Robert Canner
On Sat, 2009-01-17 at 00:07 +0100, Nigel Henry wrote:
 On Friday 16 January 2009 22:04, Robert Canner wrote:
  I've unmuted the Synth control in alsamixer, but I still can't hear any
  sound :-(
 
  Alsamixer now shows:
Master = 100,100 (but no mute/unmute box is shown)
3D Control = unmuted
PCM, Synth, Line, CD, Aux = 100,100, unmuted
Line-In= Rear Output
Mic= 0, muted
Mic Boost  = muted
Phone, PC Speaker = 100, unmuted
IEC958 {5V, Copyright, In Monitor,
  In Phase Inverse, In Select, In Valid, Loop,
  Mix Analog, Output} = unmuted
Exchange DAC, Four Channel Mode = unmuted
 
  By the way, alsamixer is not displaying any mute/unmute box for the
  Master control. Should I worry about this?
 
 No. My alsamixer on lenny shows no mute/unmute box, but it's a different 
 soundcard (Audigy2 soundblaster), and my alsamixer version shows as 1.0.16. 
 My alsa-utils package is 1.0.16-2, and that provides alsamixer, and other 
 stuff.
 
  (By comparison, the Wikipedia screenshot
  http://en.wikipedia.org/wiki/File:Alsamixer.png shows a mute/unmute box
  for the Master control. My Lenny box is using alsamixer v1.0.13.)
 
 That .png for alsamixer on the wiki is for a different soundcard than yours, 
 and all alsamixer controls are different, depending on your soundcard, so I'd 
 ignore that.
 
 It doesn't help that I'm unfamiliar with your C media soundcard, so I'm a bit 
 in the dark. Are there any switches showing on your alsamixer? For example on 
 mine for the audigy2 soundblaster card there is a switch to change from 
 analogue to digital output. If this is set to digital, I get no sound, but 
 toggling it to analog brings the sounds up.
 
 Perhaps you could post the output from running amixer on the CLI, just to see 
 what controls you have available.
 
 Someone else who is also using a C media card on Lenny, may also have some 
 suggestions, that may resolve your problem.
 
 Alternatively, there is the alsa-user mailing list, and someone there may 
 have 
 specific knowledge of known problems, and fixes for your card.
 
 All the best.
 
 Nigel.

Thanks Nigel, your clue about switches in alsamixer has done the trick.

I tried the following changes, testing each with speaker-test:
  mute '3D Control' -- still no sound
  change 'Line-In Mode' to 'Line In' -- still no sound
  mute 'Exchange DAC' -- pink noise heard on earphones :-)

At this stage, CD playback was audible, but highly distorted. Curious
about 'Exchange DAC', I Googled and found
https://www.linuxquestions.org/questions/linux-hardware-18/c-media-cmi8738-chipset-no-sound-267807/
which also mentioned deselecting 'IEC958 Output'. So in alsamixer I
tried muting 'IEC958 Output', which removed the distortion. Brilliant!

For the record, here's my amixer output after fixing the problem:
==
Simple mixer control 'Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 31 [100%]
  Front Right: Playback 31 [100%]
Simple mixer control '3D Control - Switch',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'PCM',0
  Capabilities: pvolume pswitch pswitch-joined cswitch
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Front Left: Playback 30 [97%] [on] Capture [off]
  Front Right: Playback 30 [97%] [on] Capture [off]
Simple mixer control 'Synth',0
  Capabilities: pvolume pswitch pswitch-joined cswitch
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Front Left: Playback 31 [100%] [on] Capture [on]
  Front Right: Playback 31 [100%] [on] Capture [on]
Simple mixer control 'Line',0
  Capabilities: pvolume pswitch cswitch
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Front Left: Playback 31 [100%] [on] Capture [on]
  Front Right: Playback 31 [100%] [on] Capture [on]
Simple mixer control 'Line-In Mode',0
  Capabilities: enum
  Items: 'Line-In' 'Rear Output'
  Item0: 'Rear Output'
Simple mixer control 'CD',0
  Capabilities: pvolume pswitch cswitch
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Front Left: Playback 31 [100%] [on] Capture [on]
  Front Right: Playback 31 [100%] [on] Capture [on]
Simple mixer control 'Mic',0
  Capabilities: pvolume pvolume-joined cvolume pswitch pswitch-joined
cswitch cswitch-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: Playback 0 - 31 Capture 0 - 7
  Mono: Playback 0 [0%] [off] Capture 0 [0%] [on]
Simple mixer control 'Mic Boost',0
  Capabilities: pswitch pswitch-joined cswitch cswitch-joined
  Playback channels: Mono
  Capture channels: Mono
  Mono: Playback [off] Capture [on]
Simple mixer control 'Phone',0
  Capabilities: pvolume pvolume-joined 

Re: CMI8738 sound card - cannot hear sound in Lenny - SOLVED

2009-01-17 Thread Nigel Henry
On Saturday 17 January 2009 16:37, Robert Canner wrote:
 On Sat, 2009-01-17 at 00:07 +0100, Nigel Henry wrote:
  On Friday 16 January 2009 22:04, Robert Canner wrote:
   I've unmuted the Synth control in alsamixer, but I still can't hear any
   sound :-(
  
   Alsamixer now shows:
 Master = 100,100 (but no mute/unmute box is shown)
 3D Control = unmuted
 PCM, Synth, Line, CD, Aux = 100,100, unmuted
 Line-In= Rear Output
 Mic= 0, muted
 Mic Boost  = muted
 Phone, PC Speaker = 100, unmuted
 IEC958 {5V, Copyright, In Monitor,
   In Phase Inverse, In Select, In Valid, Loop,
   Mix Analog, Output} = unmuted
 Exchange DAC, Four Channel Mode = unmuted
  
   By the way, alsamixer is not displaying any mute/unmute box for the
   Master control. Should I worry about this?
 
  No. My alsamixer on lenny shows no mute/unmute box, but it's a different
  soundcard (Audigy2 soundblaster), and my alsamixer version shows as
  1.0.16. My alsa-utils package is 1.0.16-2, and that provides alsamixer,
  and other stuff.
 
   (By comparison, the Wikipedia screenshot
   http://en.wikipedia.org/wiki/File:Alsamixer.png shows a mute/unmute box
   for the Master control. My Lenny box is using alsamixer v1.0.13.)
 
  That .png for alsamixer on the wiki is for a different soundcard than
  yours, and all alsamixer controls are different, depending on your
  soundcard, so I'd ignore that.
 
  It doesn't help that I'm unfamiliar with your C media soundcard, so I'm a
  bit in the dark. Are there any switches showing on your alsamixer? For
  example on mine for the audigy2 soundblaster card there is a switch to
  change from analogue to digital output. If this is set to digital, I get
  no sound, but toggling it to analog brings the sounds up.
 
  Perhaps you could post the output from running amixer on the CLI, just to
  see what controls you have available.
 
  Someone else who is also using a C media card on Lenny, may also have
  some suggestions, that may resolve your problem.
 
  Alternatively, there is the alsa-user mailing list, and someone there may
  have specific knowledge of known problems, and fixes for your card.
 
  All the best.
 
  Nigel.

 Thanks Nigel, your clue about switches in alsamixer has done the trick.

 I tried the following changes, testing each with speaker-test:
   mute '3D Control' -- still no sound
   change 'Line-In Mode' to 'Line In' -- still no sound
   mute 'Exchange DAC' -- pink noise heard on earphones :-)

 At this stage, CD playback was audible, but highly distorted. Curious
 about 'Exchange DAC', I Googled and found
 https://www.linuxquestions.org/questions/linux-hardware-18/c-media-cmi8738-
chipset-no-sound-267807/ which also mentioned deselecting 'IEC958 Output'.
 So in alsamixer I tried muting 'IEC958 Output', which removed the
 distortion. Brilliant!

 For the record, here's my amixer output after fixing the problem:
snip
 Once again, many thanks,
 Robert

Hi Robert.

Great that the problem is resolved, and happy to have helped. Keep a written 
note of the fixes, as you may need them again.

All the best, and enjoy the sounds.

Nigel.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: CMI8738 sound card - cannot hear sound in Lenny

2009-01-16 Thread Robert Canner
On Fri, 2009-01-16 at 01:04 +0100, Nigel Henry wrote: 
 On Friday 16 January 2009 00:10, Robert Canner wrote:
  Hi folks,
 
  I've installed a CMI8738 PCI sound card (C-Media 8738) on my dual-boot
  machine. When I boot Windows, I can hear sound, but when I boot
  GNU/Linux, I can't hear any sound.
[... snip ...]
  ==
  $ uname -a
  Linux mercury 2.6.18-6-686 #1 SMP Fri Dec 12 16:48:28 UTC 2008 i686
  GNU/Linux
  ==
  $ groups
  robert dialout cdrom floppy audio video plugdev netdev powerdev
  ==
 
  $ lspci -v
  ...
  02:00.0 Multimedia audio controller: C-Media Electronics Inc CM8738 (rev
  10)
  Subsystem: C-Media Electronics Inc CMI8738/C3DX PCI Audio Device
  Flags: bus master, medium devsel, latency 32, IRQ 209
  I/O ports at b800 [size=256]
  Capabilities: access denied
  ==
  $ cat /proc/asound/cards
   0 [CMI8738]: CMI8738 - C-Media PCI CMI8738
C-Media PCI CMI8738 (model 37) at 0xb800, irq 209
  [ ... snip ...]
 
 Hi Robert.
 
 Well the cards being detected according to /proc/asound/cards, and you're a 
 member of the audio group. The card is supported with the alsa driver 1.0.16, 
 which comes with Lenny, see below.
 
  Module snd-cmipci
   -
 
 Module for C-Media CMI8338/8738/8768/8770 PCI sound cards.
 
 mpu_port- port address of MIDI interface (8338 only):
 0x300,0x310,0x320,0x330 = legacy port,
 0 = disable (default)
 fm_port - port address of OPL-3 FM synthesizer (8x38 only):
 0x388 = legacy port,
 1 = integrated PCI port (default on 8738),
 0 = disable
 soft_ac3- Software-conversion of raw SPDIF packets (model 033 only)
   (default = 1)
 joystick_port - Joystick port address (0 = disable, 1 = auto-detect)
 
 This module supports autoprobe and multiple cards.
 
 The power-management is supported.
 
 You may just need to open alsamixer in Gnomes terminal, and check the sound 
 levels, or for any controls that may be muted. the M key toggles the 
 mute/unmute.
 
 Running the command, speaker-test , without the quotes, should give you 
 some 
 pink noise output from your speakers (CTRL +C to quit speaker-test), if all 
 the levels are ok, and nothing is muted that should be unmuted. The usual 
 controls that need to be up are, Master, PCM, Front, CD.
 
 I don't use Gnome, but KDE, but it's worth right clicking on Gnomes volume 
 control (top right), and see if anythings muted. I'm not sure if it's a right 
 or left click, but there should also be a button for the mixer there as well.

 Sorry for the lack of info, but it's getting a bit late here in
northern 
 france, and I'm about to crash out.

Many thanks Nigel, I hope you slept well :-)

First, Gnome Volume Control looks OK. (Master, PCM, Line-in, CD and PC
Speaker are all unmuted, with sliders at the top. Microphone is muted,
but I don't have a microphone connected anyway.)

I've never used alsamixer before -- here is what I see:
  PCM, Line, CD, Phone = 100, 100, unmuted
  Synth = 100, 100, muted
  Master = 100, 100 (**but no mute/unmute box is shown**)
  3D Contr = unmuted (but no volume box is shown)

And speaker-test gives following **error messages**:
==
speaker-test 1.0.13

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave
Playback open error: -16,Device or resource busy
   [... repeated until I hit Ctrl-C]
===

Next I listed open files (after reading
http://www.debianhelp.org/node/12012 ):
==
$ lsof -w | egrep 'snd|dsp|NAME'
COMMANDPID  USER  ...   NODE NAME
esd   3169robert  ...   5675 /dev/dsp
mixer_app 3241robert  ...   5685 /dev/snd/controlC0
==
and killed the 'esd' process.
   Then I tried speaker-test again:
==
speaker-test 1.0.13

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 2048 to 16384
Period size range from 1024 to 1024
Using max buffer size 16384
Periods = 4
was set period_size = 1024
was set buffer_size = 16384
0 - Front Left
Time per period = 2.664647
0 - Front Left
Time per period = 2.985804
0 - Front Left
Time per period = 2.985816
0 - Front Left
Time per period = 2.985820
==
  ... but I still can't hear any sound.

Has anyone any further ideas?

Thank you very much,
Robert


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: CMI8738 sound card - cannot hear sound in Lenny

2009-01-16 Thread Nigel Henry
On Friday 16 January 2009 14:13, Robert Canner wrote:
 On Fri, 2009-01-16 at 01:04 +0100, Nigel Henry wrote:
  On Friday 16 January 2009 00:10, Robert Canner wrote:
   Hi folks,
  
   I've installed a CMI8738 PCI sound card (C-Media 8738) on my dual-boot
   machine. When I boot Windows, I can hear sound, but when I boot
   GNU/Linux, I can't hear any sound.
 [... snip ...]
   ==
   $ uname -a
   Linux mercury 2.6.18-6-686 #1 SMP Fri Dec 12 16:48:28 UTC 2008 i686
   GNU/Linux
   ==
   $ groups
   robert dialout cdrom floppy audio video plugdev netdev powerdev
   ==
  
   $ lspci -v
   ...
   02:00.0 Multimedia audio controller: C-Media Electronics Inc CM8738
   (rev 10)
   Subsystem: C-Media Electronics Inc CMI8738/C3DX PCI Audio
   Device Flags: bus master, medium devsel, latency 32, IRQ 209
   I/O ports at b800 [size=256]
   Capabilities: access denied
   ==
   $ cat /proc/asound/cards
0 [CMI8738]: CMI8738 - C-Media PCI CMI8738
 C-Media PCI CMI8738 (model 37) at 0xb800, irq 209
   [ ... snip ...]
 
  Hi Robert.
 
  Well the cards being detected according to /proc/asound/cards, and you're
  a member of the audio group. The card is supported with the alsa driver
  1.0.16, which comes with Lenny, see below.
 
   Module snd-cmipci
-
 
  Module for C-Media CMI8338/8738/8768/8770 PCI sound cards.
 
  mpu_port- port address of MIDI interface (8338 only):
  0x300,0x310,0x320,0x330 = legacy port,
  0 = disable (default)
  fm_port - port address of OPL-3 FM synthesizer (8x38 only):
  0x388 = legacy port,
  1 = integrated PCI port (default on 8738),
  0 = disable
  soft_ac3- Software-conversion of raw SPDIF packets (model 033
  only) (default = 1)
  joystick_port - Joystick port address (0 = disable, 1 = auto-detect)
 
  This module supports autoprobe and multiple cards.
 
  The power-management is supported.
 
  You may just need to open alsamixer in Gnomes terminal, and check the
  sound levels, or for any controls that may be muted. the M key toggles
  the mute/unmute.
 
  Running the command, speaker-test , without the quotes, should give you
  some pink noise output from your speakers (CTRL +C to quit speaker-test),
  if all the levels are ok, and nothing is muted that should be unmuted.
  The usual controls that need to be up are, Master, PCM, Front, CD.
 
  I don't use Gnome, but KDE, but it's worth right clicking on Gnomes
  volume control (top right), and see if anythings muted. I'm not sure if
  it's a right or left click, but there should also be a button for the
  mixer there as well.
 
  Sorry for the lack of info, but it's getting a bit late here in

 northern

  france, and I'm about to crash out.

 Many thanks Nigel, I hope you slept well :-)

 First, Gnome Volume Control looks OK. (Master, PCM, Line-in, CD and PC
 Speaker are all unmuted, with sliders at the top. Microphone is muted,
 but I don't have a microphone connected anyway.)

 I've never used alsamixer before -- here is what I see:
   PCM, Line, CD, Phone = 100, 100, unmuted
   Synth = 100, 100, muted
   Master = 100, 100 (**but no mute/unmute box is shown**)
   3D Contr = unmuted (but no volume box is shown)

 And speaker-test gives following **error messages**:
 ==
 speaker-test 1.0.13

 Playback device is default
 Stream parameters are 48000Hz, S16_LE, 1 channels
 Using 16 octaves of pink noise
 ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave
 Playback open error: -16,Device or resource busy
[... repeated until I hit Ctrl-C]
 ===

 Next I listed open files (after reading
 http://www.debianhelp.org/node/12012 ):
 ==
 $ lsof -w | egrep 'snd|dsp|NAME'
 COMMANDPID  USER  ...   NODE NAME
 esd   3169robert  ...   5675 /dev/dsp
 mixer_app 3241robert  ...   5685 /dev/snd/controlC0
 ==
 and killed the 'esd' process.
Then I tried speaker-test again:
 ==
 speaker-test 1.0.13

 Playback device is default
 Stream parameters are 48000Hz, S16_LE, 1 channels
 Using 16 octaves of pink noise
 Rate set to 48000Hz (requested 48000Hz)
 Buffer size range from 2048 to 16384
 Period size range from 1024 to 1024
 Using max buffer size 16384
 Periods = 4
 was set period_size = 1024
 was set buffer_size = 16384
 0 - Front Left
 Time per period = 2.664647
 0 - Front Left
 Time per period = 2.985804
 0 - Front Left
 Time per period = 2.985816
 0 - Front Left
 Time per period = 2.985820
 ==
   ... but I still can't hear any sound.

 Has anyone any further ideas?

 Thank you very much,
 Robert

Hi Robert.

I'd try unmuting that synth control. Strange name as it is, it does have 
control over sound output. Pull the slider down a bit before unmuting it, 
just in case your ears get damaged.

If that does work, you may have to disable ESD in Gnomes audio settings, 
otherwise it may grab /dev/dsp, preventing other audio apps playing directly 
through alsa. I get the same with KDE's aRts 

Re: CMI8738 sound card - cannot hear sound in Lenny

2009-01-16 Thread Robert Canner
I've unmuted the Synth control in alsamixer, but I still can't hear any
sound :-(

Alsamixer now shows:
  Master = 100,100 (but no mute/unmute box is shown)
  3D Control = unmuted
  PCM, Synth, Line, CD, Aux = 100,100, unmuted
  Line-In= Rear Output
  Mic= 0, muted
  Mic Boost  = muted
  Phone, PC Speaker = 100, unmuted
  IEC958 {5V, Copyright, In Monitor, 
In Phase Inverse, In Select, In Valid, Loop,
Mix Analog, Output} = unmuted
  Exchange DAC, Four Channel Mode = unmuted

By the way, alsamixer is not displaying any mute/unmute box for the
Master control. Should I worry about this?

(By comparison, the Wikipedia screenshot
http://en.wikipedia.org/wiki/File:Alsamixer.png shows a mute/unmute box
for the Master control. My Lenny box is using alsamixer v1.0.13.)

On Fri, 2009-01-16 at 15:37 +0100, Nigel Henry wrote:
 On Friday 16 January 2009 14:13, Robert Canner wrote:
  On Fri, 2009-01-16 at 01:04 +0100, Nigel Henry wrote:
   On Friday 16 January 2009 00:10, Robert Canner wrote:
Hi folks,
   
I've installed a CMI8738 PCI sound card (C-Media 8738) on my dual-boot
machine. When I boot Windows, I can hear sound, but when I boot
GNU/Linux, I can't hear any sound.
  [... snip ...]
==
$ uname -a
Linux mercury 2.6.18-6-686 #1 SMP Fri Dec 12 16:48:28 UTC 2008 i686
GNU/Linux
==
$ groups
robert dialout cdrom floppy audio video plugdev netdev powerdev
==
   
$ lspci -v
...
02:00.0 Multimedia audio controller: C-Media Electronics Inc CM8738
(rev 10)
Subsystem: C-Media Electronics Inc CMI8738/C3DX PCI Audio
Device Flags: bus master, medium devsel, latency 32, IRQ 209
I/O ports at b800 [size=256]
Capabilities: access denied
==
$ cat /proc/asound/cards
 0 [CMI8738]: CMI8738 - C-Media PCI CMI8738
  C-Media PCI CMI8738 (model 37) at 0xb800, irq 209
[ ... snip ...]
  
   Hi Robert.
  
   Well the cards being detected according to /proc/asound/cards, and you're
   a member of the audio group. The card is supported with the alsa driver
   1.0.16, which comes with Lenny, see below.
  
Module snd-cmipci
 -
  
   Module for C-Media CMI8338/8738/8768/8770 PCI sound cards.
  
   mpu_port- port address of MIDI interface (8338 only):
   0x300,0x310,0x320,0x330 = legacy port,
   0 = disable (default)
   fm_port - port address of OPL-3 FM synthesizer (8x38 only):
   0x388 = legacy port,
   1 = integrated PCI port (default on 8738),
   0 = disable
   soft_ac3- Software-conversion of raw SPDIF packets (model 033
   only) (default = 1)
   joystick_port - Joystick port address (0 = disable, 1 = auto-detect)
  
   This module supports autoprobe and multiple cards.
  
   The power-management is supported.
  
   You may just need to open alsamixer in Gnomes terminal, and check the
   sound levels, or for any controls that may be muted. the M key toggles
   the mute/unmute.
  
   Running the command, speaker-test , without the quotes, should give you
   some pink noise output from your speakers (CTRL +C to quit speaker-test),
   if all the levels are ok, and nothing is muted that should be unmuted.
   The usual controls that need to be up are, Master, PCM, Front, CD.
  
   I don't use Gnome, but KDE, but it's worth right clicking on Gnomes
   volume control (top right), and see if anythings muted. I'm not sure if
   it's a right or left click, but there should also be a button for the
   mixer there as well.
  
   Sorry for the lack of info, but it's getting a bit late here in
 
  northern
 
   france, and I'm about to crash out.
 
  Many thanks Nigel, I hope you slept well :-)
 
  First, Gnome Volume Control looks OK. (Master, PCM, Line-in, CD and PC
  Speaker are all unmuted, with sliders at the top. Microphone is muted,
  but I don't have a microphone connected anyway.)
 
  I've never used alsamixer before -- here is what I see:
PCM, Line, CD, Phone = 100, 100, unmuted
Synth = 100, 100, muted
Master = 100, 100 (**but no mute/unmute box is shown**)
3D Contr = unmuted (but no volume box is shown)
 
  And speaker-test gives following **error messages**:
  ==
  speaker-test 1.0.13
 
  Playback device is default
  Stream parameters are 48000Hz, S16_LE, 1 channels
  Using 16 octaves of pink noise
  ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave
  Playback open error: -16,Device or resource busy
 [... repeated until I hit Ctrl-C]
  ===
 
  Next I listed open files (after reading
  http://www.debianhelp.org/node/12012 ):
  ==
  $ lsof -w | egrep 'snd|dsp|NAME'
  COMMANDPID  USER  ...   NODE NAME
  esd   3169robert  ...   5675 /dev/dsp
  mixer_app 3241robert  ...   5685 /dev/snd/controlC0
  ==
  and killed the 'esd' process.
 Then I tried speaker-test again:
  ==
  speaker-test 1.0.13
 
  Playback device is default
  Stream 

Re: CMI8738 sound card - cannot hear sound in Lenny

2009-01-16 Thread Nigel Henry
On Friday 16 January 2009 22:04, Robert Canner wrote:
 I've unmuted the Synth control in alsamixer, but I still can't hear any
 sound :-(

 Alsamixer now shows:
   Master = 100,100 (but no mute/unmute box is shown)
   3D Control = unmuted
   PCM, Synth, Line, CD, Aux = 100,100, unmuted
   Line-In= Rear Output
   Mic= 0, muted
   Mic Boost  = muted
   Phone, PC Speaker = 100, unmuted
   IEC958 {5V, Copyright, In Monitor,
 In Phase Inverse, In Select, In Valid, Loop,
 Mix Analog, Output} = unmuted
   Exchange DAC, Four Channel Mode = unmuted

 By the way, alsamixer is not displaying any mute/unmute box for the
 Master control. Should I worry about this?

No. My alsamixer on lenny shows no mute/unmute box, but it's a different 
soundcard (Audigy2 soundblaster), and my alsamixer version shows as 1.0.16. 
My alsa-utils package is 1.0.16-2, and that provides alsamixer, and other 
stuff.

 (By comparison, the Wikipedia screenshot
 http://en.wikipedia.org/wiki/File:Alsamixer.png shows a mute/unmute box
 for the Master control. My Lenny box is using alsamixer v1.0.13.)

That .png for alsamixer on the wiki is for a different soundcard than yours, 
and all alsamixer controls are different, depending on your soundcard, so I'd 
ignore that.

It doesn't help that I'm unfamiliar with your C media soundcard, so I'm a bit 
in the dark. Are there any switches showing on your alsamixer? For example on 
mine for the audigy2 soundblaster card there is a switch to change from 
analogue to digital output. If this is set to digital, I get no sound, but 
toggling it to analog brings the sounds up.

Perhaps you could post the output from running amixer on the CLI, just to see 
what controls you have available.

Someone else who is also using a C media card on Lenny, may also have some 
suggestions, that may resolve your problem.

Alternatively, there is the alsa-user mailing list, and someone there may have 
specific knowledge of known problems, and fixes for your card.

All the best.

Nigel.




-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



CMI8738 sound card - cannot hear sound in Lenny

2009-01-15 Thread Robert Canner
Hi folks,

I've installed a CMI8738 PCI sound card (C-Media 8738) on my dual-boot
machine. When I boot Windows, I can hear sound, but when I boot
GNU/Linux, I can't hear any sound.
  I have tried 3 different ways of generating sound:
(1) Gnome Desktop|Preferences|Sound|enable System Sounds
(2) Gnome CD Player
(3) $ cat /usr/share/sounds/alsa/Front_Center.wav /dev/dsp
bash: /dev/dsp: Device or resource busy

The motherboard (Intel D865GBF) has an on-board sound system, which I
disabled in the BIOS setup before installing the CMI8738 card.

==
$ uname -a
Linux mercury 2.6.18-6-686 #1 SMP Fri Dec 12 16:48:28 UTC 2008 i686
GNU/Linux
==
$ groups
robert dialout cdrom floppy audio video plugdev netdev powerdev
==
$ dmesg
Linux version 2.6.18-6-686 (Debian 2.6.18.dfsg.1-23etch1)
(da...@debian.org) (gcc version 4.1.2 20061115 (prerelease) (Debian
4.1.1-21)) #1 SMP Fri Dec 12 16:48:28 UTC 2008
BIOS-provided physical RAM map:
 BIOS-e820:  - 0009fc00 (usable)
 BIOS-e820: 0009fc00 - 000a (reserved)
 BIOS-e820: 000e6000 - 0010 (reserved)
 BIOS-e820: 0010 - 3ef3 (usable)
 BIOS-e820: 3ef3 - 3ef4 (ACPI data)
 BIOS-e820: 3ef4 - 3eff (ACPI NVS)
 BIOS-e820: 3eff - 3f00 (reserved)
 BIOS-e820: fecf - fecf1000 (reserved)
 BIOS-e820: fed2 - feda (reserved)
111MB HIGHMEM available.
896MB LOWMEM available.
found SMP MP-table at 000ff780
On node 0 totalpages: 257840
  DMA zone: 4096 pages, LIFO batch:0
  Normal zone: 225280 pages, LIFO batch:31
  HighMem zone: 28464 pages, LIFO batch:7
DMI 2.3 present.
ACPI: RSDP (v000 ACPIAM) @ 0x000f58f0
ACPI: RSDT (v001 INTEL  D865GBF  0x20030423 MSFT 0x0097) @
0x3ef3
ACPI: FADT (v002 INTEL  D865GBF  0x20030423 MSFT 0x0097) @
0x3ef30200
ACPI: MADT (v001 INTEL  D865GBF  0x20030423 MSFT 0x0097) @
0x3ef30300
ACPI: WDDT (v001 INTEL  OEMWDDT  0x0001 MSFT 0x010d) @
0x3ef35244
ACPI: DSDT (v001 INTEL  D865GBF  0x0001 MSFT 0x010d) @
0x
ACPI: PM-Timer IO Port: 0x408
ACPI: Local APIC address 0xfee0
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled)
Processor #0 15:2 APIC version 20
ACPI: LAPIC (acpi_id[0x02] lapic_id[0x01] disabled)
ACPI: LAPIC_NMI (acpi_id[0x01] dfl dfl lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x02] dfl dfl lint[0x1])
ACPI: IOAPIC (id[0x02] address[0xfec0] gsi_base[0])
IOAPIC[0]: apic_id 2, version 32, address 0xfec0, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ9 used by override.
Enabling APIC mode:  Flat.  Using 1 I/O APICs
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at 4000 (gap: 3f00:bfcf)
Detected 3192.413 MHz processor.
Built 1 zonelists.  Total pages: 257840
Kernel command line: root=/dev/hda3 ro
mapped APIC to d000 (fee0)
mapped IOAPIC to c000 (fec0)
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 16384 bytes)
Console: colour VGA+ 80x25
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1014368k/1031360k available (1543k kernel code, 16324k reserved,
578k data, 196k init, 113856k highmem)
Checking if this processor honours the WP bit even in supervisor mode...
Ok.
Calibrating delay using timer specific routine.. 6389.15 BogoMIPS
(lpj=12778319)
Security Framework v1.0.0 initialized
SELinux:  Disabled at boot.
Capability LSM initialized
Mount-cache hash table entries: 512
CPU: After generic identify, caps: bfebfbff   
4400  
CPU: After vendor identify, caps: bfebfbff   
4400  
CPU: Trace cache: 12K uops, L1 D cache: 8K
CPU: L2 cache: 512K
CPU: Physical Processor ID: 0
CPU: After all inits, caps: bfebfbff   0080 4400
 
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU0: Intel P4/Xeon Extended MCE MSRs (12) available
CPU0: Thermal monitoring enabled
Compat vDSO mapped to e000.
Checking 'hlt' instruction... OK.
SMP alternatives: switching to UP code
Freeing SMP alternatives: 12k freed
ACPI: Core revision 20060707
CPU0: Intel(R) Pentium(R) 4 CPU 3.20GHz stepping 09
Total of 1 processors activated (6389.15 BogoMIPS).
ENABLING IO-APIC IRQs
..TIMER: vector=0x31 apic1=0 pin1=2 apic2=-1 pin2=-1
Brought up 1 CPUs
migration_cost=0
checking if image is initramfs... it is
Freeing initrd memory: 4780k freed
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: PCI BIOS revision 2.10 entry at 0xf0031, 

Re: CMI8738 sound card - cannot hear sound in Lenny

2009-01-15 Thread Nigel Henry
On Friday 16 January 2009 00:10, Robert Canner wrote:
 Hi folks,

 I've installed a CMI8738 PCI sound card (C-Media 8738) on my dual-boot
 machine. When I boot Windows, I can hear sound, but when I boot
 GNU/Linux, I can't hear any sound.
   I have tried 3 different ways of generating sound:
 (1) Gnome Desktop|Preferences|Sound|enable System Sounds
 (2) Gnome CD Player
 (3) $ cat /usr/share/sounds/alsa/Front_Center.wav /dev/dsp
 bash: /dev/dsp: Device or resource busy

 The motherboard (Intel D865GBF) has an on-board sound system, which I
 disabled in the BIOS setup before installing the CMI8738 card.

 ==
 $ uname -a
 Linux mercury 2.6.18-6-686 #1 SMP Fri Dec 12 16:48:28 UTC 2008 i686
 GNU/Linux
 ==
 $ groups
 robert dialout cdrom floppy audio video plugdev netdev powerdev
 ==

 $ lspci -v
 ...
 02:00.0 Multimedia audio controller: C-Media Electronics Inc CM8738 (rev
 10)
 Subsystem: C-Media Electronics Inc CMI8738/C3DX PCI Audio Device
 Flags: bus master, medium devsel, latency 32, IRQ 209
 I/O ports at b800 [size=256]
 Capabilities: access denied
 ==
 $ cat /proc/asound/cards
  0 [CMI8738]: CMI8738 - C-Media PCI CMI8738
   C-Media PCI CMI8738 (model 37) at 0xb800, irq 209
 ==
 $ cat /proc/interrupts
CPU0
   0: 103538IO-APIC-edge  timer
   1:691IO-APIC-edge  i8042
   6:  5IO-APIC-edge  floppy
   7:  0IO-APIC-edge  parport0
   8:  1IO-APIC-edge  rtc
   9:  1   IO-APIC-level  acpi
  12:  29611IO-APIC-edge  i8042
  14:  11577IO-APIC-edge  ide0
  15:   1192IO-APIC-edge  ide1
 169:  27570   IO-APIC-level  uhci_hcd:usb1, uhci_hcd:usb4,
 i...@pci::00:02.0
 177:  0   IO-APIC-level  uhci_hcd:usb2
 185:247   IO-APIC-level  uhci_hcd:usb3, libata, eth1
 193: 23   IO-APIC-level  ehci_hcd:usb5
 209:155   IO-APIC-level  CMI8738
 NMI:  0
 LOC: 103501
 ERR:  0
 MIS:  0
 ==

 Thank you very much,
 Robert Canner
 London, UK

Hi Robert.

Well the cards being detected according to /proc/asound/cards, and you're a 
member of the audio group. The card is supported with the alsa driver 1.0.16, 
which comes with Lenny, see below.

 Module snd-cmipci
  -

Module for C-Media CMI8338/8738/8768/8770 PCI sound cards.

mpu_port- port address of MIDI interface (8338 only):
0x300,0x310,0x320,0x330 = legacy port,
0 = disable (default)
fm_port - port address of OPL-3 FM synthesizer (8x38 only):
0x388 = legacy port,
1 = integrated PCI port (default on 8738),
0 = disable
soft_ac3- Software-conversion of raw SPDIF packets (model 033 only)
  (default = 1)
joystick_port - Joystick port address (0 = disable, 1 = auto-detect)

This module supports autoprobe and multiple cards.

The power-management is supported.

You may just need to open alsamixer in Gnomes terminal, and check the sound 
levels, or for any controls that may be muted. the M key toggles the 
mute/unmute.

Running the command, speaker-test , without the quotes, should give you some 
pink noise output from your speakers (CTRL +C to quit speaker-test), if all 
the levels are ok, and nothing is muted that should be unmuted. The usual 
controls that need to be up are, Master, PCM, Front, CD.

I don't use Gnome, but KDE, but it's worth right clicking on Gnomes volume 
control (top right), and see if anythings muted. I'm not sure if it's a right 
or left click, but there should also be a button for the mixer there as well.

Sorry for the lack of info, but it's getting a bit late here in northern 
france, and I'm about to crash out.

All the best.

Nigel.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org