alsa:hda: enable inject null sample for stereo LPCM
authorAshok Mudithanapalli <ashokm@nvidia.com>
Thu, 28 Jan 2016 12:09:40 +0000 (17:09 +0530)
committerMandar Padmawar <mpadmawar@nvidia.com>
Fri, 29 Jan 2016 05:56:42 +0000 (21:56 -0800)
commit646ca49047138091f3c7c39fa98eb1d8895dcf04
treead2c21db5741b385326f76b7df72690913c8480a
parentcf30b45e2d5ad794771702e86ec0de6f1a8f32bf
alsa:hda: enable inject null sample for stereo LPCM

add check for format along with channel count to
ensure that inject null sample enabled only for
stereo LPCM streams.

Also disable at the time of closing the device.

Bug 1718097

Change-Id: I1e46e49359cccc2b3a95d2706d9281789bbdcc44
Signed-off-by: Ashok Mudithanapalli <ashokm@nvidia.com>
Reviewed-on: http://git-master/r/999397
Reviewed-by: Sanjay Singh Chauhan <schauhan@nvidia.com>
Reviewed-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
sound/pci/hda/patch_hdmi.c