drm/i915/audio: use the same code for updating audio config
authorJani Nikula <jani.nikula@intel.com>
Mon, 10 Oct 2016 15:04:02 +0000 (18:04 +0300)
committerJani Nikula <jani.nikula@intel.com>
Tue, 11 Oct 2016 14:22:15 +0000 (17:22 +0300)
commit8f1ec181b12e8ac04e9690f1b122a6779ad2acc2
tree690dba064fe3427636e83a3e6ced525ac630a842
parent3af306d905b530bf076a983b14af23d133772eea
drm/i915/audio: use the same code for updating audio config

It gets fragile to duplicate the code for updating HSW_AUD_CFG. The only
change should be that the hdmi pixel clock is also updated in
i915_audio_component_sync_audio_rate(), but it should not be any
different.

Cc: Libin Yang <libin.yang@linux.intel.com>
Reviewed-by: Libin Yang <libin.yang@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/e0e88ec00c0ed1734083153b55283efd3116be5c.1476111629.git.jani.nikula@intel.com
drivers/gpu/drm/i915/intel_audio.c