audio: Fix device table access in get_snd_device_name()
authorAndreas Schneider <asn@cryptomilk.org>
Mon, 13 Feb 2017 14:19:36 +0000 (15:19 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 14 Feb 2017 16:42:14 +0000 (17:42 +0100)
commitadb788d97cad1c752f68a35619f2d81ea03002cd
tree85cf9f772d6d517b0a7f448dc7c4208526b83594
parent58735a9cf911eb09ba830a505d1dc2c9d130ef9e
audio: Fix device table access in get_snd_device_name()

We have a value for SND_DEVICE_NONE so we should use that. There is no
field for SND_DEVICE_MIN so we need to check it is bigger.

Change-Id: I041930c8c4b552d45804a178aeb1aa981ae7c13f
audio/audio_hw.c