Re: emu10k1 mute problems.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 8 Dec 2006, Oliver Schinagl wrote:

> Hi,
> 
> I am wondering if there's a bugzilla or some place to drop a bugreport 
> for my SBLive! (emu10k1)?
> 
> I have in my system 2 soundcards installed, an SBLive! emu10k1 (
> 00:0e.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 0a)
>         Subsystem: Creative Labs SBLive! Player 5.1
>         Flags: bus master, medium devsel, latency 32, IRQ 19
>         I/O ports at ef20 [size=32]
>         Capabilities: [dc] Power Management version 1
> )
> and an Onboard VIA audio thinger (
> 00:11.5 Multimedia audio controller: VIA Technologies, Inc. 
> VT8233/A/8235/8237 AC97 Audio Controller (rev 60)
>         Subsystem: ASUSTeK Computer Inc. Unknown device 810d
>         Flags: medium devsel, IRQ 20
>         I/O ports at 1000 [size=256]
>         Capabilities: [c0] Power Management version 2
> 
> )
> 
> on a gentoo 2.6.19-r1 kernel
> 
> Now they both are working but there's one thing that seems to be going 
> wrong. Since it only happens on the SBLive (the via onboard works as it 
> should) it must be a bug in the emu10k1 driver.
> 
> I use the following code to mute the left resp. right channels.
> 
>     snd_mixer_selem_set_playback_switch(elem, SND_MIXER_SCHN_FRONT_LEFT, 0);
>     snd_mixer_selem_set_playback_switch(elem, 
> SND_MIXER_SCHN_FRONT_RIGHT, 0);

Wrong code. You have to use snd_mixer_selem_set_playback_switch_all() if
snd_mixer_selem_has_playback_switch_joined() flag is set. Perhaps, single 
channel operations should return an error in this case to show the broken
part to application developers.

						Jaroslav

-----
Jaroslav Kysela <perex@xxxxxxx>
Linux Kernel Sound Maintainer
ALSA Project, SUSE Labs

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux