We have a function that returns the appropriate flags for the stream
direction, so we should use it.
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
                        retval = snd_compr_get_poll(stream);
                break;
        default:
-               if (stream->direction == SND_COMPRESS_PLAYBACK)
-                       retval = POLLOUT | POLLWRNORM | POLLERR;
-               else
-                       retval = POLLIN | POLLRDNORM | POLLERR;
+               retval = snd_compr_get_poll(stream) | POLLERR;
                break;
        }
 out: