Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* Sigmatel STAC9708/011
@ 2004-06-18  2:43 fmoraes74
  2004-06-18  9:35 ` Takashi Iwai
  0 siblings, 1 reply; 8+ messages in thread
From: fmoraes74 @ 2004-06-18  2:43 UTC (permalink / raw)
  To: alsa-devel


On ALSA 1.0.4, there was a control called Sigmatel on the mixer for the emu10k1x STAC9708/011 mixer.

Now, on ALSA 1.0.5a, the control is gone even though I could use it to control the volume of one of the hardware buffers.

Any reason for the removal? If the removal is needed, should I add it back?

Francisco

________________________________________________________________
The best thing to hit the Internet in years - NetZero HiSpeed!
Surf the Web up to FIVE TIMES FASTER!
Only $14.95/ month -visit www.netzero.com to sign up today!


-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Sigmatel STAC9708/011
  2004-06-18  2:43 fmoraes74
@ 2004-06-18  9:35 ` Takashi Iwai
  0 siblings, 0 replies; 8+ messages in thread
From: Takashi Iwai @ 2004-06-18  9:35 UTC (permalink / raw)
  To: fmoraes74@netzero.net; +Cc: alsa-devel

At Fri, 18 Jun 2004 02:43:55 GMT,
fmoraes74@netzero.net wrote:
> 
> 
> On ALSA 1.0.4, there was a control called Sigmatel on the mixer for
> the emu10k1x STAC9708/011 mixer. 
> 
> Now, on ALSA 1.0.5a, the control is gone even though I could use it
> to control the volume of one of the hardware buffers. 
> 
> Any reason for the removal? If the removal is needed, should I add it back?

Hmm?  It's still there.

In pci/ac97/ac97_codec.c:

static const ac97_codec_id_t snd_ac97_codec_ids[] = {
...
{ 0x83847608, 0xffffffff, "STAC9708/11",	patch_sigmatel_stac9708,	NULL },


Takashi


-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Sigmatel STAC9708/011
@ 2004-06-18 14:08 fmoraes74
  2004-06-18 14:26 ` Takashi Iwai
  0 siblings, 1 reply; 8+ messages in thread
From: fmoraes74 @ 2004-06-18 14:08 UTC (permalink / raw)
  To: tiwai; +Cc: fmoraes74, alsa-devel


Well, for some reason I don't see the control anymore on gnome-alsamixer or alsa-mixer. It used to be the last one displayed and it is not there anymore.

How can I debug this? I will take a look at the ac97 document but I was pretty sure about this.

Also, do you have any idea of why I am hearing noise/cracks when I record at 8Khz instead of 48Khz?

Francisco

-- Takashi Iwai <tiwai@suse.de> wrote:
At Fri, 18 Jun 2004 02:43:55 GMT,
fmoraes74@netzero.net wrote:
> 
> 
> On ALSA 1.0.4, there was a control called Sigmatel on the mixer for
> the emu10k1x STAC9708/011 mixer. 
> 
> Now, on ALSA 1.0.5a, the control is gone even though I could use it
> to control the volume of one of the hardware buffers. 
> 
> Any reason for the removal? If the removal is needed, should I add it back?

Hmm?  It's still there.

In pci/ac97/ac97_codec.c:

static const ac97_codec_id_t snd_ac97_codec_ids[] = {
...
{ 0x83847608, 0xffffffff, "STAC9708/11",	patch_sigmatel_stac9708,	NULL },


Takashi


-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel


________________________________________________________________
The best thing to hit the Internet in years - NetZero HiSpeed!
Surf the Web up to FIVE TIMES FASTER!
Only $14.95/ month -visit www.netzero.com to sign up today!


-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Sigmatel STAC9708/011
  2004-06-18 14:08 fmoraes74
@ 2004-06-18 14:26 ` Takashi Iwai
  0 siblings, 0 replies; 8+ messages in thread
From: Takashi Iwai @ 2004-06-18 14:26 UTC (permalink / raw)
  To: fmoraes74@netzero.net; +Cc: alsa-devel

At Fri, 18 Jun 2004 14:08:44 GMT,
fmoraes74@netzero.net wrote:
> 
> 
> Well, for some reason I don't see the control anymore on
> gnome-alsamixer or alsa-mixer. It used to be the last one displayed
> and it is not there anymore. 
> 
> How can I debug this? I will take a look at the ac97 document but I
> was pretty sure about this. 

Check the contents of /etc/asound.state after running alsactl store,
and see what's shown in the files /proc/asound/card0/codec97#0/*
files.

> 
> Also, do you have any idea of why I am hearing noise/cracks when I
> record at 8Khz instead of 48Khz? 

If it's a cracking noise, it's often the mismatch of the buffer/period
size between software and hardware, or the mismatch of the sampling
rate (hardware think it's 48k but software process in another rate).


Takashi


-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Sigmatel STAC9708/011
       [not found] <20040618.184617.7562.35674@webmail04.nyc.untd.com>
@ 2004-06-21  9:20 ` Takashi Iwai
  0 siblings, 0 replies; 8+ messages in thread
From: Takashi Iwai @ 2004-06-21  9:20 UTC (permalink / raw)
  To: fmoraes74@netzero.net; +Cc: alsa-devel

At Sat, 19 Jun 2004 01:45:38 GMT,
fmoraes74@netzero.net wrote:
> 
> 
> This seems to be the change that made it disappear:

Yes, I know.  It's the only relevant change since that time.

> 1.133 by tiwai
> 
> - added the global mutex for ac97_t (ad18xx mutex is removed).
>   used to protect paging and AD18xx multi-codecs.
> - set PAGE_INT register explicitly before accessing (for STAC9758).
> - moved ALC650 revision check to patch_alc650().
> - support stereo Mic playback.
> - moved STAC9708 quirk to patch_stac9708().
> - don't clear PC_BEEP high bits (ac97 2.3 sets frequency there).
> - avoid the unnecessary RESET-waiting for audio/modem codec.
> - fixed the evaluation of modem codec to call mpatch callback properly.
> - determine the SPDIF rate in the build path.
> - added suffix argument to snd_ac97_rename|remove|swap_ctl().
> - added snd_ac97_rename_vol_ctl().

What's exactly the symptom on your hardware?
Please show the information as I wrote in my previous mail...


> More specific, the check for the headphone control (register 0x04)
> seems to be incorrect as it was a funcional control before. I will
> play with it a bit more by adding my own control to write to that
> register, but it seems that the new code is not detecting this control
> anymore. 


thanks,

Takashi


-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Sigmatel STAC9708/011
       [not found] <20040621.064518.29553.50493@webmail24.nyc.untd.com>
@ 2004-06-21 13:57 ` Takashi Iwai
  0 siblings, 0 replies; 8+ messages in thread
From: Takashi Iwai @ 2004-06-21 13:57 UTC (permalink / raw)
  To: fmoraes74@netzero.net; +Cc: alsa-devel

At Mon, 21 Jun 2004 13:44:35 GMT,
fmoraes74@netzero.net wrote:
> 
> 
> > What's exactly the symptom on your hardware?
> > Please show the information as I wrote in my previous mail...
> 
> The headphone control (which used to be called Sigmatel) is not displayed anymore and I cannot change the volume of the Rear playback channel. I've verified this by adding the control in my driver code and I can control it again.

Again: PLEASE show the information as i wrote in my previous mail,
/etc/asound.state and /proc/asound/card0/codec97#0/* files.


Takashi

> 
> I am not sure what else you want to know, but if you rather no change the ac97 code back to the way it was, I can leave the control in my code.
> 
> Also, I've split the channels into separate PCM devices for now, because I wanted to test sending output to a specific device. Is that ok? It is the same as done with the Audigy LS.
> 
> I am trying to clean up the code a little bit and I've also added capture support and fixed a few bugs I found.
> 
> Francisco
> 
> ________________________________________________________________
> The best thing to hit the Internet in years - NetZero HiSpeed!
> Surf the Web up to FIVE TIMES FASTER!
> Only $14.95/ month -visit www.netzero.com to sign up today!
> 


-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Sigmatel STAC9708/011
@ 2004-06-22  0:01 fmoraes74
  2004-06-24 14:38 ` Takashi Iwai
  0 siblings, 1 reply; 8+ messages in thread
From: fmoraes74 @ 2004-06-22  0:01 UTC (permalink / raw)
  To: tiwai; +Cc: alsa-devel

[-- Attachment #1: Type: text/plain, Size: 579 bytes --]

> Again: PLEASE show the information as i wrote in my previous mail,
> /etc/asound.state and /proc/asound/card0/codec97#0/* files.

Here's the stuff you asked for. I unmuted all channels and maximized the sliders. Only register 0:04 is still muted as I explained before.

Also, I've split the channels into separate PCM devices for now, because I wanted to test sending output to a specific device. Is that ok? It is the same as done with the Audigy LS.
 
I am trying to clean up the code a little bit and I've also added capture support and fixed a few bugs I found.

Francisco

[-- Attachment #2: ac97#0-0+regs --]
[-- Type: application/octet-stream, Size: 768 bytes --]

0:00 = 6940
0:02 = 1212
0:04 = 8808
0:06 = 0000
0:08 = 0000
0:0a = 0000
0:0c = 0000
0:0e = 0000
0:10 = 0000
0:12 = 0000
0:14 = 0000
0:16 = 0000
0:18 = 1818
0:1a = 0000
0:1c = 0f0f
0:1e = 0000
0:20 = 0000
0:22 = 000f
0:24 = 0000
0:26 = 000f
0:28 = 0080
0:2a = 0080
0:2c = 0000
0:2e = 0000
0:30 = 0000
0:32 = 0000
0:34 = 0000
0:36 = 0000
0:38 = 0000
0:3a = 0000
0:3c = 0000
0:3e = 0000
0:40 = 0000
0:42 = 0000
0:44 = 0000
0:46 = 0000
0:48 = 0000
0:4a = 0000
0:4c = 0000
0:4e = 0000
0:50 = 0000
0:52 = 0000
0:54 = 0000
0:56 = 0000
0:58 = 0000
0:5a = 0000
0:5c = 0000
0:5e = 0000
0:60 = 0000
0:62 = 0000
0:64 = 0000
0:66 = 0000
0:68 = 0000
0:6a = 0000
0:6c = 00e1
0:6e = 0000
0:70 = 0000
0:72 = 8000
0:74 = 0380
0:76 = 0000
0:78 = 8380
0:7a = 0000
0:7c = 8384
0:7e = 7608

[-- Attachment #3: ac97#0-0 --]
[-- Type: application/octet-stream, Size: 422 bytes --]

0-0/0: SigmaTel STAC9708/11

Capabilities     :
DAC resolution   : 18-bit
ADC resolution   : 18-bit
3D enhancement   : SigmaTel 3D Enhancement

Current setup
Mic gain         : +0dB [+0dB]
POP path         : pre 3D
Sim. stereo      : off
3D enhancement   : off
Loudness         : off
Mono output      : MIX
Mic select       : Mic1
ADC/DAC loopback : off
Extended ID      : codec=0 rev=0 SDAC DSA=0
Extended status  : SDAC

[-- Attachment #4: asound.state --]
[-- Type: application/octet-stream, Size: 5320 bytes --]

state.EMU10K1X {
	control.1 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Master Playback Switch'
		value true
	}
	control.2 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 31'
		iface MIXER
		name 'Master Playback Volume'
		value.0 31
		value.1 31
	}
	control.3 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Surround Playback Switch'
		value.0 true
		value.1 true
	}
	control.4 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 31'
		iface MIXER
		name 'Surround Playback Volume'
		value.0 31
		value.1 31
	}
	control.5 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Master Mono Playback Switch'
		value true
	}
	control.6 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 31'
		iface MIXER
		name 'Master Mono Playback Volume'
		value 31
	}
	control.7 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'PC Speaker Playback Switch'
		value true
	}
	control.8 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 15'
		iface MIXER
		name 'PC Speaker Playback Volume'
		value 15
	}
	control.9 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Phone Playback Switch'
		value true
	}
	control.10 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 31'
		iface MIXER
		name 'Phone Playback Volume'
		value 31
	}
	control.11 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Mic Playback Switch'
		value true
	}
	control.12 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 31'
		iface MIXER
		name 'Mic Playback Volume'
		value 31
	}
	control.13 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Mic Boost (+20dB)'
		value false
	}
	control.14 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Line Playback Switch'
		value true
	}
	control.15 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 31'
		iface MIXER
		name 'Line Playback Volume'
		value.0 31
		value.1 31
	}
	control.16 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'CD Playback Switch'
		value true
	}
	control.17 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 31'
		iface MIXER
		name 'CD Playback Volume'
		value.0 31
		value.1 31
	}
	control.18 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Video Playback Switch'
		value true
	}
	control.19 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 31'
		iface MIXER
		name 'Video Playback Volume'
		value.0 31
		value.1 31
	}
	control.20 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Aux Playback Switch'
		value true
	}
	control.21 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 31'
		iface MIXER
		name 'Aux Playback Volume'
		value.0 31
		value.1 31
	}
	control.22 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'PCM Playback Switch'
		value true
	}
	control.23 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 31'
		iface MIXER
		name 'PCM Playback Volume'
		value.0 31
		value.1 31
	}
	control.24 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.item.0 Mic
		comment.item.1 CD
		comment.item.2 Video
		comment.item.3 Aux
		comment.item.4 Line
		comment.item.5 Mix
		comment.item.6 'Mix Mono'
		comment.item.7 Phone
		iface MIXER
		name 'Capture Source'
		value.0 Mic
		value.1 Mic
	}
	control.25 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Capture Switch'
		value true
	}
	control.26 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 15'
		iface MIXER
		name 'Capture Volume'
		value.0 15
		value.1 15
	}
	control.27 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.item.0 'pre 3D'
		comment.item.1 'post 3D'
		iface MIXER
		name 'PCM Out Path & Mute'
		value 'pre 3D'
	}
	control.28 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name '3D Control - Switch'
		value false
	}
	control.29 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.item.0 Mix
		comment.item.1 Mic
		iface MIXER
		name 'Mono Output Select'
		value Mix
	}
	control.30 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.item.0 Mic1
		comment.item.1 Mic2
		iface MIXER
		name 'Mic Select'
		value Mic1
	}
	control.31 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 3'
		iface MIXER
		name '3D Control Sigmatel - Depth'
		value 3
	}
	control.32 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 3'
		iface MIXER
		name '3D Control Sigmatel - Rear Depth'
		value 3
	}
	control.33 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Sigmatel 4-Speaker Stereo Playback Switch'
		value false
	}
	control.34 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Sigmatel Surround Phase Inversion Playback '
		value false
	}
	control.35 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'External Amplifier'
		value true
	}
}

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Sigmatel STAC9708/011
  2004-06-22  0:01 fmoraes74
@ 2004-06-24 14:38 ` Takashi Iwai
  0 siblings, 0 replies; 8+ messages in thread
From: Takashi Iwai @ 2004-06-24 14:38 UTC (permalink / raw)
  To: fmoraes74@netzero.net; +Cc: alsa-devel

[-- Attachment #1: Type: text/plain, Size: 436 bytes --]

At Tue, 22 Jun 2004 00:01:16 GMT,
fmoraes74@netzero.net wrote:
> 
> > Again: PLEASE show the information as i wrote in my previous mail,
> > /etc/asound.state and /proc/asound/card0/codec97#0/* files.
> 
> Here's the stuff you asked for. I unmuted all channels and maximized
> the sliders. Only register 0:04 is still muted as I explained before. 

I guess the attached patch fixes the problem.
Could you give a try?


thanks,

Takashi

[-- Attachment #2: Type: text/plain, Size: 672 bytes --]

Index: alsa-kernel/pci/ac97/ac97_patch.c
===================================================================
RCS file: /suse/tiwai/cvs/alsa/alsa-kernel/pci/ac97/ac97_patch.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -r1.52 -r1.53
--- alsa-kernel/pci/ac97/ac97_patch.c	30 May 2004 16:15:41 -0000	1.52
+++ alsa-kernel/pci/ac97/ac97_patch.c	23 Jun 2004 22:15:50 -0000	1.53
@@ -410,6 +410,7 @@
 	unsigned int codec72, codec6c;
 
 	ac97->build_ops = &patch_sigmatel_stac9708_ops;
+	ac97->caps |= 0x10;	/* HP (sigmatel surround) support */
 
 	codec72 = snd_ac97_read(ac97, AC97_SIGMATEL_BIAS2) & 0x8000;
 	codec6c = snd_ac97_read(ac97, AC97_SIGMATEL_ANALOG);

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-06-24 14:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20040621.064518.29553.50493@webmail24.nyc.untd.com>
2004-06-21 13:57 ` Sigmatel STAC9708/011 Takashi Iwai
2004-06-22  0:01 fmoraes74
2004-06-24 14:38 ` Takashi Iwai
     [not found] <20040618.184617.7562.35674@webmail04.nyc.untd.com>
2004-06-21  9:20 ` Takashi Iwai
  -- strict thread matches above, loose matches on Subject: below --
2004-06-18 14:08 fmoraes74
2004-06-18 14:26 ` Takashi Iwai
2004-06-18  2:43 fmoraes74
2004-06-18  9:35 ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox