*/
int sst_check_device_type(u32 device, u32 num_chan, u32 *pcm_slot)
{
- if (device > MAX_NUM_STREAMS_MFLD) {
+ if (device >= MAX_NUM_STREAMS) {
pr_debug("sst: device type invalid %d\n", device);
return -EINVAL;
}
{
struct ipc_post *msg = NULL;
struct snd_sst_alloc_params alloc_param;
- unsigned int pcm_slot = 0, num_ch, str_id;
+ unsigned int pcm_slot = 0, num_ch;
+ int str_id;
struct snd_sst_stream_params *sparams;
struct stream_info *str_info;