[PATCH v3 13/24] drm/i2c: tda998x: fix a NULL pointer dereference

2014-01-22 Thread Russell King - ARM Linux
On Sun, Jan 19, 2014 at 07:58:43PM +0100, Jean-Francois Moine wrote: > This patch fixes a NULL pointer dereference when the set_config > function has not been called (priv->params == NULL). No, that's not what this patch is doing. Maybe you could enlighten me how priv->params could ever be NULL w

[PATCH v3 13/24] drm/i2c: tda998x: fix a NULL pointer dereference

2014-01-19 Thread Jean-Francois Moine
This patch fixes a NULL pointer dereference when the set_config function has not been called (priv->params == NULL). As a side effect, now, the audio sample rate is always 48kHz and the audio clock is always set for I2S, and never set for S/PDIF. The audio_format enum is modified so that this for