[alsa-devel] Alsa Issue - Sound playback starts on left speaker only
Hello,
I am having an issue with my playback application where upon playback start, only the left speaker is outputted. But if I mute and unmute (either through my application or using alsamixer), the sound playback resumes on both left and right speakers. This only happens on a particular system too (out of 5 systems). But I know it is my issue because mplayer or smplayer works fine.
I believe I am setting the correct HW params (ie. 2 channels), etc.
Any ideas?
Thanks!
Ashwin.Chandra@corel.com wrote:
Hello,
I am having an issue with my playback application where upon playback start, only the left speaker is outputted. But if I mute and unmute (either through my application or using alsamixer), the sound playback resumes on both left and right speakers. This only happens on a particular system too (out of 5 systems). But I know it is my issue because mplayer or smplayer works fine.
I believe I am setting the correct HW params (ie. 2 channels), etc.
Any ideas?
Thanks!
The ICE1724 driver has exactly this behavior. It is a known bug and has been there for years. You don't say what chip is having the problem, but I would guess that this is it. Most people just program a script to adjust the volume at startup to cure it.
I have an Intel ALC861VD. Other players (mplayer, smplayer, aplay) don't seem to exhibit this problem. Is there any workaround I can do in my application so that upon first time sound playback, I can get it to play on both channels?
-----Original Message----- From: stan [mailto:ghjeold_i_mwee@cox.net] Sent: Tuesday, June 24, 2008 1:25 AM To: Ashwin Chandra Cc: alsa-devel@alsa-project.org Subject: Re: [alsa-devel] Alsa Issue - Sound playback starts on left speaker only
Ashwin.Chandra@corel.com wrote:
Hello,
I am having an issue with my playback application where upon playback start, only the left speaker is outputted. But if I mute and unmute (either through my application or using alsamixer), the sound playback resumes on both left and right speakers. This only happens on a particular system too (out of 5 systems). But I know it is my issue because mplayer or smplayer works fine.
I believe I am setting the correct HW params (ie. 2 channels), etc.
Any ideas?
Thanks!
The ICE1724 driver has exactly this behavior. It is a known bug and has
been there for years. You don't say what chip is having the problem, but I would guess that this is it. Most people just program a script to adjust the volume at startup to cure it.
At Wed, 25 Jun 2008 01:52:16 +0800, Ashwin.Chandra@corel.com wrote:
I have an Intel ALC861VD. Other players (mplayer, smplayer, aplay) don't seem to exhibit this problem. Is there any workaround I can do in my application so that upon first time sound playback, I can get it to play on both channels?
Check /proc/asound/card0/pcm0p/sub0/* files and compare between working and non-working states. I guess the working case uses OSS emulation or 16bit format.
If so, try to add the following to ~/.asoundrc:
defaults.pcm.dmix.format S16_LE
Takashi
-----Original Message----- From: stan [mailto:ghjeold_i_mwee@cox.net] Sent: Tuesday, June 24, 2008 1:25 AM To: Ashwin Chandra Cc: alsa-devel@alsa-project.org Subject: Re: [alsa-devel] Alsa Issue - Sound playback starts on left speaker only
Ashwin.Chandra@corel.com wrote:
Hello,
I am having an issue with my playback application where upon playback start, only the left speaker is outputted. But if I mute and unmute (either through my application or using alsamixer), the sound playback resumes on both left and right speakers. This only happens on a particular system too (out of 5 systems). But I know it is my issue because mplayer or smplayer works fine.
I believe I am setting the correct HW params (ie. 2 channels), etc.
Any ideas?
Thanks!
The ICE1724 driver has exactly this behavior. It is a known bug and has
been there for years. You don't say what chip is having the problem, but I would guess that this is it. Most people just program a script to adjust the volume at startup to cure it. _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Hi Takashi, Thanks for your info. I took readouts of both modes and notice they are both in 16LE format but mplayer/smplayer is using oss emulation. Is there a way to try them with native Alsa? I have attached the dumps. Is there anything I can do for this (besides switch to OSS)?
-----Original Message----- From: Takashi Iwai [mailto:tiwai@suse.de] Sent: Wednesday, June 25, 2008 3:23 AM To: Ashwin Chandra Cc: alsa-devel@alsa-project.org Subject: Re: [alsa-devel] Alsa Issue - Sound playback starts on left speaker only
At Wed, 25 Jun 2008 01:52:16 +0800, Ashwin.Chandra@corel.com wrote:
I have an Intel ALC861VD. Other players (mplayer, smplayer, aplay)
don't
seem to exhibit this problem. Is there any workaround I can do in my application so that upon first time sound playback, I can get it to
play
on both channels?
Check /proc/asound/card0/pcm0p/sub0/* files and compare between working and non-working states. I guess the working case uses OSS emulation or 16bit format.
If so, try to add the following to ~/.asoundrc:
defaults.pcm.dmix.format S16_LE
Takashi
-----Original Message----- From: stan [mailto:ghjeold_i_mwee@cox.net] Sent: Tuesday, June 24, 2008 1:25 AM To: Ashwin Chandra Cc: alsa-devel@alsa-project.org Subject: Re: [alsa-devel] Alsa Issue - Sound playback starts on left speaker only
Ashwin.Chandra@corel.com wrote:
Hello,
I am having an issue with my playback application where upon
playback
start, only the left speaker is outputted. But if I mute and unmute (either through my application or using alsamixer), the sound
playback
resumes on both left and right speakers. This only happens on a particular system too (out of 5 systems). But I know it is my issue because mplayer or smplayer works fine.
I believe I am setting the correct HW params (ie. 2 channels), etc.
Any ideas?
Thanks!
The ICE1724 driver has exactly this behavior. It is a known bug and
has
been there for years. You don't say what chip is having the problem, but I would guess that this is it. Most people just program a script to adjust the volume at startup to cure it. _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Hi Takashi, Some more findings: mplayer run in alsa native mode doesn't have the issue. A dump of /proc/asound/.../sub0/* is identical in both my player and mplayer-alsa mode, yet mine still suffers from left speaker issue. Is there something I am not setting properly?
-----Original Message----- From: Takashi Iwai [mailto:tiwai@suse.de] Sent: Wednesday, June 25, 2008 3:23 AM To: Ashwin Chandra Cc: alsa-devel@alsa-project.org Subject: Re: [alsa-devel] Alsa Issue - Sound playback starts on left speaker only
At Wed, 25 Jun 2008 01:52:16 +0800, Ashwin.Chandra@corel.com wrote:
I have an Intel ALC861VD. Other players (mplayer, smplayer, aplay)
don't
seem to exhibit this problem. Is there any workaround I can do in my application so that upon first time sound playback, I can get it to
play
on both channels?
Check /proc/asound/card0/pcm0p/sub0/* files and compare between working and non-working states. I guess the working case uses OSS emulation or 16bit format.
If so, try to add the following to ~/.asoundrc:
defaults.pcm.dmix.format S16_LE
Takashi
-----Original Message----- From: stan [mailto:ghjeold_i_mwee@cox.net] Sent: Tuesday, June 24, 2008 1:25 AM To: Ashwin Chandra Cc: alsa-devel@alsa-project.org Subject: Re: [alsa-devel] Alsa Issue - Sound playback starts on left speaker only
Ashwin.Chandra@corel.com wrote:
Hello,
I am having an issue with my playback application where upon
playback
start, only the left speaker is outputted. But if I mute and unmute (either through my application or using alsamixer), the sound
playback
resumes on both left and right speakers. This only happens on a particular system too (out of 5 systems). But I know it is my issue because mplayer or smplayer works fine.
I believe I am setting the correct HW params (ie. 2 channels), etc.
Any ideas?
Thanks!
The ICE1724 driver has exactly this behavior. It is a known bug and
has
been there for years. You don't say what chip is having the problem, but I would guess that this is it. Most people just program a script to adjust the volume at startup to cure it. _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
At Tue, 24 Jun 2008 01:25:11 -0700, stan wrote:
Ashwin.Chandra@corel.com wrote:
Hello,
I am having an issue with my playback application where upon playback start, only the left speaker is outputted. But if I mute and unmute (either through my application or using alsamixer), the sound playback resumes on both left and right speakers. This only happens on a particular system too (out of 5 systems). But I know it is my issue because mplayer or smplayer works fine.
I believe I am setting the correct HW params (ie. 2 channels), etc.
Any ideas?
Thanks!
The ICE1724 driver has exactly this behavior. It is a known bug and has been there for years. You don't say what chip is having the problem, but I would guess that this is it. Most people just program a script to adjust the volume at startup to cure it.
Well, this is likely a different problem. The case of envy24* drivers, the problem is the initialization of the registers via I2C/SPI. But, in the case of HD-audio, this can't be the case.
I fixed a similar case with VIA HD-audio codecs by limiting the supported PCM formats to 16. The 24 bit format was buggy on them. Possibly a similar situation.
Takashi
The ICE1724 driver has exactly this behavior. It is a known bug and has been there for years. You don't say what chip is having the problem, but I would guess that this is it. Most people just program a script to adjust the volume at startup to cure it.
Well, this is likely a different problem. The case of envy24* drivers, the problem is the initialization of the registers via I2C/SPI. But, in the case of HD-audio, this can't be the case.
Is this bug still in git alsa? I thought it was already fixed. Which cards does it afflict?
Thanks,
Pavel Hofman.
At Wed, 25 Jun 2008 11:38:49 +0200, Pavel Hofman wrote:
The ICE1724 driver has exactly this behavior. It is a known bug and has been there for years. You don't say what chip is having the problem, but I would guess that this is it. Most people just program a script to adjust the volume at startup to cure it.
Well, this is likely a different problem. The case of envy24* drivers, the problem is the initialization of the registers via I2C/SPI. But, in the case of HD-audio, this can't be the case.
Is this bug still in git alsa? I thought it was already fixed. Which cards does it afflict?
AFAIK, revo71 had this kind of problem, and I don't remember any fixes about this.
Takashi
Pavel Hofman wrote:
The ICE1724 driver has exactly this behavior. It is a known bug and has been there for years. You don't say what chip is having the problem, but I would guess that this is it. Most people just program a script to adjust the volume at startup to cure it.
Well, this is likely a different problem. The case of envy24* drivers, the problem is the initialization of the registers via I2C/SPI. But, in the case of HD-audio, this can't be the case.
Is this bug still in git alsa? I thought it was already fixed. Which cards does it afflict?
Thanks,
Pavel Hofman.
It is present for my Revolution 5.1 card.
participants (4)
-
Ashwin.Chandra@corel.com
-
Pavel Hofman
-
stan
-
Takashi Iwai