lkml.org 
[lkml]   [2008]   [May]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] [ALSA] ice1724 - support for more that one codec.
On Wed, Apr 30, 2008 at 02:33:36PM +0200, Takashi Iwai wrote:
> At Wed, 30 Apr 2008 11:27:18 +0200,
> Rodolfo Giometti wrote:
> >
> > Now it's possible to specify how many codes are present on the board by
> > using a new filed as follow:
> >
> > ice->ac97_codecs = 4;
> >
> > For backward compatibility if "ice->ac97_codecs" is set to zero, the patch
> > redefines it as "1".
> >
> > Signed-off-by: Rodolfo Giometti <giometti@linux.it>
>
> Thanks for the patch. The change looks OK to me, but please fix the
> issues reported by checkpatch.pl.

Ok, I'll do it ASAP.

> And, which hardware has multiple AC97 codecs? I'd like rather apply
> it together.

I'm still working on it since I'd like to record from 4 channels at
time but I can't... here my custom settings:

static unsigned char int1410_eeprom[] __devinitdata = {
[ICE_EEP1_CODEC] = 0x1f,
[ICE_EEP1_ACLINK] = 0x00,
[ICE_EEP1_I2SID] = 0x01,
[ICE_EEP1_SPDIF] = 0x03,
[ICE_EEP1_GPIO_MASK] = 0xff,
[ICE_EEP1_GPIO_STATE] = 0xff,
[ICE_EEP1_GPIO_DIR] = 0xff,
};

static int __devinit snd_ice1712_int1410_init(struct snd_ice1712 *ice)
{
printk("%s\n", __FUNCTION__);

/* Set the pro AC97 codecs */
ice->ac97_codecs = 4;

/* Set the analog DACs/ADCs */
ice->num_total_dacs = 8;
ice->num_total_adcs = 8;

return 0;
}

/* entry point */
struct snd_ice1712_card_info snd_ice1712_eurotech_cards[] __devinitdata =
{
{
.subvendor = ICE1712_SUBDEVICE_INT1410, /* a dummy id */
.name = "Eurotech INT 1410",
.model = "int1410",
.chip_init = snd_ice1712_int1410_init,
.build_controls = snd_ice1712_int1410_add_controls,
.no_mpu401 = 1,
.eeprom_size = sizeof(int1410_eeprom),
.eeprom_data = int1410_eeprom,
.driver = "int1410",
},
{ } /* terminator */
};

But I'm a bit confused regarding how to enable such feature. Again,
should I use a multitrack audio recorder as ecasound or I can just use
arecord with some magic options? :)

Thanks,

Rodolfo

--

GNU/Linux Solutions e-mail: giometti@enneenne.com
Linux Device Driver giometti@linux.it
Embedded Systems phone: +39 349 2432127
UNIX programming skype: rodolfo.giometti


\
 
 \ /
  Last update: 2008-05-02 21:55    [W:0.118 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site