Skip to contentSkip to conversation

Patch - switching rate in STAC9460 codec of Prodigy192

PATCH Applied Pavel Hofman 2 participants 2 messages Dec 1, 2007 – Dec 3, 2007

lore
Share & tools
lore
#0 lore raw

Hi,

Here is a patch for switching rate in STAC9460 codec.

Thanks,

Pavel.

* support for switching rate in STAC9460 - using set_rate_val of the akm infrastructure
* listing all STAC9460 registers in proc
* disabling mpu401 device for Prodigy192 - otherwise the currently flawed mpu401 code hangs kernel when opening the midi device
* removing old unused commented-out code

i2c/other/ak4xxx-adda.c +4 -0
diff -r 7f4b25ff79d6 i2c/other/ak4xxx-adda.c
@@ -293,6 +293,10 @@ void snd_akm4xxx_init(struct snd_akm4xxx
 	case SND_AK5365:
 		/* FIXME: any init sequence? */
 		return;
+	case NON_AKM:
+		/* fake value for non-akm codecs using akm infrastructure
+		 * (e.g. of ice1724) - certainly FIXME */
+		return;
 	default:
 		snd_BUG();
 		return;
include/ak4xxx-adda.h +1 -1
diff -r 7f4b25ff79d6 include/ak4xxx-adda.h
@@ -68,7 +68,7 @@ struct snd_akm4xxx {
 	enum {
 		SND_AK4524, SND_AK4528, SND_AK4529,
 		SND_AK4355, SND_AK4358, SND_AK4381,
-		SND_AK5365
+		SND_AK5365, NON_AKM
 	} type;
 
 	/* (array) information of combined codecs */
pci/ice1712/ice1712.h +2 -0
diff -r 7f4b25ff79d6 pci/ice1712/ice1712.h
@@ -399,6 +399,8 @@ struct snd_ice1712 {
 		} juli;
 		struct {
 			struct ak4114 *ak4114;
+			/* rate change needs atomic mute/unmute of all dacs*/
+			struct mutex mute_mutex;
 		} prodigy192;
 		struct {
 			struct {
pci/ice1712/prodigy192.c +116 -155

355 lines not on this page · raw message

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

Applied
#1 lore raw

At Sat, 01 Dec 2007 13:07:16 +0100,

Quoted 12 lines · Pavel Hofman

Hi,

Here is a patch for switching rate in STAC9460 codec.

Thanks,

Pavel.

Quoted 7 lines

* support for switching rate in STAC9460 - using set_rate_val of the akm infrastructure
* listing all STAC9460 registers in proc
* disabling mpu401 device for Prodigy192 - otherwise the currently flawed mpu401 code
hangs kernel when opening the midi device
* removing old unused commented-out code

Applied. Thanks.

Though, the change to ak4xxx-adda isn't elegant as you noticed. The whole codec-dependent codes in ice1724 should be cleaned up later...

Takashi