M-Audio Revolution 5.1 - new hardware information
Hello,
today is my birthday and I got a shiny new multimeter as a present. Using this new toy, I was able to squeeze a bit more information out of my M-Audio revolution 5.1 board.
1. Input channels:
The AK5365 ADC allows to select its input from 5 different channels. Using the multimeter I can see that at least channels 1 and 2 are used. I think 1 is the microphone and 2 is line-in, but this is hard to say because the lines vanish under some bulky capacitors where it is hard to follow them.
The input select lines SEL0, SEL1, SEL2 are all pulled to ground, which means that the input channel can be selected via register 0x01.
It would be nice if the ALSA driver would get a control to select the input channel (it just needs to allow to set the lower three bits of register 0x01). This should be easy.
2. PT2258 Volume Controller:
The board contains a PT2258 Volume Controller chip, which is currently, I think, not accessible using the ALSA driver. Originally I hoped that this chip could be used to enable the headphone output, but it does not seem to be the case. From following the connections I think that this chip is used to enable analog loopback of the input lines to some output channel. At least input 1 leads very close to the CD-input line.
All six channels are connected to something.
I could find the following direct connections:
PT2258, pin 6 (SCL) <-> VT1722, pin 59 (GPIO 7)
PT2258, pin 7 (SDA) <-> VT1722, pin 58 (GPIO 6)The address select lines CODE1 and CODE2 seem to be pulled to GND.
So we can control this volume controller by playing with GPIO 6 and
7. This project will be a bit more challenging. One has to shift the data to the chip bit by bit, we have to use pin 6 as the clock (max 100kbit/s), pin 7 is only allowed to change while 6 is low and the chip read the data while 6 is high. After every byte the chips sends back one acknoledge bit. And the chip wants a 200ms delay after power up. The data sheet is at
http://www.princeton.com.tw/webSite/downloadprocess/downloadfile.asp?mydownload=PT2258_2.pdf
It would be nice if the ALSA driver would allow access to these volume controls.
All things I found out about the card, including the information above, is collected on my web page at
http://seehuhn.de/comp/hardware/revolution
Comments are very welcome.
I hope this helps,
Jochen
Signature · 1 line
http://seehuhn.de/
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
Hello,
Quoted 7 lines · Jochen Voss
1. Input channels:
[...]
It would be nice if the ALSA driver would get a control to select the input channel (it just needs to allow to set the lower three bits of register
0x01). This should be easy.
The patch I sent separately solves this problem.
Quoted 12 lines
2. PT2258 Volume Controller:
[...]
So we can control this volume controller by playing with GPIO 6 and
7. This project will be a bit more challenging. One has to shift the data to the chip bit by bit, we have to use pin 6 as the clock (max 100kbit/s), pin 7 is only allowed to change while 6 is low and the chip read the data while 6 is high. After every byte the chips sends back one acknoledge bit. And the chip wants a 200ms delay after power up. The data sheet is at
Quoted 4 lines
http://www.princeton.com.tw/webSite/downloadprocess/downloadfile.asp?mydownload=PT2258_2.pdf
It would be nice if the ALSA driver would allow access to these volume controls.
I will need a bit of help with this. Is there any driver which implements a similar serial protocol which I could look at to learn how to do this?
Many thanks,
Jochen
Signature · 1 line
http://seehuhn.de/
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
RFC PATCH 1/1 enable analog loopback for Revolution 5.1
Hello,
Quoted 1 line · Jochen Voss
I will need a bit of help with this.
Seems that this was not true. Appended is a preliminary patch for review. It is only marginally tested, but seems to work. I am aware that storage of the 'struct revo51_pt2258' needs to be fixed.
Question:
1) are the control element names ok?
2) why does the TLV stuff not work?
3) At the moment I stuffed everything into "revo.c". Can it stay there? Or where shall it go?
4) Is the locking ok?
5) The specs state that we should wait at least 200ms after power on before talking to the PT2258. Is this 200ms after the VT1722 is initialised, or is this 200ms after the machine boots? What do we need to do about this?
6) Are the udelays ok?
All the best,
Jochen
alsa-kernel/pci/ice1712/ice1712.h +8 -0
@@ -462,6 +462,14 @@snd_ice1712_gpio_write (ice, mask & bits); } +static inline int snd_ice1712_gpio_read_bits (struct snd_ice1712 *ice, +unsigned int mask) +{ + ice->gpio.direction &= ~mask; +snd_ice1712_gpio_set_dir (ice, ice->gpio.direction); +return (snd_ice1712_gpio_read (ice) & mask); +} +int snd_ice1712_spdif_build_controls (struct snd_ice1712 *ice); int snd_ice1712_akm4xxx_init(struct snd_akm4xxx *ak, const struct snd_akm4xxx *template,
Only in alsa-driver-hg20060929/alsa-kernel/pci/ice1712: pt2258.c
alsa-kernel/pci/ice1712/revo.c +327 -10
381 lines not on this page · raw message
alsa-kernel/pci/ice1712/revo.h +4 -2
@@ -42,9 +42,11 @@#define VT1724_REVO_CCLK 0x02#define VT1724_REVO_CDIN 0x04/* not used */ #define VT1724_REVO_CDOUT 0x08 -#define VT1724_REVO_CS0 0x10/* AK5365 chipselect for Rev. 5.1 */ +#define VT1724_REVO_CS0 0x10/* AK5365 chipselect for (revo51) */ #define VT1724_REVO_CS1 0x20/* front AKM4381 chipselect */ -#define VT1724_REVO_CS2 0x40/* surround AKM4355 chipselect */ +#define VT1724_REVO_CS2 0x40/* surround AKM4355 CS (revo71) */ +#define VT1724_REVO_I2C_DATA 0x40/* I2C: PT 2258 SDA (on revo51) */ +#define VT1724_REVO_I2C_CLOCK 0x80/* I2C: PT 2258 SCL (on revo51) */ #define VT1724_REVO_MUTE (1<<22)/* 0 = all mute, 1 = normal operation */ #endif /* __SOUND_REVO_H */
config.log +8 -3
@@ -4,7 +4,7 @@ It was created by configure, which was generated by GNU Autoconf 2.60. Invocation command line was - $ ./configure --with-isapnp=no --with-kernel=/usr/src/linux/ --with-cards=ice1724,via82xx,usb-audio + $ ./configure --with-isapnp=no --with-kernel=/usr/src/linux/ --with-cards=ice1724,via82xx,usb-audio,ice1712 ## --------- ## ## Platform. ##
@@ -1454,7 +1454,7 @@ configure:12075: $? = 0 configure:12077: result: yes configure:12100: checking for which soundcards to compile driver for -configure:14007: result: ice1724 via82xx usb-audio +configure:14007: result: ice1724 via82xx usb-audio ice1712 configure:15336: creating ./config.status ## ---------------------- ##
@@ -1483,9 +1483,13 @@ config.status:843: creating utils/alsasound.posix config.status:843: creating include/pci_ids_compat.h config.status:843: creating include/config.h +config.status:1119: include/config.h is unchanged config.status:843: creating include/config1.h +config.status:1119: include/config1.h is unchanged config.status:843: creating include/version.h +config.status:1119: include/version.h is unchanged config.status:843: creating include/autoconf-extra.h +config.status:1119: include/autoconf-extra.h is unchanged ## ---------------- ## ## Cache variables. ##
@@ -1645,7 +1649,7 @@ CONFIG_SND_HDSPM='' CONFIG_SND_HPET='' CONFIG_SND_HWDEP='m' -CONFIG_SND_ICE1712='' +CONFIG_SND_ICE1712='m' CONFIG_SND_ICE1724='m' CONFIG_SND_INDIGO='' CONFIG_SND_INDIGODJ=''
@@ -1885,6 +1889,7 @@ #define CONFIG_SND_AC97_CODEC_MODULE 1 #define CONFIG_SND_AC97_BUS_MODULE 1 #define CONFIG_PARPORT_MODULE 1 +#define CONFIG_SND_ICE1712_MODULE 1 #define CONFIG_SND_ICE1724_MODULE 1 #define CONFIG_SND_VIA82XX_MODULE 1 #define CONFIG_SND_AC97_POWER_SAVE 1
sound/pci/ice1712/ice1712.h +10 -2
@@ -462,7 +462,15 @@snd_ice1712_gpio_write (ice, mask & bits); } +static inline int snd_ice1712_gpio_read_bits (struct snd_ice1712 *ice, +unsigned int mask) +{ + ice->gpio.direction &= ~mask; +snd_ice1712_gpio_set_dir (ice, ice->gpio.direction); +return (snd_ice1712_gpio_read (ice) & mask); +} +int snd_ice1712_spdif_build_controls (struct snd_ice1712 *ice); int snd_ice1712_akm4xxx_init(struct snd_akm4xxx *ak, const struct snd_akm4xxx *template, --- alsa-driver-hg20060929-capture/utils/insert 2006-08-28 18:19:31.000000000 +0100 +++ alsa-driver-hg20060929/utils/insert 2006-10-01 00:51:09.985309288 +0100
@@ -392,7 +392,7 @@basic ac97 insert snd-mpu401-uart$SUFF -#insert snd-i2c$SUFF + insert snd-i2c$SUFF#insert snd-cs8427$SUFF insert snd-ak4114$SUFF insert snd-ak4xxx-adda$SUFF
Signature · 1 line
http://seehuhn.de/
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel