Mailinglist Archive: opensuse (3232 mails)
| < Previous | Next > |
USB sound? How to make it work?
- From: Zhang Weiwu <zhangweiwu@xxxxxxxxxx>
- Date: Wed, 23 Aug 2006 10:27:58 +0000 (UTC)
- Message-id: <1156328992.5640.17.camel@xxxxxxxxxxxxxxxx>
Hello. My notebook have on-board sound card which is broken. I bought a
USB sound card for replacement. The problem is SuSE detects the old
on-board sound card and still use it for sound output, even if USB sound
card is plugged in.
How do I set SuSE to use my USB sound card as main sound device? I tried
to go to Gnome control panel, go to Sound effect, and there is NO
selection for which device to use for sound output (I checked it very
carefully).
I also try with mplayer by specifying second sound card with parameter:
yuliansu@esmeralda:~> mplayer -ao alsa:device=hw=1 test.wav
MPlayer 1.0pre7try3-SUSE Linux 10.1 (i686)-Packman-4.1.0 (C) 2000-2005
MPlayer Team
CPU: Intel (Family: 6, Stepping: 6)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with
--disable-runtime-cpudetection.
Failed to open /dev/rtc: Permission denied (it should be readable by the user.)
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0 : No such file or directory
Can't init input joystick
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: Connection refused
Failed to open LIRC support.
You will not be able to use your remote control.
Playing test.wav.
Audio file detected.
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
==========================================================================
Checking audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
AF_pre: 44100Hz/2ch/s16le
alsa-init: 1 soundcard found, using: hw:1
alsa-init: unable to set hw-parameters: Broken pipe
alsa-init: pcm prepare error: Broken pipe
alsa: 44100 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little Endian
AO: [alsa] 44100Hz 2ch s16le (2 bps)
Building audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
Video: no video
Starting playback...
alsa-play: unknown status, trying to reset soundcard
alsa-play: snd prepare errorA: -0.0 (00.0) ??,?% alsa-play: unknown status, trying to reset soundcard
alsa-play: snd prepare errorA: -0.0 (00.0) ??,?% alsa-play: unknown status, trying to reset soundcard
alsa-play: snd prepare errorA: -0.0 (00.0) ??,?% alsa-play: unknown status, trying to reset soundcard
alsa-play: snd prepare errorA: -0.0 (00.0) ??,?% alsa-play: unknown status, trying to reset soundcard
alsa-play: snd prepare errorA: -0.0 (00.0) ??,?% alsa-play: unknown status, trying to reset soundcard
alsa-play: snd prepare errorA: -0.0 (00.0) ??,?% alsa-play: unknown status, trying to reset soundcard
alsa-play: snd prepare errorA: -0.0 (00.0) ??,?% alsa-play: unknown status, trying to reset soundcard
[repeat the above error message forever at very high pace]
dmesg is full of something like this:
ALSA sound/usb/usbaudio.c:810: cannot submit datapipe for urb 0, err = -28
ALSA sound/core/oss/pcm_oss.c:579: snd_pcm_oss_prepare: SNDRV_PCM_IOCTL_PREPARE failed
ALSA sound/usb/usbaudio.c:810: cannot submit datapipe for urb 0, err = -28
ALSA sound/core/oss/pcm_oss.c:579: snd_pcm_oss_prepare: SNDRV_PCM_IOCTL_PREPARE failed
ALSA sound/usb/usbaudio.c:810: cannot submit datapipe for urb 0, err = -28
ALSA sound/core/oss/pcm_oss.c:579: snd_pcm_oss_prepare: SNDRV_PCM_IOCTL_PREPARE failed
I tried this on Ubuntu too, same result. Here is my lsusb:
yuliansu@esmeralda:~> lsusb
Bus 004 Device 005: ID 0d8c:000c C-Media Electronics, Inc. Audio Adapter
Bus 004 Device 004: ID 0d8c:000c C-Media Electronics, Inc. Audio Adapter
Bus 004 Device 002: ID 05e3:0606 Genesys Logic, Inc.
Bus 004 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 003: ID 0d62:a100 Darfon Electronics Corp. Benq Mouse
Bus 002 Device 001: ID 0000:0000
KDE have a small application which also give a lot of detail of the
sound card, however KDE do not allow me to copy-past this information.
KDE help said these sound card information are obtained from simply
reading /dev/sndstat and /proc/sound, both file are missing on my
system.
Any hint?
P.S. I also tried to use good-old oss, by using mpg123, package from
SuSE guru. I tried mpg123 -a /dev/dsp1 and was told only 'oss/alsa/esd'
can be used as -a parameter, which the manual says device name
like /dev/dsp1 IS THE CORRECT parameter for -a. Maybe I am getting old,
I feel my old knowledge no longer useful any more.
USB sound card for replacement. The problem is SuSE detects the old
on-board sound card and still use it for sound output, even if USB sound
card is plugged in.
How do I set SuSE to use my USB sound card as main sound device? I tried
to go to Gnome control panel, go to Sound effect, and there is NO
selection for which device to use for sound output (I checked it very
carefully).
I also try with mplayer by specifying second sound card with parameter:
yuliansu@esmeralda:~> mplayer -ao alsa:device=hw=1 test.wav
MPlayer 1.0pre7try3-SUSE Linux 10.1 (i686)-Packman-4.1.0 (C) 2000-2005
MPlayer Team
CPU: Intel (Family: 6, Stepping: 6)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with
--disable-runtime-cpudetection.
Failed to open /dev/rtc: Permission denied (it should be readable by the user.)
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0 : No such file or directory
Can't init input joystick
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: Connection refused
Failed to open LIRC support.
You will not be able to use your remote control.
Playing test.wav.
Audio file detected.
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
==========================================================================
Checking audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
AF_pre: 44100Hz/2ch/s16le
alsa-init: 1 soundcard found, using: hw:1
alsa-init: unable to set hw-parameters: Broken pipe
alsa-init: pcm prepare error: Broken pipe
alsa: 44100 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little Endian
AO: [alsa] 44100Hz 2ch s16le (2 bps)
Building audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
Video: no video
Starting playback...
alsa-play: unknown status, trying to reset soundcard
alsa-play: snd prepare errorA: -0.0 (00.0) ??,?% alsa-play: unknown status, trying to reset soundcard
alsa-play: snd prepare errorA: -0.0 (00.0) ??,?% alsa-play: unknown status, trying to reset soundcard
alsa-play: snd prepare errorA: -0.0 (00.0) ??,?% alsa-play: unknown status, trying to reset soundcard
alsa-play: snd prepare errorA: -0.0 (00.0) ??,?% alsa-play: unknown status, trying to reset soundcard
alsa-play: snd prepare errorA: -0.0 (00.0) ??,?% alsa-play: unknown status, trying to reset soundcard
alsa-play: snd prepare errorA: -0.0 (00.0) ??,?% alsa-play: unknown status, trying to reset soundcard
alsa-play: snd prepare errorA: -0.0 (00.0) ??,?% alsa-play: unknown status, trying to reset soundcard
[repeat the above error message forever at very high pace]
dmesg is full of something like this:
ALSA sound/usb/usbaudio.c:810: cannot submit datapipe for urb 0, err = -28
ALSA sound/core/oss/pcm_oss.c:579: snd_pcm_oss_prepare: SNDRV_PCM_IOCTL_PREPARE failed
ALSA sound/usb/usbaudio.c:810: cannot submit datapipe for urb 0, err = -28
ALSA sound/core/oss/pcm_oss.c:579: snd_pcm_oss_prepare: SNDRV_PCM_IOCTL_PREPARE failed
ALSA sound/usb/usbaudio.c:810: cannot submit datapipe for urb 0, err = -28
ALSA sound/core/oss/pcm_oss.c:579: snd_pcm_oss_prepare: SNDRV_PCM_IOCTL_PREPARE failed
I tried this on Ubuntu too, same result. Here is my lsusb:
yuliansu@esmeralda:~> lsusb
Bus 004 Device 005: ID 0d8c:000c C-Media Electronics, Inc. Audio Adapter
Bus 004 Device 004: ID 0d8c:000c C-Media Electronics, Inc. Audio Adapter
Bus 004 Device 002: ID 05e3:0606 Genesys Logic, Inc.
Bus 004 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 003: ID 0d62:a100 Darfon Electronics Corp. Benq Mouse
Bus 002 Device 001: ID 0000:0000
KDE have a small application which also give a lot of detail of the
sound card, however KDE do not allow me to copy-past this information.
KDE help said these sound card information are obtained from simply
reading /dev/sndstat and /proc/sound, both file are missing on my
system.
Any hint?
P.S. I also tried to use good-old oss, by using mpg123, package from
SuSE guru. I tried mpg123 -a /dev/dsp1 and was told only 'oss/alsa/esd'
can be used as -a parameter, which the manual says device name
like /dev/dsp1 IS THE CORRECT parameter for -a. Maybe I am getting old,
I feel my old knowledge no longer useful any more.
| < Previous | Next > |