All of lore.kernel.org
 help / color / mirror / Atom feed
* YMF753 AC '97 Module Options
@ 2002-09-24 17:44 David Shust
  2002-09-25 11:20 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: David Shust @ 2002-09-24 17:44 UTC (permalink / raw)
  To: alsa-devel

>Takashi Iwai wrote
>the patch looks good except for the module options for spdif.
>since ac97_codec is a generic module, it's better to avoid
>such device specific options.  isn't it detectable?

If the Yamaha YMF753 spec provided a way to autodetect which pin was being used for S/PDIF ouput, I'd use it.

The alternative to providing a module parameter via insmod would be to provide a mixer control, where one would have the choice of disabling S/PDIF output, or selecting pin 43 or 48. My instincts told me that it made more sense having this as a module parameter, as once one has determined which pin is being used, why would one ever change that value. I felt the same about the parameter for adding the delay after DAC startup in order to avoid missing audio. I could make both items mixer controls if both Jaroslav and Takashi feel it is better. Could you both please respond?

Regards,
David Shust


------------------------------------------------------------
Free, BeOS-friendly email accounts: http://BeMail.org/
BeOS News and Community: http://www.BeGroovy.com/


---------------------------------------------------------------------
Express yourself with a super cool email address from BigMailBox.com.
Hundreds of choices. It's free!
http://www.bigmailbox.com
---------------------------------------------------------------------


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

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

* Re: YMF753 AC '97 Module Options
  2002-09-24 17:44 YMF753 AC '97 Module Options David Shust
@ 2002-09-25 11:20 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2002-09-25 11:20 UTC (permalink / raw)
  To: David Shust; +Cc: alsa-devel

At Tue, 24 Sep 2002 10:44:58 -0700,
David Shust wrote:
> 
> >Takashi Iwai wrote
> >the patch looks good except for the module options for spdif.
> >since ac97_codec is a generic module, it's better to avoid
> >such device specific options.  isn't it detectable?
> 
> If the Yamaha YMF753 spec provided a way to autodetect which pin was
> being used for S/PDIF ouput, I'd use it.

ok.  then user must choose.


> The alternative to providing a module parameter via insmod would be
> to provide a mixer control, where one would have the choice of
> disabling S/PDIF output, or selecting pin 43 or 48. My instincts
> told me that it made more sense having this as a module parameter,
> as once one has determined which pin is being used, why would one
> ever change that value. I felt the same about the parameter for
> adding the delay after DAC startup in order to avoid missing
> audio. I could make both items mixer controls if both Jaroslav and
> Takashi feel it is better. Could you both please respond? 

the problem is, as mentioned in my last mail, ac97-codec is a generic
module which is shared among drivers.
for example, what happens if you have two cards with the ymf753?
so, if this parameter is implemented as a module option, then it
should go into the card module and store the value in ac97 struct,
e.g. ac97->spec.ymf753.spdif_out_pin and spdif_delay.
or, as you wrote above, implement this as a control switch.
it's not too bad, because with this switch you can disable spdif
output on the fly, too.


Takashi


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

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

end of thread, other threads:[~2002-09-25 11:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-24 17:44 YMF753 AC '97 Module Options David Shust
2002-09-25 11:20 ` Takashi Iwai

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.