Merge "ALSA: pcm: remove unused variable from snd_pcm_info()"
This commit is contained in:
commit
06acadc1d7
3 changed files with 2 additions and 10 deletions
|
@ -106,7 +106,7 @@ struct snd_pcm_ops {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define SNDRV_PCM_IOCTL1_RESET 0
|
#define SNDRV_PCM_IOCTL1_RESET 0
|
||||||
#define SNDRV_PCM_IOCTL1_INFO 1
|
/* 1 is absent slot. */
|
||||||
#define SNDRV_PCM_IOCTL1_CHANNEL_INFO 2
|
#define SNDRV_PCM_IOCTL1_CHANNEL_INFO 2
|
||||||
#define SNDRV_PCM_IOCTL1_GSTATE 3
|
#define SNDRV_PCM_IOCTL1_GSTATE 3
|
||||||
#define SNDRV_PCM_IOCTL1_FIFO_SIZE 4
|
#define SNDRV_PCM_IOCTL1_FIFO_SIZE 4
|
||||||
|
|
|
@ -1857,8 +1857,6 @@ int snd_pcm_lib_ioctl(struct snd_pcm_substream *substream,
|
||||||
unsigned int cmd, void *arg)
|
unsigned int cmd, void *arg)
|
||||||
{
|
{
|
||||||
switch (cmd) {
|
switch (cmd) {
|
||||||
case SNDRV_PCM_IOCTL1_INFO:
|
|
||||||
return 0;
|
|
||||||
case SNDRV_PCM_IOCTL1_RESET:
|
case SNDRV_PCM_IOCTL1_RESET:
|
||||||
return snd_pcm_lib_ioctl_reset(substream, arg);
|
return snd_pcm_lib_ioctl_reset(substream, arg);
|
||||||
case SNDRV_PCM_IOCTL1_CHANNEL_INFO:
|
case SNDRV_PCM_IOCTL1_CHANNEL_INFO:
|
||||||
|
|
|
@ -197,7 +197,6 @@ static inline void snd_leave_user(mm_segment_t fs)
|
||||||
|
|
||||||
int snd_pcm_info(struct snd_pcm_substream *substream, struct snd_pcm_info *info)
|
int snd_pcm_info(struct snd_pcm_substream *substream, struct snd_pcm_info *info)
|
||||||
{
|
{
|
||||||
struct snd_pcm_runtime *runtime;
|
|
||||||
struct snd_pcm *pcm = substream->pcm;
|
struct snd_pcm *pcm = substream->pcm;
|
||||||
struct snd_pcm_str *pstr = substream->pstr;
|
struct snd_pcm_str *pstr = substream->pstr;
|
||||||
|
|
||||||
|
@ -213,12 +212,7 @@ int snd_pcm_info(struct snd_pcm_substream *substream, struct snd_pcm_info *info)
|
||||||
info->subdevices_count = pstr->substream_count;
|
info->subdevices_count = pstr->substream_count;
|
||||||
info->subdevices_avail = pstr->substream_count - pstr->substream_opened;
|
info->subdevices_avail = pstr->substream_count - pstr->substream_opened;
|
||||||
strlcpy(info->subname, substream->name, sizeof(info->subname));
|
strlcpy(info->subname, substream->name, sizeof(info->subname));
|
||||||
runtime = substream->runtime;
|
|
||||||
/* AB: FIXME!!! This is definitely nonsense */
|
|
||||||
if (runtime) {
|
|
||||||
info->sync = runtime->sync;
|
|
||||||
substream->ops->ioctl(substream, SNDRV_PCM_IOCTL1_INFO, info);
|
|
||||||
}
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue