Lines Matching refs:card_id
49 card_id = None
54 card_id = int(match.group(1))
55 if card_id is None:
58 return card_id + 1
61 def _get_soundcard_controls(card_id): argument
78 cmd = [AMIXER_PATH, '-c', str(card_id), 'controls']
94 def _get_soundcard_scontrols(card_id): argument
111 cmd = [AMIXER_PATH, '-c', str(card_id), 'scontrols']
134 for card_id in xrange(get_num_soundcards()):
137 if any(pat.search(c) for c in func(card_id)):
138 return card_id
161 card_id = get_first_soundcard_with_control(cname='Headphone Jack',
163 if card_id is None:
165 return 'plughw:%d' % card_id
214 card_id = get_first_soundcard_with_control(cname='Mic Jack', scname='Mic')
215 if card_id is None:
218 card_name = get_record_card_name(card_id)
220 return 'plughw:%d,%d' % (card_id, CARD_PREF_RECORD_DEV_IDX[card_name])
231 if 'card %d:' % card_id in line:
236 return 'plughw:%d,%d' % (card_id, dev_id)
333 def mixer_cmd(card_id, cmd): argument
347 cmd = [AMIXER_PATH, '-c', str(card_id)] + cmd