Skip to content

Commit

Permalink
ALSA:dummy:Enable dummy driver for multiple formats
Browse files Browse the repository at this point in the history
Enable dummy driver for 16 channel.
Enable dummy driver with 24 bit and 32 bit.

Test done with tinyalsa:
- Recording and playback 16-channel 24bit and 32bit audio
on the Dummy card works fine.

Change-Id: I685639fb714b4ad95990f8bd29840d5688bc8955
Signed-off-by: pmandri <[email protected]>
Signed-off-by: Wan, Xinxin <[email protected]>
Signed-off-by: Martin, Chen <[email protected]>
  • Loading branch information
xinxin-wan authored and JeevakaPrabu committed Jun 18, 2024
1 parent 1a708b7 commit 0b54d1d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sound/drivers/dummy.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,16 @@ MODULE_LICENSE("GPL");
#define MAX_MIDI_DEVICES 2

/* defaults */
#define MAX_BUFFER_SIZE (64*1024)
#define MAX_BUFFER_SIZE (16*64*1024)
#define MIN_PERIOD_SIZE 64
#define MAX_PERIOD_SIZE MAX_BUFFER_SIZE
#define USE_FORMATS (SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S16_LE)
#define USE_FORMATS (SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE \
| SNDRV_PCM_FMTBIT_S24_3LE | SNDRV_PCM_FMTBIT_S32_LE)
#define USE_RATE SNDRV_PCM_RATE_CONTINUOUS | SNDRV_PCM_RATE_8000_48000
#define USE_RATE_MIN 5500
#define USE_RATE_MAX 48000
#define USE_CHANNELS_MIN 1
#define USE_CHANNELS_MAX 2
#define USE_CHANNELS_MAX 16
#define USE_PERIODS_MIN 1
#define USE_PERIODS_MAX 1024
#define USE_MIXER_VOLUME_LEVEL_MIN -50
Expand Down

0 comments on commit 0b54d1d

Please sign in to comment.