[alsa-devel] Correct use of ak4114.c?

dustin at seznam.cz dustin at seznam.cz
Fri Mar 30 16:20:36 CEST 2007


Hello,
>  ------------ Původní zpráva ------------
>  Od: Takashi Iwai <tiwai at suse.de>
>  Předmět: Re: [alsa-devel] Correct use of ak4114.c?
>  Datum: 30.3.2007 15:44:02
>  ----------------------------------------
>  
>  > My question: Is the correct way to add null pointer checks before
>  > snd_ctl_notify calls only, or to use snd_ak4114_build insted of
>  > snd_ak4114_create? If using snd_ak4114_build, where do I get the
>  > parameters ply_substream and cap_substream? 
>  
>  I fixed this on HG tree now, so at least the driver should work even
>  without calling snd_ak4114_build().  The patch is below.
>  
>  For working properly with the parameter change notifications, you'd
>  need to call snd_ak4114_build() with PCM substreams that you made.
>  That is, first create ak4114 instance via snd_ak4114_create(), create
>  PCMs, then attach PCMs with snd_ak4114_build() later.
>

Thanks a lot for incredibly fast response. Could snd_ak4114_build() be called for testing purposes somewhere towards the end of snd_vt1724_probe (ice1724.c), when pcms are already created? 

BTW, what is difference between professional and spdif pcms? Is it only about digital format (like professional/consumer in iecset)? Sorry for stupid questions, but I do not know which pcm to use.

Would I get to playback/capture substreams e.g. using ice->pcm_pro->streams[0/1]->substream at the end of snd_vt1724_probe? I understand I could probably find this information in alsa documentation.

Pavel.


More information about the Alsa-devel mailing list