summaryrefslogtreecommitdiffstats
path: root/include/sound/core.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2013-05-24 16:30:39 +0200
committerTakashi Iwai <tiwai@suse.de>2013-05-24 16:30:39 +0200
commit8edbb198a62e2c3d0bea06ce50a4d45a009849b6 (patch)
tree529fa1b953ae0c688e9ab5fc6c7584286cf18278 /include/sound/core.h
parentALSA: Constify the snd_pcm_substream struct ops field (diff)
downloadlinux-8edbb198a62e2c3d0bea06ce50a4d45a009849b6.tar.xz
linux-8edbb198a62e2c3d0bea06ce50a4d45a009849b6.zip
ALSA: Fix the default suffix string with high card number
ALSA core tries to add a suffix as "_1" automatically when the given id string conflicts. The current code assumes implicitly that the max card number is 16 so that the single hex "_X" suffix can be put. However, with the dynamic device management, the card can be at most 32, so it can put even a non-hex character there. Also, when the max card number is increased in future, this would result in worse. This patch rewrites the code to add the suffix string in a simpler (thus cleaner) way. It can support up to three digits, so it should suffice for most requirements. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound/core.h')
0 files changed, 0 insertions, 0 deletions