// reset audio path
cx25840_command(client, DECODER_SET_AUDIO_INPUT, &state->audio);
break;
The parameter to a DECODER_SET_AUDIO_INPUT command should be &state->audio_input. Either the command isn't the desired command (might be DECODER_SET_AUDIO), or the parameter is isn't the correct parameter. I would assume we'd want:
cx25840_command(client, DECODER_SET_AUDIO_INPUT, &state->audio_input);
since the handler for that will set both input and sample rate. Patch attached against rev223 (0.3.4w, labeled as v) attached.
Index: cx25840-driver.c
===================================================================
--- cx25840-driver.c (revision 223)
+++ cx25840-driver.c (working copy)
@@ -1194,7 +1194,7 @@
}
// reset audio path
- cx25840_command(client, DECODER_SET_AUDIO_INPUT, &state->audio);
+ cx25840_command(client, DECODER_SET_AUDIO_INPUT,
&state->audio_input);
break;
}
