diff options
author | Takashi Iwai <tiwai@suse.de> | 2010-05-29 15:50:33 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-05-29 15:50:33 -0400 |
commit | a98d3984c85222aa9efc63c4f9dd3d805ce469f2 (patch) | |
tree | aeb9ebdcc06ca92b8114f30cedf16b8f3780b3f2 /sound/pci | |
parent | 52593de4c11fb24c83d8036ba34706881aab5e3d (diff) | |
parent | 55567ab70bd8551c73253e44ea5244db41eac81b (diff) |
Merge branch 'fix/misc' into for-linus
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/asihpi/hpi.h | 8 | ||||
-rw-r--r-- | sound/pci/asihpi/hpi6000.c | 6 | ||||
-rw-r--r-- | sound/pci/asihpi/hpi6205.c | 21 | ||||
-rw-r--r-- | sound/pci/asihpi/hpi_internal.h | 5 | ||||
-rw-r--r-- | sound/pci/asihpi/hpicmn.c | 38 | ||||
-rw-r--r-- | sound/pci/asihpi/hpifunc.c | 17 | ||||
-rw-r--r-- | sound/pci/asihpi/hpios.c | 23 | ||||
-rw-r--r-- | sound/pci/asihpi/hpios.h | 9 |
8 files changed, 50 insertions, 77 deletions
diff --git a/sound/pci/asihpi/hpi.h b/sound/pci/asihpi/hpi.h index 99400de6c075..0173bbe62b67 100644 --- a/sound/pci/asihpi/hpi.h +++ b/sound/pci/asihpi/hpi.h | |||
@@ -50,7 +50,7 @@ i.e 3.05.02 is a development version | |||
50 | #define HPI_VER_RELEASE(v) ((int)(v & 0xFF)) | 50 | #define HPI_VER_RELEASE(v) ((int)(v & 0xFF)) |
51 | 51 | ||
52 | /* Use single digits for versions less that 10 to avoid octal. */ | 52 | /* Use single digits for versions less that 10 to avoid octal. */ |
53 | #define HPI_VER HPI_VERSION_CONSTRUCTOR(4L, 3, 18) | 53 | #define HPI_VER HPI_VERSION_CONSTRUCTOR(4L, 3, 25) |
54 | 54 | ||
55 | /* Library version as documented in hpi-api-versions.txt */ | 55 | /* Library version as documented in hpi-api-versions.txt */ |
56 | #define HPI_LIB_VER HPI_VERSION_CONSTRUCTOR(9, 0, 0) | 56 | #define HPI_LIB_VER HPI_VERSION_CONSTRUCTOR(9, 0, 0) |
@@ -1632,6 +1632,12 @@ u16 hpi_tuner_get_hd_radio_sdk_version(const struct hpi_hsubsys *ph_subsys, | |||
1632 | u16 hpi_tuner_get_hd_radio_signal_quality(const struct hpi_hsubsys *ph_subsys, | 1632 | u16 hpi_tuner_get_hd_radio_signal_quality(const struct hpi_hsubsys *ph_subsys, |
1633 | u32 h_control, u32 *pquality); | 1633 | u32 h_control, u32 *pquality); |
1634 | 1634 | ||
1635 | u16 hpi_tuner_get_hd_radio_signal_blend(const struct hpi_hsubsys *ph_subsys, | ||
1636 | u32 h_control, u32 *pblend); | ||
1637 | |||
1638 | u16 hpi_tuner_set_hd_radio_signal_blend(const struct hpi_hsubsys *ph_subsys, | ||
1639 | u32 h_control, const u32 blend); | ||
1640 | |||
1635 | /****************************/ | 1641 | /****************************/ |
1636 | /* PADs control */ | 1642 | /* PADs control */ |
1637 | /****************************/ | 1643 | /****************************/ |
diff --git a/sound/pci/asihpi/hpi6000.c b/sound/pci/asihpi/hpi6000.c index 839ecb2e4b64..12dab5e4892c 100644 --- a/sound/pci/asihpi/hpi6000.c +++ b/sound/pci/asihpi/hpi6000.c | |||
@@ -691,9 +691,6 @@ static short hpi6000_adapter_boot_load_dsp(struct hpi_adapter_obj *pao, | |||
691 | case 0x6200: | 691 | case 0x6200: |
692 | boot_load_family = HPI_ADAPTER_FAMILY_ASI(0x6200); | 692 | boot_load_family = HPI_ADAPTER_FAMILY_ASI(0x6200); |
693 | break; | 693 | break; |
694 | case 0x8800: | ||
695 | boot_load_family = HPI_ADAPTER_FAMILY_ASI(0x8800); | ||
696 | break; | ||
697 | default: | 694 | default: |
698 | return HPI6000_ERROR_UNHANDLED_SUBSYS_ID; | 695 | return HPI6000_ERROR_UNHANDLED_SUBSYS_ID; |
699 | } | 696 | } |
@@ -1775,7 +1772,6 @@ static void hw_message(struct hpi_adapter_obj *pao, struct hpi_message *phm, | |||
1775 | u16 error = 0; | 1772 | u16 error = 0; |
1776 | u16 dsp_index = 0; | 1773 | u16 dsp_index = 0; |
1777 | u16 num_dsp = ((struct hpi_hw_obj *)pao->priv)->num_dsp; | 1774 | u16 num_dsp = ((struct hpi_hw_obj *)pao->priv)->num_dsp; |
1778 | hpios_dsplock_lock(pao); | ||
1779 | 1775 | ||
1780 | if (num_dsp < 2) | 1776 | if (num_dsp < 2) |
1781 | dsp_index = 0; | 1777 | dsp_index = 0; |
@@ -1796,6 +1792,8 @@ static void hw_message(struct hpi_adapter_obj *pao, struct hpi_message *phm, | |||
1796 | } | 1792 | } |
1797 | } | 1793 | } |
1798 | } | 1794 | } |
1795 | |||
1796 | hpios_dsplock_lock(pao); | ||
1799 | error = hpi6000_message_response_sequence(pao, dsp_index, phm, phr); | 1797 | error = hpi6000_message_response_sequence(pao, dsp_index, phm, phr); |
1800 | 1798 | ||
1801 | /* maybe an error response */ | 1799 | /* maybe an error response */ |
diff --git a/sound/pci/asihpi/hpi6205.c b/sound/pci/asihpi/hpi6205.c index 5e88c1fc2b9e..e89991ea3543 100644 --- a/sound/pci/asihpi/hpi6205.c +++ b/sound/pci/asihpi/hpi6205.c | |||
@@ -966,23 +966,16 @@ static void outstream_write(struct hpi_adapter_obj *pao, | |||
966 | status = &interface->outstream_host_buffer_status[phm->obj_index]; | 966 | status = &interface->outstream_host_buffer_status[phm->obj_index]; |
967 | 967 | ||
968 | if (phw->flag_outstream_just_reset[phm->obj_index]) { | 968 | if (phw->flag_outstream_just_reset[phm->obj_index]) { |
969 | /* Format can only change after reset. Must tell DSP. */ | ||
970 | u16 function = phm->function; | ||
971 | phw->flag_outstream_just_reset[phm->obj_index] = 0; | ||
972 | phm->function = HPI_OSTREAM_SET_FORMAT; | ||
973 | hw_message(pao, phm, phr); /* send the format to the DSP */ | ||
974 | phm->function = function; | ||
975 | if (phr->error) | ||
976 | return; | ||
977 | } | ||
978 | #if 1 | ||
979 | if (phw->flag_outstream_just_reset[phm->obj_index]) { | ||
980 | /* First OutStremWrite() call following reset will write data to the | 969 | /* First OutStremWrite() call following reset will write data to the |
981 | adapter's buffers, reducing delay before stream can start | 970 | adapter's buffers, reducing delay before stream can start. The DSP |
971 | takes care of setting the stream data format using format information | ||
972 | embedded in phm. | ||
982 | */ | 973 | */ |
983 | int partial_write = 0; | 974 | int partial_write = 0; |
984 | unsigned int original_size = 0; | 975 | unsigned int original_size = 0; |
985 | 976 | ||
977 | phw->flag_outstream_just_reset[phm->obj_index] = 0; | ||
978 | |||
986 | /* Send the first buffer to the DSP the old way. */ | 979 | /* Send the first buffer to the DSP the old way. */ |
987 | /* Limit size of first transfer - */ | 980 | /* Limit size of first transfer - */ |
988 | /* expect that this will not usually be triggered. */ | 981 | /* expect that this will not usually be triggered. */ |
@@ -1012,7 +1005,6 @@ static void outstream_write(struct hpi_adapter_obj *pao, | |||
1012 | original_size - HPI6205_SIZEOF_DATA; | 1005 | original_size - HPI6205_SIZEOF_DATA; |
1013 | phm->u.d.u.data.pb_data += HPI6205_SIZEOF_DATA; | 1006 | phm->u.d.u.data.pb_data += HPI6205_SIZEOF_DATA; |
1014 | } | 1007 | } |
1015 | #endif | ||
1016 | 1008 | ||
1017 | space_available = outstream_get_space_available(status); | 1009 | space_available = outstream_get_space_available(status); |
1018 | if (space_available < (long)phm->u.d.u.data.data_size) { | 1010 | if (space_available < (long)phm->u.d.u.data.data_size) { |
@@ -1369,6 +1361,9 @@ static u16 adapter_boot_load_dsp(struct hpi_adapter_obj *pao, | |||
1369 | case HPI_ADAPTER_FAMILY_ASI(0x6500): | 1361 | case HPI_ADAPTER_FAMILY_ASI(0x6500): |
1370 | firmware_id = HPI_ADAPTER_FAMILY_ASI(0x6600); | 1362 | firmware_id = HPI_ADAPTER_FAMILY_ASI(0x6600); |
1371 | break; | 1363 | break; |
1364 | case HPI_ADAPTER_FAMILY_ASI(0x8800): | ||
1365 | firmware_id = HPI_ADAPTER_FAMILY_ASI(0x8900); | ||
1366 | break; | ||
1372 | } | 1367 | } |
1373 | boot_code_id[1] = firmware_id; | 1368 | boot_code_id[1] = firmware_id; |
1374 | 1369 | ||
diff --git a/sound/pci/asihpi/hpi_internal.h b/sound/pci/asihpi/hpi_internal.h index f1cd6f1a0d44..fdd0ce02aa68 100644 --- a/sound/pci/asihpi/hpi_internal.h +++ b/sound/pci/asihpi/hpi_internal.h | |||
@@ -232,6 +232,8 @@ enum HPI_BUSES { | |||
232 | #define HPI_TUNER_HDRADIO_SDK_VERSION HPI_CTL_ATTR(TUNER, 13) | 232 | #define HPI_TUNER_HDRADIO_SDK_VERSION HPI_CTL_ATTR(TUNER, 13) |
233 | /** HD Radio DSP firmware version. */ | 233 | /** HD Radio DSP firmware version. */ |
234 | #define HPI_TUNER_HDRADIO_DSP_VERSION HPI_CTL_ATTR(TUNER, 14) | 234 | #define HPI_TUNER_HDRADIO_DSP_VERSION HPI_CTL_ATTR(TUNER, 14) |
235 | /** HD Radio signal blend (force analog, or automatic). */ | ||
236 | #define HPI_TUNER_HDRADIO_BLEND HPI_CTL_ATTR(TUNER, 15) | ||
235 | 237 | ||
236 | /** \} */ | 238 | /** \} */ |
237 | 239 | ||
@@ -478,8 +480,10 @@ Threshold is a -ve number in units of dB/100, | |||
478 | 480 | ||
479 | /** First 2 hex digits define the adapter family */ | 481 | /** First 2 hex digits define the adapter family */ |
480 | #define HPI_ADAPTER_FAMILY_MASK 0xff00 | 482 | #define HPI_ADAPTER_FAMILY_MASK 0xff00 |
483 | #define HPI_MODULE_FAMILY_MASK 0xfff0 | ||
481 | 484 | ||
482 | #define HPI_ADAPTER_FAMILY_ASI(f) (f & HPI_ADAPTER_FAMILY_MASK) | 485 | #define HPI_ADAPTER_FAMILY_ASI(f) (f & HPI_ADAPTER_FAMILY_MASK) |
486 | #define HPI_MODULE_FAMILY_ASI(f) (f & HPI_MODULE_FAMILY_MASK) | ||
483 | #define HPI_ADAPTER_ASI(f) (f) | 487 | #define HPI_ADAPTER_ASI(f) (f) |
484 | 488 | ||
485 | /******************************************* message types */ | 489 | /******************************************* message types */ |
@@ -970,6 +974,7 @@ struct hpi_control_union_msg { | |||
970 | u32 mode; | 974 | u32 mode; |
971 | u32 value; | 975 | u32 value; |
972 | } mode; | 976 | } mode; |
977 | u32 blend; | ||
973 | } tuner; | 978 | } tuner; |
974 | } u; | 979 | } u; |
975 | }; | 980 | }; |
diff --git a/sound/pci/asihpi/hpicmn.c b/sound/pci/asihpi/hpicmn.c index 565102cae4f8..fcd64539d9ef 100644 --- a/sound/pci/asihpi/hpicmn.c +++ b/sound/pci/asihpi/hpicmn.c | |||
@@ -347,20 +347,15 @@ short hpi_check_control_cache(struct hpi_control_cache *p_cache, | |||
347 | found = 0; | 347 | found = 0; |
348 | break; | 348 | break; |
349 | case HPI_CONTROL_TUNER: | 349 | case HPI_CONTROL_TUNER: |
350 | { | 350 | if (phm->u.c.attribute == HPI_TUNER_FREQ) |
351 | struct hpi_control_cache_single *pCT = | 351 | phr->u.c.param1 = pC->u.t.freq_ink_hz; |
352 | (struct hpi_control_cache_single *)pI; | 352 | else if (phm->u.c.attribute == HPI_TUNER_BAND) |
353 | if (phm->u.c.attribute == HPI_TUNER_FREQ) | 353 | phr->u.c.param1 = pC->u.t.band; |
354 | phr->u.c.param1 = pCT->u.t.freq_ink_hz; | 354 | else if ((phm->u.c.attribute == HPI_TUNER_LEVEL) |
355 | else if (phm->u.c.attribute == HPI_TUNER_BAND) | 355 | && (phm->u.c.param1 == HPI_TUNER_LEVEL_AVERAGE)) |
356 | phr->u.c.param1 = pCT->u.t.band; | 356 | phr->u.c.param1 = pC->u.t.level; |
357 | else if ((phm->u.c.attribute == HPI_TUNER_LEVEL) | 357 | else |
358 | && (phm->u.c.param1 == | 358 | found = 0; |
359 | HPI_TUNER_LEVEL_AVERAGE)) | ||
360 | phr->u.c.param1 = pCT->u.t.level; | ||
361 | else | ||
362 | found = 0; | ||
363 | } | ||
364 | break; | 359 | break; |
365 | case HPI_CONTROL_AESEBU_RECEIVER: | 360 | case HPI_CONTROL_AESEBU_RECEIVER: |
366 | if (phm->u.c.attribute == HPI_AESEBURX_ERRORSTATUS) | 361 | if (phm->u.c.attribute == HPI_AESEBURX_ERRORSTATUS) |
@@ -503,6 +498,9 @@ void hpi_sync_control_cache(struct hpi_control_cache *p_cache, | |||
503 | struct hpi_control_cache_single *pC; | 498 | struct hpi_control_cache_single *pC; |
504 | struct hpi_control_cache_info *pI; | 499 | struct hpi_control_cache_info *pI; |
505 | 500 | ||
501 | if (phr->error) | ||
502 | return; | ||
503 | |||
506 | if (!find_control(phm, p_cache, &pI, &control_index)) | 504 | if (!find_control(phm, p_cache, &pI, &control_index)) |
507 | return; | 505 | return; |
508 | 506 | ||
@@ -520,8 +518,6 @@ void hpi_sync_control_cache(struct hpi_control_cache *p_cache, | |||
520 | break; | 518 | break; |
521 | case HPI_CONTROL_MULTIPLEXER: | 519 | case HPI_CONTROL_MULTIPLEXER: |
522 | /* mux does not return its setting on Set command. */ | 520 | /* mux does not return its setting on Set command. */ |
523 | if (phr->error) | ||
524 | return; | ||
525 | if (phm->u.c.attribute == HPI_MULTIPLEXER_SOURCE) { | 521 | if (phm->u.c.attribute == HPI_MULTIPLEXER_SOURCE) { |
526 | pC->u.x.source_node_type = (u16)phm->u.c.param1; | 522 | pC->u.x.source_node_type = (u16)phm->u.c.param1; |
527 | pC->u.x.source_node_index = (u16)phm->u.c.param2; | 523 | pC->u.x.source_node_index = (u16)phm->u.c.param2; |
@@ -529,8 +525,6 @@ void hpi_sync_control_cache(struct hpi_control_cache *p_cache, | |||
529 | break; | 525 | break; |
530 | case HPI_CONTROL_CHANNEL_MODE: | 526 | case HPI_CONTROL_CHANNEL_MODE: |
531 | /* mode does not return its setting on Set command. */ | 527 | /* mode does not return its setting on Set command. */ |
532 | if (phr->error) | ||
533 | return; | ||
534 | if (phm->u.c.attribute == HPI_CHANNEL_MODE_MODE) | 528 | if (phm->u.c.attribute == HPI_CHANNEL_MODE_MODE) |
535 | pC->u.m.mode = (u16)phm->u.c.param1; | 529 | pC->u.m.mode = (u16)phm->u.c.param1; |
536 | break; | 530 | break; |
@@ -545,20 +539,14 @@ void hpi_sync_control_cache(struct hpi_control_cache *p_cache, | |||
545 | pC->u.phantom_power.state = (u16)phm->u.c.param1; | 539 | pC->u.phantom_power.state = (u16)phm->u.c.param1; |
546 | break; | 540 | break; |
547 | case HPI_CONTROL_AESEBU_TRANSMITTER: | 541 | case HPI_CONTROL_AESEBU_TRANSMITTER: |
548 | if (phr->error) | ||
549 | return; | ||
550 | if (phm->u.c.attribute == HPI_AESEBUTX_FORMAT) | 542 | if (phm->u.c.attribute == HPI_AESEBUTX_FORMAT) |
551 | pC->u.aes3tx.format = phm->u.c.param1; | 543 | pC->u.aes3tx.format = phm->u.c.param1; |
552 | break; | 544 | break; |
553 | case HPI_CONTROL_AESEBU_RECEIVER: | 545 | case HPI_CONTROL_AESEBU_RECEIVER: |
554 | if (phr->error) | ||
555 | return; | ||
556 | if (phm->u.c.attribute == HPI_AESEBURX_FORMAT) | 546 | if (phm->u.c.attribute == HPI_AESEBURX_FORMAT) |
557 | pC->u.aes3rx.source = phm->u.c.param1; | 547 | pC->u.aes3rx.source = phm->u.c.param1; |
558 | break; | 548 | break; |
559 | case HPI_CONTROL_SAMPLECLOCK: | 549 | case HPI_CONTROL_SAMPLECLOCK: |
560 | if (phr->error) | ||
561 | return; | ||
562 | if (phm->u.c.attribute == HPI_SAMPLECLOCK_SOURCE) | 550 | if (phm->u.c.attribute == HPI_SAMPLECLOCK_SOURCE) |
563 | pC->u.clk.source = (u16)phm->u.c.param1; | 551 | pC->u.clk.source = (u16)phm->u.c.param1; |
564 | else if (phm->u.c.attribute == HPI_SAMPLECLOCK_SOURCE_INDEX) | 552 | else if (phm->u.c.attribute == HPI_SAMPLECLOCK_SOURCE_INDEX) |
@@ -590,7 +578,7 @@ struct hpi_control_cache *hpi_alloc_control_cache(const u32 | |||
590 | 578 | ||
591 | void hpi_free_control_cache(struct hpi_control_cache *p_cache) | 579 | void hpi_free_control_cache(struct hpi_control_cache *p_cache) |
592 | { | 580 | { |
593 | if ((p_cache->init) && (p_cache->p_info)) { | 581 | if (p_cache->init) { |
594 | kfree(p_cache->p_info); | 582 | kfree(p_cache->p_info); |
595 | p_cache->p_info = NULL; | 583 | p_cache->p_info = NULL; |
596 | p_cache->init = 0; | 584 | p_cache->init = 0; |
diff --git a/sound/pci/asihpi/hpifunc.c b/sound/pci/asihpi/hpifunc.c index eda26b312324..298eef3e20e9 100644 --- a/sound/pci/asihpi/hpifunc.c +++ b/sound/pci/asihpi/hpifunc.c | |||
@@ -2946,6 +2946,20 @@ u16 hpi_tuner_get_hd_radio_signal_quality(const struct hpi_hsubsys *ph_subsys, | |||
2946 | HPI_TUNER_HDRADIO_SIGNAL_QUALITY, 0, 0, pquality, NULL); | 2946 | HPI_TUNER_HDRADIO_SIGNAL_QUALITY, 0, 0, pquality, NULL); |
2947 | } | 2947 | } |
2948 | 2948 | ||
2949 | u16 hpi_tuner_get_hd_radio_signal_blend(const struct hpi_hsubsys *ph_subsys, | ||
2950 | u32 h_control, u32 *pblend) | ||
2951 | { | ||
2952 | return hpi_control_param_get(ph_subsys, h_control, | ||
2953 | HPI_TUNER_HDRADIO_BLEND, 0, 0, pblend, NULL); | ||
2954 | } | ||
2955 | |||
2956 | u16 hpi_tuner_set_hd_radio_signal_blend(const struct hpi_hsubsys *ph_subsys, | ||
2957 | u32 h_control, const u32 blend) | ||
2958 | { | ||
2959 | return hpi_control_param_set(ph_subsys, h_control, | ||
2960 | HPI_TUNER_HDRADIO_BLEND, blend, 0); | ||
2961 | } | ||
2962 | |||
2949 | u16 hpi_tuner_getRDS(const struct hpi_hsubsys *ph_subsys, u32 h_control, | 2963 | u16 hpi_tuner_getRDS(const struct hpi_hsubsys *ph_subsys, u32 h_control, |
2950 | char *p_data) | 2964 | char *p_data) |
2951 | { | 2965 | { |
@@ -3266,8 +3280,7 @@ u16 hpi_entity_find_next(struct hpi_entity *container_entity, | |||
3266 | 3280 | ||
3267 | void hpi_entity_free(struct hpi_entity *entity) | 3281 | void hpi_entity_free(struct hpi_entity *entity) |
3268 | { | 3282 | { |
3269 | if (entity != NULL) | 3283 | kfree(entity); |
3270 | kfree(entity); | ||
3271 | } | 3284 | } |
3272 | 3285 | ||
3273 | static u16 hpi_entity_alloc_and_copy(struct hpi_entity *src, | 3286 | static u16 hpi_entity_alloc_and_copy(struct hpi_entity *src, |
diff --git a/sound/pci/asihpi/hpios.c b/sound/pci/asihpi/hpios.c index de615cfdb950..742ee12a9e17 100644 --- a/sound/pci/asihpi/hpios.c +++ b/sound/pci/asihpi/hpios.c | |||
@@ -89,26 +89,3 @@ u16 hpios_locked_mem_free(struct consistent_dma_area *p_mem_area) | |||
89 | void hpios_locked_mem_free_all(void) | 89 | void hpios_locked_mem_free_all(void) |
90 | { | 90 | { |
91 | } | 91 | } |
92 | |||
93 | void __iomem *hpios_map_io(struct pci_dev *pci_dev, int idx, | ||
94 | unsigned int length) | ||
95 | { | ||
96 | HPI_DEBUG_LOG(DEBUG, "mapping %d %s %08llx-%08llx %04llx len 0x%x\n", | ||
97 | idx, pci_dev->resource[idx].name, | ||
98 | (unsigned long long)pci_resource_start(pci_dev, idx), | ||
99 | (unsigned long long)pci_resource_end(pci_dev, idx), | ||
100 | (unsigned long long)pci_resource_flags(pci_dev, idx), length); | ||
101 | |||
102 | if (!(pci_resource_flags(pci_dev, idx) & IORESOURCE_MEM)) { | ||
103 | HPI_DEBUG_LOG(ERROR, "not an io memory resource\n"); | ||
104 | return NULL; | ||
105 | } | ||
106 | |||
107 | if (length > pci_resource_len(pci_dev, idx)) { | ||
108 | HPI_DEBUG_LOG(ERROR, "resource too small for requested %d \n", | ||
109 | length); | ||
110 | return NULL; | ||
111 | } | ||
112 | |||
113 | return ioremap(pci_resource_start(pci_dev, idx), length); | ||
114 | } | ||
diff --git a/sound/pci/asihpi/hpios.h b/sound/pci/asihpi/hpios.h index a62c3f1e5f09..370f39b43f85 100644 --- a/sound/pci/asihpi/hpios.h +++ b/sound/pci/asihpi/hpios.h | |||
@@ -166,13 +166,4 @@ struct hpi_adapter { | |||
166 | void __iomem *ap_remapped_mem_base[HPI_MAX_ADAPTER_MEM_SPACES]; | 166 | void __iomem *ap_remapped_mem_base[HPI_MAX_ADAPTER_MEM_SPACES]; |
167 | }; | 167 | }; |
168 | 168 | ||
169 | static inline void hpios_unmap_io(void __iomem *addr, | ||
170 | unsigned long size) | ||
171 | { | ||
172 | iounmap(addr); | ||
173 | } | ||
174 | |||
175 | void __iomem *hpios_map_io(struct pci_dev *pci_dev, int idx, | ||
176 | unsigned int length); | ||
177 | |||
178 | #endif | 169 | #endif |