Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/audio/dai.c
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ static int dai_comp_trigger_internal(struct comp_dev *dev, int cmd)
comp_info(dev, "dai_comp_trigger_internal(), XRUN");
dd->xrun = 1;

/* fallthrough */
COMPILER_FALLTHROUGH;
case COMP_TRIGGER_STOP:
comp_dbg(dev, "dai_comp_trigger_internal(), STOP");
ret = dma_stop(dd->chan);
Expand All @@ -702,6 +702,7 @@ static int dai_comp_trigger_internal(struct comp_dev *dev, int cmd)
comp_dbg(dev, "dai_comp_trigger_internal(), PAUSE");
ret = dma_pause(dd->chan);
dai_trigger(dd->dai, cmd, dev->direction);
break;
default:
break;
}
Expand Down
9 changes: 9 additions & 0 deletions src/include/sof/compiler_attributes.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,12 @@

#define __section(x) __attribute__((section(x)))

#ifdef __clang__

#define COMPILER_FALLTHROUGH __attribute__((fallthrough))

#else

#define COMPILER_FALLTHROUGH /* fallthrough */

#endif