Takashi Iwai tiwai@suse.de writes:
I reckon that setting the stream *then* the digi converter would be safer.
OK, now question is whether we need to turn off DIGI_CONV* once before setting it up again.
Anyway, a test patch is below. It forces to set DIGI_CONV* verbs in prepare. Give it a try.
Sorry, your patch does not work.
On the other hand I've tested another idea. In azx_pcm_prepare, I switch off iec958 DigEn before setting up stream format, and sending other verbs. At the end of azx_pcm_prepare, I restore the switch status.
And guess what ? It works, I get dolby digital !! :-)
And Dag, guess what also: 44KHz spdif output also works :-D
I've included the patch which implement the behavior described above. Although this diff may be more a hack than a patch ... Feel free to modify it to better suit the driver's design.
Cheers