ALSA: hda_controller: Separate stream_tag for input and output streams.
authorRafal Redzimski <rafal.f.redzimski@intel.com>
Fri, 19 Dec 2014 00:44:30 +0000 (08:44 +0800)
committerTakashi Iwai <tiwai@suse.de>
Fri, 26 Dec 2014 11:21:21 +0000 (12:21 +0100)
commit93e3423e6ba4b0ddaf056ecbdf5bc46f18f41deb
treef1c490d8bdcc06665c914ebe77f5b7f10c6caf19
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672
ALSA: hda_controller: Separate stream_tag for input and output streams.

Implemented separate stream_tag assignment for input and output streams.
According to hda specification stream tag must be unique throughout the
input streams group, however an output stream might use a stream tag
which is already in use by an input stream. This change is necessary
to support HW which provides a total of more than 15 stream DMA engines
which with legacy implementation causes an overflow on SDxCTL.STRM
field (and the whole SDxCTL register) and as a result usage of
Reserved value 0 in the SDxCTL.STRM field which confuses HDA controller.

Signed-off-by: Rafal Redzimski <rafal.f.redzimski@intel.com>
Signed-off-by: Jayachandran B <jayachandran.b@intel.com>
Signed-off-by: Libin Yang <libin.yang@intel.com>
Reviewed-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_controller.c
sound/pci/hda/hda_priv.h