All of lore.kernel.org
 help / color / mirror / Atom feed
* eeprom params for ice1724 module - recommendation?
@ 2012-01-04 20:37 Pavel Hofman
  2012-01-04 22:30 ` Pavel Hofman
  0 siblings, 1 reply; 3+ messages in thread
From: Pavel Hofman @ 2012-01-04 20:37 UTC (permalink / raw)
  To: ALSA development

Hi,

I have a generic ice1724 card ooAoo SQ210a (e.g.
http://forum.lowyat.net/topic/851912/all ). The card has identical PCI
identification with Chaintec AV710, no DAC controls (the DAC is
hardwired in pin-control mode with no GPIOs attached), no identification
string in eeprom and of course incorrect eeprom values.

Since the PCI ids overlap with the Chaintec, I cannot define correct
eeprom_data for this specific card in the driver. Furthermore I would
not be surprised if the other ooAoo cards with different setups shared
the same PCI ids.

I can skip the Chaintec config by specifying an unknown model in
snd-ice1724 param, e.g.

modprobe snd-ice1724 model=aooa

I would like to be able to specify correct eeprom values for the model
too. That would be simple by adding several new module params -
eeep2-sysconf, eeep2-aclink, eeep2-spdif etc.

However, I have another ice1724 card properly supported by the driver
(Infrasonic Quartet). I can use

modprobe snd-ice1724 model=quartet,aooa

and everything works correctly. But if I wanted to define eeep2-xxx
params for the aooa, I would have to define the same params for the
quartet too which I find superfluous since they are already correctly in
the driver.

Or I could use a string type instead of int and use something like

eeep2-sysconf=default,47

Or I could "encode" the eeep2 params into the model name, such as

modprobe snd-ice1724 model="quartet,aooa(eeep2-sysconf=47;eeep2-spdif=20)"

Please which version would you recommend (i.e. accept as a patch)?

Thank you for your expert advice.

Best regards,

Pavel.

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

* Re: eeprom params for ice1724 module - recommendation?
  2012-01-04 20:37 eeprom params for ice1724 module - recommendation? Pavel Hofman
@ 2012-01-04 22:30 ` Pavel Hofman
  2012-01-05 20:58   ` eeprom params for ice1724 module Pavel Hofman
  0 siblings, 1 reply; 3+ messages in thread
From: Pavel Hofman @ 2012-01-04 22:30 UTC (permalink / raw)
  To: ALSA development

Dne 4.1.2012 21:37, Pavel Hofman napsal(a):
> Hi,
> 
> Please which version would you recommend (i.e. accept as a patch)?
> 

I think there is a much better option - defining the eeprom values for
this card in the driver and choosing it with the model name. I will send
the patch.

Regards,

Pavel.

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

* Re: eeprom params for ice1724 module
  2012-01-04 22:30 ` Pavel Hofman
@ 2012-01-05 20:58   ` Pavel Hofman
  0 siblings, 0 replies; 3+ messages in thread
From: Pavel Hofman @ 2012-01-05 20:58 UTC (permalink / raw)
  To: ALSA development

Dne 4.1.2012 23:30, Pavel Hofman napsal(a):
> Dne 4.1.2012 21:37, Pavel Hofman napsal(a):
> 
> I think there is a much better option - defining the eeprom values for
> this card in the driver and choosing it with the model name. I will send
> the patch.
> 

The patches allowing the above plus the actual config follow. I have put
the card definition directly into ice1724.c since it is rather short. I
can store it in a separate file should you find it necessary.

Thanks a lot and best regards,

Pavel.

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

end of thread, other threads:[~2012-01-05 20:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-04 20:37 eeprom params for ice1724 module - recommendation? Pavel Hofman
2012-01-04 22:30 ` Pavel Hofman
2012-01-05 20:58   ` eeprom params for ice1724 module Pavel Hofman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.