[igt-dev] [PATCH i-g-t 5/5] tests/kms_chamelium: skip audio tests Chamelium doesn't support
Peres, Martin
martin.peres at intel.com
Mon May 20 12:21:34 UTC 2019
On 17/05/2019 19:03, Ser, Simon wrote:
> In these configurations the Chamelium device sends malformed data:
>
> - More than 2 channels
> - 2 channels, more than 16-bit samples and more than 32KHz sampling rate
>
> In this cases, skip the test.
>
> See crbug.com/950917.
Reviewed-by: Martin Peres <martin.peres at linux.intel.com>
Thanks for the series, and the nice split between patches :)
>
> Signed-off-by: Simon Ser <simon.ser at intel.com>
> ---
> tests/kms_chamelium.c | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/tests/kms_chamelium.c b/tests/kms_chamelium.c
> index 88356dd232b6..e888a642c24a 100644
> --- a/tests/kms_chamelium.c
> +++ b/tests/kms_chamelium.c
> @@ -1062,6 +1062,17 @@ static bool test_audio_configuration(struct alsa *alsa, snd_pcm_format_t format,
> sampling_rate, channels);
> return false;
> }
> + /* TODO: the Chamelium device sends a malformed signal for some audio
> + * configurations. See crbug.com/950917 */
> + if ((format != SND_PCM_FORMAT_S16_LE && sampling_rate >= 44100) ||
> + channels > 2) {
> + igt_debug("Skipping test with format %s, sampling rate %d Hz "
> + "and %d channels because the Chamelium device "
> + "doesn't support this configuration\n",
> + snd_pcm_format_name(format),
> + sampling_rate, channels);
> + return false;
> + }
> return true;
> }
>
>
---------------------------------------------------------------------
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki
Business Identity Code: 0357606 - 4
Domiciled in Helsinki
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
More information about the igt-dev
mailing list