pcm: always use codec->id instead of codec_id