fix bug of pcm_open related to stream direction

Fireworks applies the same sampling rate for both receive and transmit stream.
So when open PCM device, if the opposite stream is running, the same sampling
rate must be used.