Loading sound/spi/at73c213.c +24 −28 Original line number Diff line number Diff line Loading @@ -273,9 +273,8 @@ static int snd_at73c213_pcm_trigger(struct snd_pcm_substream *substream, int cmd) { struct snd_at73c213 *chip = snd_pcm_substream_chip(substream); int retval = 0; spin_lock(&chip->lock); guard(spinlock)(&chip->lock); switch (cmd) { case SNDRV_PCM_TRIGGER_START: Loading @@ -288,13 +287,11 @@ static int snd_at73c213_pcm_trigger(struct snd_pcm_substream *substream, break; default: dev_dbg(&chip->spi->dev, "spurious command %x\n", cmd); retval = -EINVAL; return -EINVAL; break; } spin_unlock(&chip->lock); return retval; return 0; } static snd_pcm_uframes_t Loading Loading @@ -358,8 +355,7 @@ static irqreturn_t snd_at73c213_interrupt(int irq, void *dev_id) int next_period; int retval = IRQ_NONE; spin_lock(&chip->lock); scoped_guard(spinlock, &chip->lock) { block_size = frames_to_bytes(runtime, runtime->period_size); status = ssc_readl(chip->ssc->regs, IMR); Loading @@ -381,7 +377,7 @@ static irqreturn_t snd_at73c213_interrupt(int irq, void *dev_id) } ssc_readl(chip->ssc->regs, IMR); spin_unlock(&chip->lock); } if (status & SSC_BIT(IMR_ENDTX)) snd_pcm_period_elapsed(chip->substream); Loading Loading
sound/spi/at73c213.c +24 −28 Original line number Diff line number Diff line Loading @@ -273,9 +273,8 @@ static int snd_at73c213_pcm_trigger(struct snd_pcm_substream *substream, int cmd) { struct snd_at73c213 *chip = snd_pcm_substream_chip(substream); int retval = 0; spin_lock(&chip->lock); guard(spinlock)(&chip->lock); switch (cmd) { case SNDRV_PCM_TRIGGER_START: Loading @@ -288,13 +287,11 @@ static int snd_at73c213_pcm_trigger(struct snd_pcm_substream *substream, break; default: dev_dbg(&chip->spi->dev, "spurious command %x\n", cmd); retval = -EINVAL; return -EINVAL; break; } spin_unlock(&chip->lock); return retval; return 0; } static snd_pcm_uframes_t Loading Loading @@ -358,8 +355,7 @@ static irqreturn_t snd_at73c213_interrupt(int irq, void *dev_id) int next_period; int retval = IRQ_NONE; spin_lock(&chip->lock); scoped_guard(spinlock, &chip->lock) { block_size = frames_to_bytes(runtime, runtime->period_size); status = ssc_readl(chip->ssc->regs, IMR); Loading @@ -381,7 +377,7 @@ static irqreturn_t snd_at73c213_interrupt(int irq, void *dev_id) } ssc_readl(chip->ssc->regs, IMR); spin_unlock(&chip->lock); } if (status & SSC_BIT(IMR_ENDTX)) snd_pcm_period_elapsed(chip->substream); Loading