#ifndef __DRM_I2C_TDA998X_H__ #define __DRM_I2C_TDA998X_H__ #include #include enum { AFMT_UNUSED = 0, AFMT_SPDIF = TDA998x_SPDIF, AFMT_I2S = TDA998x_I2S, }; struct tda998x_audio_params { u8 config; u8 format; unsigned sample_width; unsigned sample_rate; struct hdmi_audio_infoframe cea; u8 status[5]; }; struct tda998x_encoder_params { u8 swap_b:3; u8 mirr_b:1; u8 swap_a:3; u8 mirr_a:1; u8 swap_d:3; u8 mirr_d:1; u8 swap_c:3; u8 mirr_c:1; u8 swap_f:3; u8 mirr_f:1; u8 swap_e:3; u8 mirr_e:1; struct tda998x_audio_params audio_params; }; #endif git'>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislaw Gruszka <sgruszka@redhat.com>2017-01-29 12:40:52 +0100
committerKalle Valo <kvalo@codeaurora.org>2017-01-31 09:08:52 +0200
commit33e962c8871f015f5c8978384553dddcf5b81b22 (patch)
tree43aff96c2ee21d9e0fa2018457778a4de52053cd /include/sound/asoundef.h
parent575ddce0507789bf9830d089557d2199d2f91865 (diff)
rt2x00: fix clk_get call
clk_get() takes two arguments and might return ERR_PTR(), so we have to nullify pointer on that case, to do not break further call to clk_get_rate(). Reported-by: Felix Fietkau <nbd@nbd.name> Fixes: 34db70b92fae ("rt2x00: add copy of clk for soc devices") Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'include/sound/asoundef.h')