|
@@ -2492,7 +2492,7 @@ static int pcm_chmap_ctl_get(struct snd_kcontrol *kcontrol,
|
|
struct snd_pcm_substream *substream;
|
|
struct snd_pcm_substream *substream;
|
|
const struct snd_pcm_chmap_elem *map;
|
|
const struct snd_pcm_chmap_elem *map;
|
|
|
|
|
|
- if (snd_BUG_ON(!info->chmap))
|
|
|
|
|
|
+ if (!info->chmap)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
substream = snd_pcm_chmap_substream(info, idx);
|
|
substream = snd_pcm_chmap_substream(info, idx);
|
|
if (!substream)
|
|
if (!substream)
|
|
@@ -2524,7 +2524,7 @@ static int pcm_chmap_ctl_tlv(struct snd_kcontrol *kcontrol, int op_flag,
|
|
unsigned int __user *dst;
|
|
unsigned int __user *dst;
|
|
int c, count = 0;
|
|
int c, count = 0;
|
|
|
|
|
|
- if (snd_BUG_ON(!info->chmap))
|
|
|
|
|
|
+ if (!info->chmap)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
if (size < 8)
|
|
if (size < 8)
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|